/* ============================================================
   BANK SOAL — Miss Audi
   Batch 1: Foundation styling
   ============================================================ */

:root {
  --pink: #FF5E95;
  --yellow: #FFC233;
  --sky: #53C7F5;
  --navy: #0B2D6B;
  --green: #10B981;
  --red: #EF4444;
  --ink: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --line: #E2E8F0;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06);
  --shadow: 0 8px 24px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--pink), #FF8FB1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   HEADER
   ============================================================ */
.bs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}

.bs-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
  font-size: .9rem;
}

.bs-brand:hover { color: var(--pink); }

.bs-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.bs-title-icon { font-size: 1.2rem; }

.bs-header-spacer { width: 60px; }

@media (max-width: 480px) {
  .bs-brand span:last-child { display: none; }
  .bs-header-spacer { width: 32px; }
}

/* ============================================================
   HERO
   ============================================================ */
.bs-hero {
  position: relative;
  padding: 40px 0 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFF5F9 0%, #FFFFFF 100%);
}

.bs-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.bs-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
}
.bs-blob-1 { width: 300px; height: 300px; background: var(--pink); top: -80px; right: -80px; }
.bs-blob-2 { width: 240px; height: 240px; background: var(--sky); bottom: -60px; left: -60px; }
.bs-blob-3 { width: 180px; height: 180px; background: var(--yellow); top: 40%; right: -60px; }

.bs-hero-content {
  position: relative;
  text-align: center;
}

.bs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  color: var(--pink);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.bs-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,94,149,.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.2); }
}

.bs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 700;
}

.bs-hero-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.bs-hero-subtitle strong { color: var(--navy); }

.bs-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.bs-hero-stats li { text-align: center; }

.bs-hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.bs-hero-stats span {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.bs-categories { padding: 40px 0 60px; }

.bs-section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 32px;
}

.bs-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.bs-section-head p {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}

.bs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bs-cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  overflow: hidden;
}

.bs-cat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--cat-color, var(--pink));
}

.bs-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat-color, var(--pink));
  box-shadow: var(--shadow);
}

.bs-cat-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--cat-color, var(--pink)) 12%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.bs-cat-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bs-cat-info { flex: 1; min-width: 0; }

.bs-cat-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 2px;
}

.bs-cat-desc {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.bs-cat-meta {
  display: flex;
  gap: 12px;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
}

.bs-cat-total, .bs-cat-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bs-cat-total::before { content: "📖 "; }
.bs-cat-level::before { content: "🎯 "; }

.bs-cat-progress {
  flex-shrink: 0;
}

.bs-stars {
  display: flex;
  gap: 2px;
  font-size: 1rem;
}

.bs-star {
  color: #CBD5E1;
  transition: color .2s;
}

.bs-star.filled {
  color: var(--yellow);
}

.bs-cat-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s var(--ease);
}

.bs-cat-card:hover .bs-cat-arrow {
  transform: translateX(4px);
  color: var(--cat-color, var(--pink));
}

@media (min-width: 640px) {
  .bs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 1024px) {
  .bs-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .bs-categories { padding: 60px 0 80px; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.bs-howto {
  padding: 40px 0 60px;
  background: #fff;
}

.bs-howto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.bs-howto-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--line);
}

.bs-howto-num {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-howto-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.bs-howto-card h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--navy);
  margin: 0 0 4px;
}

.bs-howto-card p {
  font-size: .78rem;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 768px) {
  .bs-howto-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .bs-howto { padding: 60px 0 80px; }
  .bs-howto-card { padding: 24px 20px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.bs-footer {
  padding: 32px 20px;
  background: var(--navy);
  color: rgba(255,255,255,.85);
  text-align: center;
  font-size: .85rem;
}

.bs-footer p { margin: 0 0 4px; }

.bs-footer-sub {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}
/* Tombol logout di header */
.bs-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #FEF2F2;
  color: #EF4444;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.bs-logout:hover {
  background: #EF4444;
  color: #fff;
  transform: translateY(-2px);
}
/* ============================================================
   GAMES PROMO SECTION
   ============================================================ */
.bs-games-promo {
  padding: 40px 0;
}

.bs-games-promo-card {
  position: relative;
  background: linear-gradient(135deg, #0B2D6B 0%, #1a4a99 60%, #53C7F5 130%);
  border-radius: 28px;
  padding: 32px 24px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
}

.bs-games-promo-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 70% 30%, rgba(255,94,149,.25), transparent 55%);
  animation: gamesShimmer 12s linear infinite;
  pointer-events: none;
}

@keyframes gamesShimmer {
  to { transform: rotate(360deg); }
}

.bs-games-promo-content {
  position: relative;
  z-index: 2;
}

.bs-games-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  font-family: 'Fredoka', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.bs-games-promo-dot {
  width: 8px;
  height: 8px;
  background: #FBBF24;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(251,191,36,.3);
  animation: pulse 2s infinite;
}

.bs-games-promo-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 16px;
}

.bs-games-promo-title .text-gradient {
  background: linear-gradient(90deg, #FFC233, #FF5E95);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bs-games-promo-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 520px;
}

.bs-games-promo-desc strong {
  color: #FFC233;
}

.bs-games-promo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.bs-games-promo-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.95);
  line-height: 1.4;
}

.bs-games-promo-features strong {
  color: #fff;
}

.games-feature-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bs-games-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #FF5E95;
  color: #fff;
  border-radius: 14px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255,94,149,.4);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.bs-games-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,94,149,.5);
}

/* Visual */
.bs-games-promo-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.games-visual-card {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 20px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.games-visual-card-1 {
  transform: translate(-60px, -20px) rotate(-12deg);
  animation: gamesCardFloat1 3s ease-in-out infinite;
}

.games-visual-card-2 {
  transform: translate(0, 20px) rotate(0deg);
  z-index: 2;
  animation: gamesCardFloat2 3.5s ease-in-out infinite;
}

.games-visual-card-3 {
  transform: translate(60px, -20px) rotate(12deg);
  animation: gamesCardFloat3 3s ease-in-out infinite;
}

@keyframes gamesCardFloat1 {
  0%, 100% { transform: translate(-60px, -20px) rotate(-12deg); }
  50% { transform: translate(-60px, -30px) rotate(-15deg); }
}
@keyframes gamesCardFloat2 {
  0%, 100% { transform: translate(0, 20px) rotate(0deg); }
  50% { transform: translate(0, 10px) rotate(3deg); }
}
@keyframes gamesCardFloat3 {
  0%, 100% { transform: translate(60px, -20px) rotate(12deg); }
  50% { transform: translate(60px, -30px) rotate(15deg); }
}

@media (min-width: 768px) {
  .bs-games-promo {
    padding: 60px 0;
  }
  .bs-games-promo-card {
    grid-template-columns: 1.3fr 1fr;
    padding: 48px 44px;
    gap: 40px;
  }
  .bs-games-promo-visual {
    min-height: 220px;
  }
  .games-visual-card {
    width: 110px;
    height: 110px;
    font-size: 3rem;
  }
}
.bs-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-games-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF5E95, #8B5CF6);
  color: #fff;
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  box-shadow: 0 4px 12px rgba(255,94,149,.3);
  transition: all .2s cubic-bezier(.4,0,.2,1);
}

.bs-games-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255,94,149,.4);
}

.bs-games-link-icon {
  font-size: 1rem;
}

@media (max-width: 480px) {
  .bs-games-link-text {
    display: none;
  }
  .bs-games-link {
    padding: 8px 10px;
  }
}
