:root {
  --bg: #0a0f1e;
  --bg-2: #0e1528;
  --surface: #131c33;
  --surface-2: #1b2643;
  --surface-3: #253150;
  --border: #23304f;
  --border-soft: #1a2540;
  --text: #f4f6fb;
  --muted: #93a0bd;
  --dim: #5f6d8e;
  --gold: #e7b84c;
  --gold-2: #d29e2f;
  --gold-glow: rgba(231,184,76,0.35);
  --crimson: #e23b4e;
  --crimson-2: #c4283a;
  --crimson-glow: rgba(226,59,78,0.4);
  --royal: #3f6fe0;
}

* { -webkit-font-smoothing: antialiased; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

.font-display { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Backgrounds */
.bg-app { background: var(--bg); }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-gradient-hero {
  background:
    radial-gradient(760px 380px at 82% -5%, rgba(231,184,76,0.14), transparent 60%),
    radial-gradient(620px 420px at 8% 15%, rgba(63,111,224,0.12), transparent 60%),
    linear-gradient(180deg, #0a0f1e 0%, #0a0f1e 100%);
}

.text-muted { color: var(--muted); }
.text-dim { color: var(--dim); }
.text-green { color: var(--gold); }      /* şablon uyumluluğu: vurgu = gold */
.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson); }
.bg-green { background: var(--gold); }
.bg-gold { background: var(--gold); }
.border-default { border-color: var(--border); }
.border-soft { border-color: var(--border-soft); }

/* Live dot */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--crimson);
  box-shadow: 0 0 0 0 rgba(226,59,78,0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226,59,78,0.7); }
  100% { box-shadow: 0 0 0 12px rgba(226,59,78,0); }
}

/* Buttons — ana aksiyon (BONUSU AL) kızıl */
.btn-claim {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #f24a5c 0%, var(--crimson-2) 100%);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px -8px var(--crimson-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-claim:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px var(--crimson-glow), inset 0 1px 0 rgba(255,255,255,0.35); }

/* Altın buton (ikincil vurgulu CTA) */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #f2c85f 0%, var(--gold-2) 100%);
  color: #2a1e02;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 24px -8px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px var(--gold-glow); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 10px;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-pill:hover { color: var(--text); border-color: var(--surface-3); }
.btn-pill.active { background: var(--gold); color: #2a1e02; border-color: var(--gold); font-weight: 700; }

/* Site cards — üstte ince altın şerit ile "sancak" vurgusu */
.site-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}
.site-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(231,184,76,0.5), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.site-card:hover {
  border-color: rgba(231,184,76,0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(231,184,76,0.15);
}
.site-card:hover::before { opacity: 1; }

/* Logo placeholder */
.logo-tile {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  border: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.logo-tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(231,184,76,0.12) 100%);
}
.logo-tile.gold { background: linear-gradient(135deg, #2c2410, #3a2f14); color: var(--gold); }
.logo-tile.green { background: linear-gradient(135deg, #0d2419, #0f3024); color: #4ade80; }
.logo-tile.red { background: linear-gradient(135deg, #2c1418, #3a161f); color: #ff7a8a; }
.logo-tile.blue { background: linear-gradient(135deg, #10203a, #16294a); color: #6ea2ff; }
.logo-tile.purple { background: linear-gradient(135deg, #1c1530, #24193f); color: #a78bff; }

/* Bonus amount big */
.bonus-amount {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.03em;
}
.bonus-currency { font-size: 20px; font-weight: 700; margin-left: 4px; color: var(--gold); }

/* Stars */
.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: 14px; }
.star-empty { color: var(--surface-3); }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-hot { background: rgba(226,59,78,0.15); color: var(--crimson); border: 1px solid rgba(226,59,78,0.3); }
.badge-new { background: rgba(231,184,76,0.15); color: var(--gold); border: 1px solid rgba(231,184,76,0.3); }
.badge-trend { background: rgba(63,111,224,0.14); color: var(--royal); border: 1px solid rgba(63,111,224,0.3); }
.badge-vip { background: linear-gradient(135deg, #3a2f14, #2c2410); color: var(--gold); border: 1px solid rgba(231,184,76,0.4); }

/* Trust strip */
.trust-row {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Section headings */
.section-title { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold);
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 6px 14px;
  background: rgba(231,184,76,0.08);
  border: 1px solid rgba(231,184,76,0.25);
  border-radius: 999px;
}

/* Inputs */
input, textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
input::placeholder, textarea::placeholder { color: var(--dim); }

/* Detail page spec rows */
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--muted); font-size: 14px; }
.spec-value { color: var(--text); font-weight: 600; font-size: 14px; }

/* Tabs */
.tab {
  padding: 14px 22px; font-weight: 600; font-size: 14px; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Accordion */
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.accordion-head { padding: 20px 24px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.accordion-body { padding: 0 24px 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Hero featured big card */
.hero-featured {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(231,184,76,0.2), transparent 70%),
    linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}
.hero-featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #2a1e02; }

/* Fade in stagger */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 0.7s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.d-1 { animation-delay: 0.05s; }
.d-2 { animation-delay: 0.1s; }
.d-3 { animation-delay: 0.15s; }
.d-4 { animation-delay: 0.2s; }
.d-5 { animation-delay: 0.25s; }
.d-6 { animation-delay: 0.3s; }

/* Rank number */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800;
}

/* Icon tile */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(231,184,76,0.1);
  color: var(--gold);
  border: 1px solid rgba(231,184,76,0.25);
}

/* Glow accent line */
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; }

/* Stat */
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }

/* ribbon for featured */
.ribbon {
  position: absolute; top: 16px; right: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #2a1e02;
  padding: 6px 12px; border-radius: 6px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Rich content typography ---------- */
.sb-content { color: #c2cbe0; font-size: 15px; line-height: 1.78; }
.sb-content > * + * { margin-top: 1em; }
.sb-content p { margin: 0; }
.sb-content strong, .sb-content b { color: #fff; font-weight: 700; }
.sb-content em, .sb-content i { font-style: italic; }
.sb-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.sb-content a:hover { color: #f4cd6c; }

.sb-content h1, .sb-content h2, .sb-content h3, .sb-content h4 {
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 1.8em;
  margin-bottom: .6em;
}
.sb-content h1 { font-size: 1.875rem; }
.sb-content h2 { font-size: 1.5rem; }
.sb-content h3 { font-size: 1.25rem; }
.sb-content h4 { font-size: 1.05rem; }

.sb-content ul, .sb-content ol { padding-left: 1.5rem; margin: 0; }
.sb-content ul { list-style: disc; }
.sb-content ol { list-style: decimal; }
.sb-content ul ul { list-style: circle; }
.sb-content li { margin-top: .35em; padding-left: .25rem; }
.sb-content li::marker { color: var(--gold); }

.sb-content blockquote {
  margin: 0; padding: .75rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(231,184,76,.06);
  color: var(--muted);
  border-radius: 0 .5rem .5rem 0;
}
.sb-content blockquote p { margin: 0; }

.sb-content code {
  background: rgba(255,255,255,.06); color: #fff;
  padding: .15em .4em; border-radius: .3em;
  font-family: 'JetBrains Mono', monospace; font-size: .9em;
}

.sb-content table { width: 100%; border-collapse: collapse; font-size: .95em; }
.sb-content th, .sb-content td { border: 1px solid var(--border); padding: .6rem .9rem; text-align: left; }
.sb-content th { background: rgba(255,255,255,.04); color: #fff; font-weight: 600; }
.sb-content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* ============================================================
   Sancak Bonus — Anasayfa 2.0 bileşenleri
   ============================================================ */

/* Duyuru barı */
.announce-bar {
  position: relative;
  border: 1px solid rgba(231,184,76,0.28);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(600px 120px at 50% 0%, rgba(231,184,76,0.12), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.announce-bar::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.announce-ticker {
  font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: 12px;
}
.announce-ticker .sep { color: var(--gold); margin: 0 10px; }

/* Canlı istatistik paneli */
.stat-panel {
  background: linear-gradient(150deg, var(--surface-2) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative; overflow: hidden;
}
.stat-panel::before {
  content: ''; position: absolute; top: 0; right: 0; width: 140px; height: 140px;
  background: radial-gradient(circle at 100% 0%, rgba(231,184,76,0.16), transparent 70%);
}
.stat-cell { border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,0.02); }

/* Arama kutusu */
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 14px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--gold); }
.search-box input {
  border: 0 !important; background: transparent !important; padding: 12px 0 !important;
  color: #fff; width: 100%; font-size: 14px;
}
.search-box input:focus { outline: none; }

/* Filtre çipleri */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.chip:hover { color: #fff; border-color: var(--surface-3); }
.chip.is-active {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #2a1e02; border-color: var(--gold);
}

/* Kompakt site kartı (2 sütun grid) */
.mini-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  transition: all .22s ease;
}
.mini-card::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--border); transition: background .22s;
}
.mini-card:hover { border-color: rgba(231,184,76,0.45); transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.7); }
.mini-card:hover::before { background: var(--gold); }
.mini-card.is-top { border-color: rgba(231,184,76,0.4); }
.mini-card.is-top::before { background: linear-gradient(180deg, var(--gold), var(--crimson)); }

.mini-rank {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 15px;
  width: 26px; text-align: center; color: var(--dim); flex-shrink: 0;
}
.mini-card.is-top .mini-rank { color: var(--gold); }
.mini-logo {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px;
}
.mini-badge {
  position: absolute; top: -9px; left: 54px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; font-family: 'Sora', sans-serif;
}
.mini-badge.vip   { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #2a1e02; }
.mini-badge.trust { background: rgba(63,111,224,0.16); color: #7ea6ff; border: 1px solid rgba(63,111,224,0.35); }
.mini-badge.hot   { background: rgba(226,59,78,0.16); color: #ff8a97; border: 1px solid rgba(226,59,78,0.35); }

.btn-al {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 10px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #f24a5c 0%, var(--crimson-2) 100%);
  color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 6px 18px -8px var(--crimson-glow);
  transition: all .2s;
}
.btn-al:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* Boş sonuç */
.empty-hint { display: none; }
.is-empty .empty-hint { display: block; }

/* Uzman not kutusu */
.note-box {
  position: relative;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, rgba(231,184,76,0.05), transparent 60%), var(--surface);
  padding: 20px 22px;
}
.note-box .note-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); font-family: 'Sora', sans-serif; margin-bottom: 8px;
}

/* Bilgi / ipucu kutusu */
.tip-box {
  border: 1px solid rgba(63,111,224,0.3);
  border-radius: 14px;
  background: rgba(63,111,224,0.06);
  padding: 18px 20px;
}

/* Adım kartı numarası */
.step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #2a1e02; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px;
}
.step-line { position: relative; }
.step-line::before {
  content: ''; position: absolute; left: 21px; top: 44px; bottom: -18px; width: 2px;
  background: linear-gradient(180deg, rgba(231,184,76,0.4), transparent);
}
.step-line:last-child::before { display: none; }

/* Bölüm ayırıcı süs */
.rule-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--gold); }

/* Puanlama barı (nasıl seçiyoruz) */
.score-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.score-bar > span { display:block; height:100%; border-radius:999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }

/* === Mobil: site listeleme kartı sıkışma düzeltmesi (≤640px) === */
@media (max-width: 640px) {
  .mini-card {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 14px 14px 14px 16px;
  }
  .mini-rank { width: 20px; font-size: 13px; }
  .mini-logo { width: 52px; height: 52px; }
  /* İsim + bonus bloğu kalan genişliği alsın */
  .mini-card > .flex-1 { flex: 1 1 auto; min-width: 0; }
  /* Site adı ve bonus detayı kırpılmasın; gerekiyorsa alt satıra sarsın */
  .mini-card .truncate { white-space: normal; overflow: visible; text-overflow: clip; }
  .mini-card .font-display.text-base { line-height: 1.25; word-break: break-word; }
  /* Bonusu Al butonu tam genişlikte, kendi satırında */
  .mini-card .btn-al {
    order: 10;
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13px;
  }
}
