/* =========================================================
   Huhubetonline.com — Brand reference site styles
   Primary brand purple extracted from logo: #5D238F
   ========================================================= */

:root {
  --brand: #5d238f;
  --brand-dark: #3c0078;
  --brand-deep: #2a0850;
  --brand-soft: #f3ebf9;
  --brand-mid: #8b5bb8;
  --accent: #1fb8d4;
  --ink: #1a1224;
  --ink-soft: #4a4058;
  --muted: #6f647c;
  --line: #e6dced;
  --surface: #ffffff;
  --bg: #f4f1f8;
  --bg-tint: #f0e8f7;
  --success: #1f8a5b;
  --warning: #b7791f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(45, 10, 80, 0.06);
  --shadow-strong: 0 10px 28px rgba(45, 10, 80, 0.1);
  --container: 1080px;
  --header-h: 72px;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --transition: 0.22s ease;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 2.5rem;
  --space-7: 3rem;
  --content-width: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(93, 35, 143, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-link img {
  width: 148px;
  height: 49px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

/* Header CTA: .site-nav a:hover must not override white label */
.site-nav a.btn-primary.nav-cta,
.site-nav a.nav-cta.btn-primary {
  margin-left: 0.35rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border: 2px solid transparent;
  box-shadow: 0 8px 18px rgba(93, 35, 143, 0.28);
  padding: 0.65rem 1.25rem;
}

.site-nav a.btn-primary.nav-cta:hover,
.site-nav a.btn-primary.nav-cta:focus,
.site-nav a.btn-primary.nav-cta[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1f0540 100%);
  box-shadow: 0 10px 22px rgba(93, 35, 143, 0.35);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(93, 35, 143, 0.28);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: #fff;
  color: var(--brand);
  border-color: rgba(93, 35, 143, 0.25);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 2rem;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, #6a2aa3 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

.hero-copy {
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  max-width: 22ch;
  margin: 0 0 var(--space-3);
  line-height: 1.3;
}

.hero-lead {
  max-width: 38ch;
  margin: 0 0 var(--space-4);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-strong);
}

.hero-visual a {
  display: block;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.hero .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- World Cup final accordion ---------- */
.wc-final {
  margin: 0 0 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wc-final > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.15rem 1rem;
  display: grid;
  gap: 1rem;
}

.wc-final > summary::-webkit-details-marker {
  display: none;
}

.wc-final-head {
  display: grid;
  gap: 0.45rem;
}

.wc-final-title {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.wc-final-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52rem;
}

.wc-final-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.wc-final-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.wc-final-toggle {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.wc-final[open] .wc-final-toggle::after {
  content: " ▲";
}

.wc-final:not([open]) .wc-final-toggle::after {
  content: " ▼";
}

.wc-final-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.wc-final-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.wc-final-team img {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wc-final-meta {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.wc-final-meta strong {
  display: block;
  color: var(--brand-deep);
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.wc-final-body {
  padding: 0 1.15rem 1.35rem;
  border-top: 1px solid var(--line);
}

.wc-final-body h3 {
  margin: 1.25rem 0 0.55rem;
  font-size: 1.1rem;
}

.wc-final-body p,
.wc-final-body li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.wc-final-actions {
  margin: 1.25rem 0 0.5rem;
}

.wc-final-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.risk-low { color: var(--success); font-weight: 700; }
.risk-mid { color: var(--warning); font-weight: 700; }
.risk-high { color: #b42318; font-weight: 700; }

/* ---------- Sections ---------- */
.section {
  padding: var(--space-6) 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid rgba(93, 35, 143, 0.06);
}

.section-head {
  max-width: var(--content-width);
  margin-bottom: var(--space-4);
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.section h2,
.article-body h2 {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--brand-deep);
}

.section h3,
.article-body h3 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--brand-dark);
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: var(--content-width);
}

/* ---------- Campaign highlights ---------- */
.promo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.promo-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.promo-badge {
  flex: none;
  min-width: 3rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
}

.promo-list strong {
  color: var(--brand-deep);
}

/* ---------- Homepage promo panel (index only) ---------- */
.home-promo-panel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.home-promo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.section .home-promo-grid {
  max-width: none;
  padding-left: 0;
  color: inherit;
}

.home-promo-grid li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  min-height: 6.25rem;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.section .home-promo-grid li + li {
  margin-block-start: 0;
}

.home-promo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 4.5rem;
}

.home-promo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 3.75rem;
}

.home-promo-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.35;
}

.home-promo-desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.home-promo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-block-start: var(--space-4);
  padding-block-start: var(--space-4);
  border-top: 1px solid var(--line);
}

.section-head + .home-promo-panel {
  margin-block-start: var(--space-4);
}

#kampanya-ozet .section-head {
  max-width: none;
  text-align: center;
}

#kampanya-ozet .section-head .lead {
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .home-promo-grid {
    gap: var(--space-4);
  }

  .home-promo-grid li {
    padding: var(--space-4);
  }
}

.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-3);
}

.sidebar-box h2 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

.sidebar-note {
  margin: 0 0 var(--space-3);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.sidebar .btn-primary {
  width: 100%;
}

.section-head h2 {
  margin-bottom: var(--space-2);
}

.section-head + .content-media,
.section-head + .feature-grid,
.section-head + .link-grid,
.section-head + .faq-list,
.section-head + ol,
.section-head + ul,
.section-head + .btn-group,
.section-head + .wc-final {
  margin-block-start: var(--space-4);
}

.wc-final {
  margin-block: 0;
}

/* ---------- Social links ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.social-link img {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.js-email {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.js-email:hover {
  color: var(--brand-dark);
}

.support-box {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.support-box h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.support-box p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.support-box p:last-child {
  margin-bottom: 0;
}

.site-footer .social-links,
.site-footer .footer-social {
  margin-top: 0.75rem;
  gap: 0.4rem;
}

.site-footer .social-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
}

.site-footer .social-link img {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px;
  max-height: 14px;
  flex: 0 0 14px;
  display: block;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.95;
}

.site-footer .social-link span {
  line-height: 1;
}

/* ---------- Content layout ---------- */
.page-hero {
  padding: var(--space-5) 0 var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
  color: var(--brand-deep);
  max-width: 36ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3);
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: var(--muted);
}

.page-hero .lead {
  margin: 0 0 var(--space-4);
}

.page-hero .btn-group {
  margin-top: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-5);
  align-items: start;
}

.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.article-body > * {
  margin-block: 0;
}

.article-body > * + * {
  margin-block-start: var(--space-3);
}

.article-body > h2:not(:first-of-type) {
  border-top: 1px solid var(--line);
  padding-block-start: var(--space-4);
  margin-block-start: var(--space-5);
}

.article-body > h2:first-of-type {
  margin-block-start: 0;
  border-top: 0;
  padding-block-start: 0;
}

.article-body > h3 {
  margin-block-start: var(--space-4);
}

.article-body > h2 + p,
.article-body > h3 + p,
.article-body > h2 + ul,
.article-body > h3 + ul,
.article-body > h2 + ol,
.article-body > h3 + ol {
  margin-block-start: var(--space-2);
}

.article-body p {
  color: var(--ink-soft);
  max-width: var(--content-width);
}

.article-body ul,
.article-body ol {
  margin-block: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  max-width: var(--content-width);
}

.article-body li + li {
  margin-block-start: var(--space-1);
}

.article-body li::marker {
  color: var(--brand);
}

.content-media {
  margin-block: 0;
}

.section .content-media,
.article-body .content-media {
  margin-block: var(--space-4);
}

.section .section-head + .content-media,
.article-body > :first-child.content-media {
  margin-block-start: 0;
}

.section .content-media + .content-media,
.article-body .content-media + .content-media {
  margin-block-start: var(--space-3);
}

.article-body > .content-media {
  margin-block: var(--space-4);
}

.article-body > .content-media:first-child {
  margin-block-start: 0;
}

.article-body > .promo-list,
.article-body > .cta-band,
.article-body > .callout,
.article-body > .table-wrap,
.article-body > .faq-list,
.article-body > .game-grid,
.article-body > .pros-cons {
  margin-block: var(--space-4);
}

.article-body > .cta-band,
.article-body > .callout {
  max-width: none;
}

.legal-body {
  max-width: 820px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.legal-body > * + * {
  margin-block-start: var(--space-3);
}

.legal-body h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-block-start: var(--space-5);
  padding-block-start: var(--space-4);
  border-top: 1px solid var(--line);
}

.legal-body h2:first-child {
  margin-block-start: 0;
  padding-block-start: 0;
  border-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: var(--content-width);
}

.section ol,
.section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  max-width: var(--content-width);
}

.section ol li + li,
.section ul li + li {
  margin-block-start: var(--space-2);
}

.section .cta-band {
  margin-block-start: var(--space-4);
}

.feature h3 {
  margin: var(--space-2) 0 var(--space-2);
  font-size: 1.0625rem;
  font-weight: 700;
}

.support-box h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.figure {
  margin: 1.75rem 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.banner-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.banner-link img {
  width: 100%;
}

/* ---------- Cards / grids (interaction containers) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ---------- Media layouts (tam görünüm, kesme yok) ---------- */
.media-stack {
  display: grid;
  gap: var(--space-3);
}

.media-wide,
.media-frame,
.banner-link {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--brand-soft);
  border: 1px solid var(--line);
}

.media-wide img,
.media-frame img,
.banner-link img,
.media-banner-grid img,
.media-square-grid img,
.media-secure img,
.game-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.media-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.media-square-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}

.media-square-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.media-secure {
  max-width: 320px;
  margin-inline: auto;
}

/* ---------- Security notice popup ---------- */
.security-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.security-popup.is-open {
  opacity: 1;
  visibility: visible;
}

.security-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 6, 51, 0.55);
  backdrop-filter: blur(3px);
}

.security-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(26, 6, 51, 0.28);
  padding: 1.15rem 1.15rem 1.25rem;
  text-align: center;
}

.security-popup-dialog img {
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 0.85rem;
  border-radius: 10px;
  display: block;
}

.security-popup-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.security-popup-dialog p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.security-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.security-popup-actions .btn {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.security-popup-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.security-popup-close:hover {
  background: var(--line);
}

body.popup-open {
  overflow: hidden;
}

.link-tile {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.link-tile:hover {
  border-color: var(--brand-mid);
  transform: translateY(-2px);
  color: inherit;
}

.link-tile strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--brand-deep);
  margin-bottom: var(--space-1);
}

.link-tile span {
  color: var(--muted);
  font-size: 0.95rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-3);
}

.game-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-item img {
  border-radius: 0;
  box-shadow: none;
  background: var(--brand-soft);
}

.game-item figcaption {
  padding: var(--space-2) var(--space-1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.35;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin-block: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--brand);
  background: linear-gradient(90deg, var(--brand-soft), var(--surface));
  padding: var(--space-3) var(--space-4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: 0;
  max-width: none;
}

.callout strong {
  color: var(--brand-deep);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.panel h3 {
  margin-top: 0;
}

.panel.good {
  border-top: 3px solid var(--success);
}

.panel.caution {
  border-top: 3px solid var(--warning);
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-box li + li {
  margin-top: 0.45rem;
}

.sidebar-box a {
  text-decoration: none;
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--brand-deep);
  font-family: var(--font-body);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  padding: 0 var(--space-4) var(--space-3);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-item .faq-answer p {
  margin: 0;
}

/* ---------- Brands strip ---------- */
.brands {
  text-align: center;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--brand-deep) 0%, #1a0633 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 140px;
  height: 47px;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32ch;
}

.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 var(--space-3);
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #6d2aa8);
  color: #fff;
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  box-shadow: var(--shadow-strong);
  margin-block: 0;
  max-width: none;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 var(--space-1);
  font-size: 1.25rem;
  font-weight: 700;
  border: 0;
  padding: 0;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--brand-dark);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-brand,
  .hero-title,
  .hero-lead,
  .btn-group {
    animation: rise 0.7s ease both;
  }

  .hero-title { animation-delay: 0.08s; }
  .hero-lead { animation-delay: 0.16s; }
  .btn-group { animation-delay: 0.24s; }

  .feature,
  .link-tile,
  .game-item {
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .feature:hover,
  .game-item:hover {
    transform: translateY(-3px);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .media-square-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .home-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-h) + 0.35rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.65rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-strong);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav a.nav-cta {
    margin: 0;
    width: 100%;
    justify-content: center;
  }

  .site-nav a.btn-primary.nav-cta {
    color: #fff;
  }

  .header-inner {
    position: relative;
  }

  .feature-grid,
  .link-grid,
  .pros-cons,
  .footer-grid,
  .media-banner-grid,
  .media-square-grid,
  .media-square-grid.cols-3,
  .promo-list {
    grid-template-columns: 1fr;
  }

  .home-promo-grid {
    grid-template-columns: 1fr;
  }

  .home-promo-panel {
    padding: var(--space-4);
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-banner-grid {
    grid-template-columns: 1fr;
  }

  .media-square-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .wc-final-matchup {
    gap: 0.5rem;
  }

  .wc-final-summary-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .wc-final-meta strong {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    width: 100%;
  }

  .hero-title {
    max-width: none;
  }
}

@media (max-width: 320px) {
  .logo-link img {
    width: 120px;
    height: 40px;
  }

  .page-hero h1,
  .hero-brand {
    font-size: 1.7rem;
  }
}
