/* ══════════════════════════════════════════════
   ThurzShop — style.css  (Global / Index)
   Design System: Stark Integrity
   ══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Surfaces ─────────────────────────────── */
  --white:                  #ffffff;
  --bg:                     #f7f9fb;
  --bg2:                    #f2f4f6;
  --bg3:                    #eceef0;
  --border:                 #e2e8f0;
  --border-strong:          #c2c6d6;
  --card-bg:                #ffffff;

  /* ── Text ────────────────────────────────── */
  --text:                   #191c1e;
  --muted:                  #424754;

  /* ── Brand / Primary ─────────────────────── */
  --blue:                   #0058be;
  --blue-dk:                #004395;
  --blue-lt:                #d8e2ff;
  --blue-container:         #2170e4;

  /* ── Semantic ────────────────────────────── */
  --green:                  #12b76a;
  --orange:                 #924700;

  /* ── Elevation / Shadow ──────────────────── */
  --shadow:                 0px 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg:              0px 20px 25px rgba(0, 0, 0, 0.10);

  /* ── Shape ───────────────────────────────── */
  --radius-sm:              0.25rem;
  --radius:                 0.5rem;
  --radius-md:              0.75rem;
  --radius-lg:              1rem;
  --radius-xl:              1.5rem;
  --radius-full:            9999px;

  /* ── Spacing (8px base scale) ────────────── */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-7:  56px;
  --space-8:  64px;
  --container: 1280px;
  --gutter:    24px;
}

/* ── Base ─────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography scale ─────────────────────── */
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

/* Logo */
.nav-logo, .store-name {
  font-family: 'Rowdies', sans-serif;
}

/* Navbar CSS → dipindahkan ke header.php */

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-weight: 600; border-radius: var(--radius);
  transition: all .2s;
}
.btn-primary {
  background: var(--blue); color: #fff;
  padding: 8px 20px; font-size: 14px;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 88, 190, .3);
}
.btn-outline {
  background: var(--white); color: var(--text);
  padding: 8px 20px; font-size: 14px;
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  background: #fff; color: var(--blue);
  padding: 12px 28px; font-size: 15px;
  border-radius: var(--radius); font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  display: inline-flex; align-items: center;
  transition: all .2s;
}
.btn-white:hover {
  background: var(--blue-lt);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.btn-primary-lg {
  background: var(--blue); color: #fff;
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-primary-lg:hover {
  background: var(--blue-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 88, 190, .35);
}

.btn-ghost-lg {
  background: var(--white); color: var(--text);
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer;
  font-family: 'Outfit', sans-serif;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.btn-ghost-lg:hover { border-color: var(--blue); color: var(--blue); }

/* ── HERO ────────────────────────────────────── */
.hero {
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-8) var(--gutter) var(--space-6);
  display: grid; grid-template-columns: 1fr 420px;
  gap: var(--space-5); align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-lt); color: var(--blue);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}
.hero-badge svg { flex-shrink: 0; }

.hero h1 { margin-bottom: var(--space-2); }

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(135deg, #1a2a5e 0%, #0d1b3e 100%);
  border-radius: var(--radius-xl); overflow: hidden;
  position: relative; aspect-ratio: 16/11;
  display: flex; align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
.store-name {
  font-size: 22px; font-weight: 800;
  color: #fff; letter-spacing: 2px;
}
.store-sub {
  font-size: 10px; color: rgba(255,255,255,.6);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.secure-badge {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-md);
  padding: 8px 14px; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.secure-badge-icon {
  width: 28px; height: 28px; background: var(--green);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.secure-badge-text { font-size: 12px; font-weight: 700; color: var(--text); }
.secure-badge-sub  { font-size: 10px; color: var(--muted); }

/* ── SECTION COMMONS ─────────────────────────── */
.section {
  padding: var(--space-7) var(--gutter);
  max-width: var(--container); margin: 0 auto;
}
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: var(--space-4);
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-sub {
  font-size: 14px;
  color: var(--muted); margin-top: 4px;
}

.view-all {
  font-size: 14px; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 4px; transition: gap .2s;
}
.view-all:hover { gap: 8px; }

/* ── GAMES GRID ──────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.game-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px; text-align: center; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.game-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.game-icon {
  width: 56px; height: 56px;
  background: var(--bg2);
  border-radius: var(--radius-md);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; overflow: hidden;
}
.game-name  { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.game-count { font-size: 11px; color: var(--muted); }

/* ── HOT DEALS ───────────────────────────────── */
.deals-grid {
  display: grid; grid-template-columns: 1fr 340px; gap: 16px;
}
.deal-featured {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; min-height: 300px;
  background: linear-gradient(135deg, #0d1b3e 0%, #1a2a5e 100%);
  cursor: pointer;
}
.deal-featured-img { width: 100%; height: 100%; object-fit: cover; }
.deal-featured-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--space-3);
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
}

.deal-tag {
  display: inline-block; background: var(--blue);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-sm);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 10px;
}
.deal-featured-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.deal-price { display: flex; align-items: baseline; gap: 10px; }
.deal-price-main { font-size: 22px; font-weight: 700; color: #fff; }
.deal-price-old  { font-size: 14px; color: rgba(255,255,255,.45); text-decoration: line-through; }

.deal-list { display: flex; flex-direction: column; gap: 12px; }
.deal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.deal-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.deal-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.deal-card-icon {
  width: 36px; height: 36px; background: var(--bg2);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 18px;
}

.badge-verified {
  background: rgba(18, 183, 106, .1); color: var(--green);
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .3px;
}
.badge-hot {
  background: rgba(146, 71, 0, .1); color: var(--orange);
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: .3px;
}

.deal-card-title  { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.deal-card-sub    { font-size: 12px; color: var(--muted); }
.deal-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.deal-card-price  { font-size: 20px; font-weight: 700; color: var(--text); }
.deal-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 4px; transition: gap .2s;
}
.deal-link:hover { gap: 8px; }

/* ── TRUST SECTION ───────────────────────────── */
.trust-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  max-width: var(--container); margin: 0 auto;
  padding: var(--space-8) var(--gutter); text-align: center;
}
.trust-inner h2  { margin-bottom: 12px; }
.trust-inner > p { color: var(--muted); font-size: 16px; max-width: 500px; margin: 0 auto var(--space-6); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.trust-card { text-align: center; }

.trust-icon {
  width: 56px; height: 56px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-2); font-size: 24px;
}
.trust-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.trust-card p  { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── CTA BANNER ──────────────────────────────── */
.cta-section { padding: var(--space-7) var(--gutter); }
.cta-inner {
  max-width: var(--container); margin: 0 auto;
  background: var(--blue);
  border-radius: var(--radius-xl);
  padding: var(--space-6) 56px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
}
.cta-text h2 { color: #fff; margin-bottom: 10px; }
.cta-text p  { font-size: 16px; color: rgba(255,255,255,.75); max-width: 380px; }

/* Footer CSS → dipindahkan ke footer.php */

/* ── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * { animation: fadeUp .5s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .05s; }
.hero-left > *:nth-child(2) { animation-delay: .12s; }
.hero-left > *:nth-child(3) { animation-delay: .19s; }
.hero-left > *:nth-child(4) { animation-delay: .26s; }
.hero-card { animation: fadeUp .5s ease .3s both; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .games-grid   { grid-template-columns: repeat(3, 1fr); }
  .deals-grid   { grid-template-columns: 1fr; }
  .deal-list    { flex-direction: row; }
}
@media (max-width: 768px) {
  .hero         { grid-template-columns: 1fr; padding: var(--space-5) var(--space-2); }
  .hero-card    { display: none; }
  .games-grid   { grid-template-columns: repeat(3, 1fr); }
  .trust-grid   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .cta-inner    { flex-direction: column; text-align: center; padding: var(--space-4) var(--space-3); }
  .deal-list    { flex-direction: column; }
  /* .nav-links & .search-box responsive → dipindahkan ke header.php */
}
@media (max-width: 480px) {
  .footer-grid  { grid-template-columns: 1fr; }
  .games-grid   { grid-template-columns: repeat(2, 1fr); }
}