/* ============================================================
   JKT48 Games Landing Page – styles.css
   ============================================================ */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --pink:       #ff0066;
  --pink-light: #ff4488;
  --pink-dark:  #cc0052;
  --gold:       #ffd700;
  --bg-deep:    #0d0d1a;
  --bg-mid:     #16213e;
  --bg-card:    #1a1a35;
  --bg-surface: #1e2448;
  --text:       #f0f0f8;
  --text-muted: #8888aa;
  --success:    #00e676;
  --warning:    #ff9800;
  --info:       #2196f3;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --transition: 0.2s ease;

  --header-h: 64px;
}

/* ── Light Mode Overrides ────────────────────────────────────── */
[data-theme="light"] {
  --bg-deep:    #f0f2f8;
  --bg-mid:     #dde2f0;
  --bg-card:    #ffffff;
  --bg-surface: #eaedf7;
  --text:       #1a1a2e;
  --text-muted: #5a5a80;
  --shadow:     0 4px 24px rgba(0,0,0,.12);
}

/* ── Base Styles ─────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-landing {
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .page-landing {
  background: radial-gradient(ellipse at 20% 60%, #ffd6e8 0%, transparent 55%),
              radial-gradient(ellipse at 80% 20%, #ffe0f0 0%, transparent 50%),
              var(--bg-deep);
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(90deg, #1a0f2e 0%, #2d1b4e 50%, #1a0f2e 100%);
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 4px 24px rgba(255, 0, 102, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
  height: var(--header-h);
}

[data-theme="light"] .site-header {
  background: linear-gradient(90deg, #ffe0ee 0%, #ffd6e8 40%, #ffcce4 60%, #ffe0ee 100%);
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 2px 20px rgba(255,0,102,.15);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-logo-box {
  font-size: 24px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgba(255, 0, 102, 0.4);
  letter-spacing: -1px;
}

.header-logo-box span {
  color: var(--pink);
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

[data-theme="light"] .header-brand-title {
  color: var(--text);
}

.header-brand-sub {
  font-size: 11px;
  color: var(--pink);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── Theme Toggle ────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 2px solid var(--pink);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--pink);
  transform: rotate(20deg);
}

.icon-light { display: none; }
[data-theme="light"] .icon-light { display: block; }
[data-theme="light"] .icon-dark { display: none; }

/* ── Main Content ────────────────────────────────────────────── */
main {
  flex: 1;
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Hero Section ────────────────────────────────────────────── */
.hero-section {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInDown 0.8s ease;
}

.hero-content {
  padding: 40px 20px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.1;
}

[data-theme="light"] .hero-title {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-light) 50%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Games Section ───────────────────────────────────────────── */
.games-section {
  margin-bottom: 80px;
}

.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* ── Game Card ────────────────────────────────────────────────── */
.game-card {
  background: var(--bg-card);
  border: 2px solid rgba(255, 0, 102, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
  border-color: var(--pink);
  box-shadow: 0 8px 32px rgba(255, 0, 102, 0.25);
  transform: translateY(-8px);
}

[data-theme="light"] .game-card {
  background: #fff;
  border-color: rgba(255, 0, 102, 0.2);
  box-shadow: 0 4px 12px rgba(255,0,102,.08);
}

[data-theme="light"] .game-card:hover {
  border-color: var(--pink);
  box-shadow: 0 8px 32px rgba(255,0,102,.15);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.card-description {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.card-features {
  list-style: none;
  margin: 16px 0 20px 0;
  flex-grow: 1;
}

.card-features li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 0, 102, 0.3);
  text-align: center;
  width: 100%;
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 102, 0.4);
  background: linear-gradient(135deg, var(--pink-light), var(--pink));
}

.card-button:active {
  transform: translateY(0px);
}

/* ── Info Section ────────────────────────────────────────────── */
.info-section {
  background: var(--bg-card);
  border: 2px solid rgba(255, 0, 102, 0.2);
  border-radius: var(--radius);
  padding: 60px 40px;
  margin-bottom: 40px;
}

[data-theme="light"] .info-section {
  background: #fff;
  border-color: rgba(255, 0, 102, 0.2);
}

.info-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.info-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 0, 102, 0.08);
  transition: all 0.3s ease;
}

[data-theme="light"] .info-card {
  background: #fce8f0;
}

.info-card:hover {
  background: rgba(255, 0, 102, 0.15);
  transform: translateY(-5px);
}

[data-theme="light"] .info-card:hover {
  background: rgba(255, 0, 102, 0.12);
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(90deg, var(--bg-mid) 0%, var(--bg-deep) 50%, var(--bg-mid) 100%);
  border-top: 2px solid var(--pink);
  padding: 40px 20px 20px;
  margin-top: auto;
}

[data-theme="light"] .site-footer {
  background: linear-gradient(90deg, #fce8f0 0%, #fad5e8 50%, #fce8f0 100%);
  border-top: 2px solid var(--pink);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 0, 102, 0.1);
}

.footer-logo-box {
  font-size: 24px;
  font-weight: 900;
  color: white;
  text-shadow: 0 2px 8px rgba(255, 0, 102, 0.4);
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  padding: 12px 16px;
  border-radius: 8px;
}

[data-theme="light"] .footer-logo-box {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
}

.footer-logo-box span {
  color: var(--gold);
}

[data-theme="light"] .footer-logo-box span {
  color: var(--gold);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

[data-theme="light"] .footer-tagline {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

[data-theme="light"] .footer-bottom {
  color: var(--text-muted);
}

.footer-copy,
.footer-year,
.footer-credit,
.footer-separator {
  color: var(--text-muted);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: slideInUp 0.6s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

/* ── Responsive Design ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  main {
    padding: 40px 16px;
  }

  .games-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-section {
    padding: 40px 20px;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .site-header {
    padding: 0 16px;
  }

  .header-brand-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  main {
    padding: 30px 12px;
  }

  .hero-section {
    margin-bottom: 50px;
  }

  .info-section {
    padding: 30px 16px;
  }

  .info-title {
    font-size: 24px;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Utility Classes ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .theme-toggle {
    display: none;
  }

  .game-card {
    page-break-inside: avoid;
  }
}
