/* ═══════════════════════════════════════════
   FUN MAMA - Global Styles
   Playful & Colourful Kids Game Website
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple: #6366F1;
  --purple-dark: #4338CA;
  --purple-light: #EEF2FF;
  --pink: #EC4899;
  --pink-light: #FDF2F8;
  --green: #22C55E;
  --green-light: #ECFDF5;
  --yellow: #EAB308;
  --yellow-light: #FFFBEB;
  --orange: #F97316;
  --red: #EF4444;
  --blue: #3B82F6;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: linear-gradient(135deg, var(--purple-light), var(--pink-light), var(--green-light));
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Animations ── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Navbar ── */
.navbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(99,102,241,0.1);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-emoji {
  font-size: 32px;
  animation: wiggle 2s ease-in-out infinite;
}
.logo span {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  color: var(--gray-500);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--purple-light);
  color: var(--purple-dark);
}

/* ── Hero Section ── */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}
.hero-emoji {
  font-size: 80px;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}
.hero h1 {
  font-size: 52px;
  font-weight: 900;
  color: var(--purple-dark);
  margin-bottom: 12px;
  line-height: 1.1;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
  background-size: 200% 200%;
  animation: rainbow 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 22px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.badge {
  background: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 20px;
  font-weight: 800;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #8B5CF6);
  color: white;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(99,102,241,0.5);
}
.btn-secondary {
  background: white;
  color: var(--purple-dark);
  box-shadow: var(--shadow);
}
.btn-small {
  padding: 10px 24px;
  font-size: 16px;
  border-radius: 14px;
}

/* ── Section ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--purple-dark);
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 40px;
}

/* ── Game Cards Grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.game-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  animation: scaleIn 0.5s ease-out backwards;
  cursor: pointer;
  display: block;
}
.game-card:nth-child(1) { animation-delay: 0s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.2s; }
.game-card:nth-child(4) { animation-delay: 0.3s; }
.game-card:nth-child(5) { animation-delay: 0.4s; }
.game-card:nth-child(6) { animation-delay: 0.5s; }

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.game-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
  overflow: hidden;
}
.game-card-thumb .bg-shapes {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}
.game-card-body {
  padding: 20px 24px 24px;
}
.game-card-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.game-card-body p {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
}
.game-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-age { background: #DBEAFE; color: #1E40AF; }
.tag-type { background: #F3E8FF; color: #6B21A8; }
.tag-new { background: #FEF3C7; color: #92400E; }

/* ── Features Row ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature-card .emoji {
  font-size: 40px;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 600;
}
.footer a {
  color: var(--purple);
}

/* ── About Page ── */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.5s ease-out;
}
.about-content h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--purple-dark);
  margin-bottom: 16px;
}
.about-content p {
  font-size: 17px;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ── Coming Soon ── */
.coming-soon {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 3px dashed var(--gray-200);
}
.coming-soon .emoji { font-size: 48px; margin-bottom: 12px; }
.coming-soon h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.coming-soon p { color: var(--gray-400); font-size: 16px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 18px; }
  .hero-emoji { font-size: 60px; }
  .section-title { font-size: 28px; }
  .navbar { padding: 10px 16px; }
  .logo { font-size: 22px; }
  .nav-links a { padding: 6px 14px; font-size: 14px; }
  .games-grid { grid-template-columns: 1fr; }
  .btn { padding: 14px 32px; font-size: 18px; }
  .about-content { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 24px; }
  .hero h1 { font-size: 30px; }
  .hero-badges { gap: 8px; }
  .badge { font-size: 13px; padding: 6px 14px; }
  .nav-links { gap: 4px; }
}
