/* ============================================================
   MOMIN GAMES — Stylesheet
   Vibe: light, juicy, clean & clear
   Palette: warm off-white bg, coral-orange primary, purple accent
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: 'Nunito', sans-serif; cursor: pointer; }

/* === DESIGN TOKENS === */
:root {
  --primary:        #FF6B35;
  --primary-dark:   #E85A20;
  --primary-glow:   rgba(255, 107, 53, 0.28);
  --purple:         #7C3AED;
  --purple-light:   rgba(124, 58, 237, 0.12);
  --green:          #06D6A0;
  --green-light:    rgba(6, 214, 160, 0.12);
  --bg:             #FFF8F3;
  --card:           #FFFFFF;
  --text:           #1A1A2E;
  --muted:          #8892A4;
  --border:         rgba(0,0,0,0.07);
  --radius-card:    22px;
  --radius-pill:    50px;
  --shadow-card:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover:   0 16px 40px rgba(255,107,53,0.22);
  --transition:     0.22s ease;
}

/* === LAYOUT === */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 243, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100px; }

.logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Fredoka One', cursive; font-size: 1.6rem;
  color: var(--text); letter-spacing: 0.01em;
}
.logo-img { width: 80px; height: 80px; object-fit: contain; display: block; }
.logo-words { display: flex; flex-direction: column; line-height: 1.2; }
.logo-slogan { font-family: 'Nunito', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.logo--white { color: rgba(255,255,255,0.9); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a { font-weight: 700; font-size: 0.92rem; color: var(--muted); transition: color var(--transition); }
.main-nav a:hover { color: var(--primary); }
.nav-close { display: none; }

.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* === HERO === */
.hero {
  position: relative; overflow: hidden;
  padding: 100px 0 110px;
  min-height: 540px; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #FFF0E6 0%, #F5EEFF 50%, #E6FFF8 100%);
  z-index: 0;
}
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape {
  position: absolute; border-radius: 50%;
  filter: blur(50px); opacity: 0.55;
}
.s1 { width: 440px; height: 440px; background: rgba(255, 107, 53, 0.22); right: -120px; top: -100px; }
.s2 { width: 280px; height: 280px; background: rgba(124, 58, 237, 0.16); right: 180px; bottom: -60px; }
.s3 { width: 200px; height: 200px; background: rgba(6, 214, 160, 0.18); right: 60px; top: 80px; }
.s4 { width: 140px; height: 140px; background: rgba(255, 200, 53, 0.22); left: 40px; bottom: 40px; }

.hero .container { max-width: 1400px; padding: 0 60px; }
.hero-content { position: relative; z-index: 2; max-width: 860px; text-align: center; margin: 0 auto; }
.hero-label {
  display: inline-block; font-size: 0.8rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--primary); margin-bottom: 18px;
  background: rgba(255, 107, 53, 0.1); padding: 6px 14px; border-radius: var(--radius-pill);
}
.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2; margin-bottom: 22px; color: var(--text);
  white-space: nowrap;
}
.highlight { color: var(--primary); }
.hero-sub {
  font-size: 1.08rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 38px; max-width: 80%; margin-left: auto; margin-right: auto;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 15px 34px; background: var(--primary); color: white;
  border-radius: var(--radius-pill); font-weight: 800; font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 6px 22px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--primary-glow);
}

/* === GAMES SECTION === */
.games-section { padding: 88px 0 96px; }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 8px;
}
.section-header p { color: var(--muted); font-size: 1.05rem; }

/* --- Tab Filter --- */
.tab-filter {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 44px;
}
.tab {
  padding: 10px 26px; border-radius: var(--radius-pill);
  border: 2px solid var(--border); background: var(--card);
  font-weight: 800; font-size: 0.88rem; color: var(--muted);
  transition: all var(--transition);
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active {
  background: var(--primary); border-color: var(--primary);
  color: white; box-shadow: 0 4px 16px var(--primary-glow);
}

/* --- Game Grid --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

/* --- Game Card --- */
.game-card {
  background: var(--card); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 100%; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; position: relative; overflow: hidden;
}
.card-icon::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
  pointer-events: none;
}
.icon-emoji { position: relative; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15)); }

/* Image-based icon (real game artwork) */
.card-icon--image { background: #f0f0f0; }
.card-icon--image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }

.card-genre {
  display: inline-block; font-size: 0.68rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.09em;
  padding: 4px 10px; border-radius: 20px; margin-bottom: 9px;
  width: fit-content;
}
.genre-casual       { background: var(--green-light);  color: var(--green); }
.genre-hybrid-puzzle { background: var(--purple-light); color: var(--purple); }
.genre-hyper-casual { background: rgba(255,107,53,0.1); color: var(--primary); }

.card-title {
  font-weight: 800; font-size: 0.97rem; line-height: 1.35;
  margin-bottom: 14px; flex: 1; color: var(--text);
}

/* Store buttons — always visible */
.store-buttons { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.store-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 30px; font-size: 0.75rem;
  font-weight: 800; border: 1.5px solid; transition: all var(--transition);
  white-space: nowrap;
}
.store-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.store-btn--apple  { border-color: #1A1A2E; color: #1A1A2E; }
.store-btn--apple:hover  { background: #1A1A2E; color: white; }
.store-btn--android { border-color: #01875F; color: #01875F; }
.store-btn--android:hover { background: #01875F; color: white; }

/* Empty state */
.empty-state { text-align: center; color: var(--muted); font-size: 1.05rem; padding: 60px 0; }

/* === ABOUT === */
.about-section { padding: 88px 0; background: linear-gradient(145deg, #FFF0E6 0%, #F5EEFF 50%, #E6FFF8 100%); }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 80px; text-align: center;
}
.stat {
  padding: 28px 16px; border-radius: var(--radius-card);
  background: var(--bg); border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.stat-number {
  font-family: 'Fredoka One', cursive; font-size: 2.6rem;
  color: var(--primary); line-height: 1;
}
.stat-label { font-size: 0.88rem; color: var(--muted); font-weight: 700; margin-top: 6px; }

.about-content { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { font-family: 'Fredoka One', cursive; font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 20px; }
.about-text p { color: var(--muted); line-height: 1.8; font-size: 1.05rem; margin-bottom: 16px; }

.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; justify-content: center; }
.badge {
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--bg); border: 1.5px solid var(--border);
  font-weight: 800; font-size: 0.88rem; color: var(--text);
}

.about-visual { display: flex; justify-content: center; align-items: center; }
.about-blob {
  width: 290px; height: 290px;
  border-radius: 62% 38% 54% 46% / 48% 62% 38% 52%;
  background: linear-gradient(135deg, #FFE5D4, #F0E5FF, #D4F7EE);
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  animation: blobFloat 5s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(255,107,53,0.12);
}
.blob-logo { width: 65%; height: 65%; object-fit: contain; }
@keyframes blobFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); border-radius: 62% 38% 54% 46% / 48% 62% 38% 52%; }
  50%       { transform: translateY(-14px) rotate(2deg); border-radius: 44% 56% 38% 62% / 60% 38% 58% 42%; }
}

/* === FOOTER === */
.site-footer { background: #15121F; color: white; padding: 64px 0 0; }

.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1.5fr;
  gap: 48px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.42); line-height: 1.8; font-size: 0.93rem; }

.footer-links h4,
.footer-contact h4 {
  font-family: 'Fredoka One', cursive; font-size: 1rem;
  color: var(--primary); margin-bottom: 18px; letter-spacing: 0.02em;
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  color: rgba(255,255,255,0.5); margin-bottom: 11px;
  font-size: 0.92rem; font-weight: 600; transition: color var(--transition);
}
.footer-links a:hover { color: white; }

.footer-contact p { color: rgba(255,255,255,0.5); font-size: 0.92rem; margin-bottom: 22px; }

.store-badges { display: flex; flex-direction: column; gap: 10px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.85);
  font-weight: 800; font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition), border-color var(--transition);
}
.store-badge:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); }
.store-badge svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-bottom {
  padding: 20px 24px; text-align: center;
  color: rgba(255,255,255,0.22); font-size: 0.82rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none; position: fixed; inset: 0; background: var(--bg);
    z-index: 200; flex-direction: column; align-items: center;
    justify-content: center; gap: 32px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.4rem; color: var(--text); }
  .nav-close {
    display: block; background: none; border: none;
    font-size: 1.4rem; color: var(--muted); position: absolute;
    top: 24px; right: 24px; padding: 8px;
  }
  .hamburger { display: flex; }

  .hero { padding: 72px 0 84px; }
  .hero-title { font-size: 2.4rem; }

  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 14px 16px; }
  .store-buttons { gap: 6px; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 380px) {
  .store-btn { font-size: 0.68rem; padding: 6px 10px; }
}
