/* 
 * สไตล์หลักของเว็บไซต์ เพลงยุวกาชาด และ 12 มินิเกมการเรียนรู้ (Mobile-friendly)
 * ธีมสีแดงกากบาท (#D32F2F) - สีน้ำเงินเข้ม (#1A237E) - สีทอง (#FFA000)
 */

@import url('https://fonts.googleapis.com/css2?family=Mali:wght@400;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --yuwa-red: #D32F2F;
  --yuwa-red-dark: #B71C1C;
  --yuwa-blue: #1A237E;
  --yuwa-blue-light: #0D47A1;
  --yuwa-gold: #FFA000;
  --yuwa-bg: #F4F7FB;
}

body {
  font-family: 'Sarabun', sans-serif;
  background-color: var(--yuwa-bg);
  color: #2D3748;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: 'Mali', cursive, 'Sarabun', sans-serif;
}

/* Header & Navbar */
.navbar-yuwa {
  background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
  box-shadow: 0 4px 16px rgba(26, 35, 126, 0.18);
  border-bottom: 3px solid var(--yuwa-red);
}

.brand-emblem {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-right: 10px;
}

.red-cross-icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.red-cross-icon::before,
.red-cross-icon::after {
  content: "";
  position: absolute;
  background-color: var(--yuwa-red);
  border-radius: 2px;
}

.red-cross-icon::before {
  top: 7px;
  left: 0;
  width: 22px;
  height: 8px;
}

.red-cross-icon::after {
  top: 0;
  left: 7px;
  width: 8px;
  height: 22px;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 60%, #E53935 100%);
  color: white;
  border-radius: 20px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.22);
}

.hero-banner::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

/* Lyrics & YouTube Screen */
.lyrics-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 25px rgba(0,0,0,0.04);
  overflow: hidden;
}

.youtube-wrapper {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.youtube-btn {
  background-color: #FF0000;
  color: white;
  border: none;
  transition: all 0.2s ease;
  min-height: 48px;
}

.youtube-btn:hover {
  background-color: #CC0000;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.35);
}

.lyrics-screen {
  background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFE 100%);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 15px;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
}

.lyric-line {
  transition: background-color 0.2s ease;
  color: #2D3748;
  line-height: 1.8;
}

.lyric-line:hover {
  background-color: #F0F4F8;
}

/* Mobile Touch Optimization */
.touch-btn {
  min-height: 48px;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.touch-target {
  min-height: 48px;
  touch-action: manipulation;
}

/* Cards & Badges */
.game-hub-card {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  border: 1px solid #E2E8F0;
}

.game-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    padding: 20px 15px;
  }
  .lyrics-card {
    padding: 15px !important;
  }
  .lyrics-screen {
    padding: 15px 10px;
  }
}
