/* =========================================================
   huhugiris.com — HuhuBet kurumsal referans sitesi
   Marka rengi: #5D238F | Performans & erişilebilirlik odaklı
   ========================================================= */

:root {
  --brand: #5d238f;
  --brand-dark: #40007b;
  --brand-deep: #2e0858;
  --brand-soft: #efe6f7;
  --brand-mid: #7a45ad;
  --ink: #1a1523;
  --ink-soft: #3d3548;
  --muted: #6a6175;
  --line: #e4dceb;
  --surface: #ffffff;
  --bg: #f6f3f9;
  --bg-tint: #ebe4f2;
  --success: #1f7a4c;
  --warning: #9a6b12;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(45, 20, 70, 0.08);
  --shadow-sm: 0 2px 10px rgba(45, 20, 70, 0.06);
  --max: 1120px;
  --header-h: 72px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Sora", "Manrope", sans-serif;
  --focus: 0 0 0 3px rgba(93, 35, 143, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(93, 35, 143, 0.08), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(64, 0, 123, 0.06), transparent 50%),
    linear-gradient(180deg, #f9f7fb 0%, var(--bg) 40%, #f3eef8 100%);
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.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(--max));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.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: 150px;
  height: 50px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bars {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(93, 35, 143, 0.25);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(46, 8, 88, 0.92) 0%, rgba(93, 35, 143, 0.88) 55%, rgba(64, 0, 123, 0.9) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 40%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-visual {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20, 5, 40, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateY(0);
  animation: heroRise 0.8s ease both;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 969 / 395;
  object-fit: cover;
}

/* Kare kampanya görselleri (1:1) — kırpılmadan göster */
.hero-visual--square {
  max-width: min(100%, 420px);
  justify-self: end;
}

.hero-visual--square img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

/* Geniş kampanya bannerları (≈3:1) — kırpılmadan göster */
.hero-visual--wide img {
  aspect-ratio: 2620 / 879;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .hero-visual--square {
    justify-self: center;
    max-width: min(100%, 360px);
  }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy {
  animation: heroRise 0.7s ease both;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(239, 230, 247, 0.45));
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head h2,
.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--brand-dark);
}

.prose h4 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--brand);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

/* ---------- Cards / grids ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-item {
  padding: 1.25rem 1.2rem;
  border-top: 3px solid var(--brand);
  background: transparent;
}

.feature-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.brand-link img {
  width: 100%;
  aspect-ratio: 969 / 395;
  object-fit: cover;
}

.brand-link .brand-body {
  padding: 1rem 1.1rem 1.2rem;
}

.brand-link h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-family: var(--display);
  color: var(--brand-dark);
}

.brand-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-family: var(--display);
}

.contact-card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card a {
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- Tables ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  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-weight: 700;
  font-size: 0.92rem;
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
  padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
}

.faq-item .faq-body p {
  margin: 0;
}

/* ---------- Aside / CTA panel ---------- */
.side-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: linear-gradient(160deg, var(--brand-deep), var(--brand) 70%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #fff;
}

.side-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.side-panel .btn-primary {
  width: 100%;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.side-panel .btn-primary:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.side-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.side-links a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.side-links a:hover {
  text-decoration: underline;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Compare / pros cons ---------- */
.split-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.split-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--surface);
}

.split-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.split-box.good h3 { color: var(--success); }
.split-box.warn h3 { color: var(--warning); }

.split-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* ---------- Inline banner ---------- */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-soft), #fff 55%, var(--bg-tint));
  border: 1px solid var(--line);
  margin: 2rem 0;
}

.cta-banner p {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
}

.cta-banner strong {
  color: var(--brand-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--display);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.85rem;
}

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand img {
  width: 140px;
  height: 47px;
  margin-bottom: 0.75rem;
  filter: brightness(1.05);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.age-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 2rem 0 0.5rem;
}

.legal-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
}

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.img-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.img-figure img {
  width: 100%;
}

.img-figure figcaption {
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    border-radius: var(--radius-sm);
  }

  .header-cta .btn-secondary {
    display: none;
  }

  .hero-grid,
  .feature-grid,
  .split-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
