/* =====================================================================
   tavsiyo — site stilleri

   NOT: Content-Security-Policy satır içi stile ('unsafe-inline') izin
   vermiyor. Bu yüzden HTML içinde style="" YOKTUR; dinamik olan tek şey
   rozet ilerleme çubuğudur ve o da aşağıdaki .p-0 ... .p-100 sınıflarıyla
   çözülür.
   ===================================================================== */

:root {
  --paper: #FBF3E7;
  --paper-2: #F5E8D3;
  --white: #FFFDF9;
  --ink: #3A4A47;
  --ink-soft: #7C8B85;
  --green: #33B6A3;
  --green-deep: #227567;
  --gold: #F8BE55;
  --gold-soft: #FBDDA0;
  --clay: #F28A6D;
  --clay-deep: #D96A4E;
  --line: rgba(58, 74, 71, 0.12);
  --line-strong: rgba(58, 74, 71, 0.22);
  --shadow-sm: 0 2px 8px rgba(58, 74, 71, 0.06);
  --shadow: 0 6px 24px rgba(58, 74, 71, 0.10);
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

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

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-deep); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Klavye ile gezinenler için görünür odak halkası */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ------------------------------------------------------------- üst menü */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--green-deep); letter-spacing: -0.01em;
}
.brand-tagline {
  font-size: .68rem; color: var(--ink-soft); letter-spacing: .06em;
  text-transform: uppercase; font-weight: 500;
}

/* Eski metin tabanlı işaret — footer ve panelde hâlâ kullanılıyor */
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: var(--green-deep); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}

.site-nav { display: flex; gap: 18px; margin-right: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: 4px 0; }
.site-nav a.active, .site-nav a:hover { color: var(--green-deep); }
.site-nav a.active { box-shadow: inset 0 -2px 0 var(--green); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.notif-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.notif-link:hover { background: var(--paper-2); text-decoration: none; }
.notif-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--clay-deep); color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 4px;
}

/* --------------------------------------------------------------- butonlar */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: .93rem; font-weight: 600;
  padding: 9px 16px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.3;
}
.btn:hover { text-decoration: none; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; margin-top: 6px; }

.btn-primary { background: var(--green-deep); color: var(--paper); }
.btn-primary:hover { background: #1b5f54; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); }

/* Çerçeveli buton: beyaz zemin + ince kenarlık.
   "Giriş Yap" / "Üye Ol" ikilisinde kullanılır; ikisi de aynı ağırlıkta
   görünsün diye biri vurgulu (primary) yapılmadı. */
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { background: var(--paper-2); border-color: var(--ink-soft); }

/* İki butonu bir arada tutar; mobilde de yan yana kalırlar */
.auth-buttons { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.auth-buttons .btn { min-width: 92px; }

.btn-link { background: none; color: var(--green-deep); padding: 6px 8px; }
.btn-link:hover { text-decoration: underline; }

.btn-danger { background: var(--clay-deep); color: #fff; }
.btn-danger:hover { background: #bf5539; }

.inline-form { display: inline-flex; margin: 0; gap: 6px; align-items: center; }

/* ------------------------------------------------------------ flash mesaj */

.flash-area { margin-top: 16px; }
.flash {
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px;
  font-size: .93rem; border-left: 4px solid var(--ink-soft); background: var(--white);
}
.flash-success { border-left-color: var(--green); background: #E7F6F2; }
.flash-error { border-left-color: var(--clay-deep); background: #FDECE6; }
.flash-warning { border-left-color: var(--gold); background: #FEF5E2; }
.flash-info { border-left-color: var(--green-deep); background: #EDF4F3; }

.form-alert {
  background: #FDECE6; border-left: 4px solid var(--clay-deep);
  padding: 12px 16px; border-radius: var(--radius-sm); font-size: .93rem;
}

/* -------------------------------------------------------------------- hero */

/* ------------------------------------------------------------------ hero */

.hero { padding: 44px 0 8px; }
.hero-inner {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
}
.hero-text { min-width: 0; }

.hero-title { margin: 0 0 16px; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; }
.hero-title em {
  font-style: italic; font-weight: 500; color: var(--green-deep);
}

.hero-sub { color: var(--ink-soft); font-size: 1.02rem; max-width: 46ch; margin-bottom: 24px; }

/* Arama çubuğu: tek parça, krem dolgulu */
.hero-search {
  display: flex; gap: 8px; align-items: center;
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 6px 6px 6px 18px;
  max-width: 560px; box-shadow: var(--shadow-sm);
}
.hero-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font-family: inherit; font-size: .95rem; color: var(--ink); padding: 8px 0;
}
.hero-search input[type="search"]:focus { outline: none; }
.hero-search input[type="search"]::placeholder { color: #A99A85; }
.hero-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(51, 182, 163, .18); }
.hero-search .btn { flex: 0 0 auto; padding: 10px 22px; }

/* Öneri listesinin konumlanabilmesi için sarmalayıcı */
.hero-search-wrap { position: relative; max-width: 560px; }

/* --------------------------------------------------------- arama önerileri */

.suggest-box {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(58, 74, 71, .16);
  overflow: hidden; max-height: 380px; overflow-y: auto;
}
.suggest-box[hidden] { display: none; }

.suggest-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover,
.suggest-item.is-active { background: var(--paper-2); text-decoration: none; }

.suggest-icon { flex: 0 0 auto; font-size: 1rem; opacity: .75; }

.suggest-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.suggest-text strong {
  font-size: .93rem; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.suggest-text small { font-size: .78rem; color: var(--ink-soft); }

.suggest-score {
  flex: 0 0 auto; font-size: .8rem; font-weight: 700; color: #8a6412;
  background: var(--gold-soft); border-radius: 100px; padding: 2px 9px;
}

/* Kategori önerileri hafifçe ayrışsın */
.suggest-kategori .suggest-text strong { color: var(--green-deep); }

/* Popüler arama kısayolları */
.hero-chips {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 0; font-size: .85rem;
}
.hero-chips-label { color: var(--ink-soft); }
.chip {
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 5px 13px;
  font-size: .84rem; color: var(--ink); font-weight: 500;
}
.chip:hover { background: var(--paper-2); text-decoration: none; border-color: var(--ink-soft); }

/* İllüstrasyon
   mix-blend-mode: multiply -> görselin beyaz zemini krem arka planla
   kusursuz kaynaşır; parlama geçişi bozulmaz, zemini silmeye gerek kalmaz. */
.hero-art { min-width: 0; }
.hero-art img {
  width: 100%; height: auto; max-width: 480px; margin-left: auto;
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------- istatistik şeridi */

.stat-strip { margin: 8px auto 44px; }
.stat-strip dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px 24px; margin: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.stat-strip dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft);
}
.stat-strip dd {
  margin: 3px 0 0; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--green-deep);
}
.stat-strip dd.stat-text { font-size: .95rem; font-weight: 600; line-height: 1.3; padding-top: 5px; }

/* ------------------------------------------------------- sayfa başlıkları */

.page-head { padding: 44px 0 22px; }

/* Form sayfalarının başlığı: form kartıyla arasında fazla boşluk kalmasın */
.form-page-head { padding-bottom: 14px; }
.form-page-head .page-sub { max-width: 54ch; }
.page-eyebrow {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--clay-deep); margin-bottom: 8px;
}
.page-sub { color: var(--ink-soft); max-width: 640px; }

/* ------------------------------------------------------------------ filtre */

.filter-section { margin-bottom: 28px; }
.filter-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end;
}
.field-actions { display: flex; gap: 8px; align-items: center; }

/* ------------------------------------------------------------- form alanları */

.field { display: block; margin-bottom: 16px; }
.field label, .field > label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
.field .req { color: var(--clay-deep); }
.field .optional { color: var(--ink-soft); font-weight: 400; }

.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="tel"], .field input[type="search"], .field input[type="number"],
.field input[type="file"], .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:read-only { background: var(--paper-2); color: var(--ink-soft); }
.field-hint { font-size: .8rem; color: var(--ink-soft); margin: 5px 0 0; }
.field-error { font-size: .83rem; color: var(--clay-deep); font-weight: 600; margin: 5px 0 0; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.code-input {
  font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: .5em; text-align: center;
}

.field-check { margin-top: 4px; }
.check-label { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check-label input { margin-top: 4px; flex: 0 0 auto; }

/* Bal küpü alanı: ekranda görünmez ama tarayıcı "hidden" saymaz,
   böylece formu otomatik dolduran botlar buraya da yazar. */
.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-wrap { max-width: 720px; margin-bottom: 48px; }
.review-form, .stack-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 30px 34px;
}
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.form-preview { width: 140px; border-radius: var(--radius-sm); margin-bottom: 10px; }

/* ---------------- Tavsiye formu: bölümler ---------------- */

/* Her bölüm arasında ince ayırıcı çizgi (fieldset varsayılan kenarlığı kapalı) */
.form-block {
  border: 0; border-top: 1px solid var(--line);
  margin: 0; padding: 24px 0 8px;
}
.form-block:first-of-type { border-top: 0; padding-top: 0; }

.block-title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--ink); padding: 0; margin: 0 0 3px;
}
.block-note { font-size: .86rem; color: var(--ink-soft); margin: 0 0 16px; }
.block-title + .field, .block-title + .field-row { margin-top: 14px; }

/* Etiket görevi gören ama <label> olmayan başlık (radyo grupları için) */
.field-label-static {
  display: block; font-size: .88rem; font-weight: 600; margin-bottom: 9px;
}

/* Krem dolgulu, kenarlıksız alanlar */
.review-form .field input[type="text"],
.review-form .field input[type="tel"],
.review-form .field select,
.review-form .field textarea {
  background: #FBF1E4; border: 1px solid transparent; border-radius: 10px;
  padding: 13px 15px; font-size: .95rem;
}
.review-form .field input:focus,
.review-form .field select:focus,
.review-form .field textarea:focus {
  background: var(--white); border-color: var(--ink); outline-offset: 0;
}
.review-form .field input::placeholder,
.review-form .field textarea::placeholder { color: #B8A891; }
.review-form .field select:disabled { color: #B8A891; cursor: not-allowed; }
.review-form .field input:read-only { background: var(--paper-2); color: var(--ink-soft); }

/* ---------------- Puan kademeleri ---------------- */

/* Beş kademe TEK SATIRDA, eşit genişlikte.
   minmax(0, 1fr) önemli: uzun etiketler ("Mükemmel") sütunu şişirip
   son butonu alt satıra düşürmesin. */
.rating-options {
  display: grid; gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.rating-option { margin: 0; }

/* Radyo düğmesini gizle ama klavye erişimini koru */
.rating-option input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
.rating-option span {
  display: block; text-align: center; cursor: pointer;
  background: #FBF1E4; color: #9C8A72;
  border: 1px solid transparent; border-radius: 10px;
  padding: 13px 6px; font-size: .88rem; font-weight: 600;
  /* Etiket sığmazsa taşmasın, satır kırılmasın */
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rating-option span:hover { background: var(--gold-soft); color: #7a5713; }

/* Seçili kademe */
.rating-option input:checked + span {
  background: var(--green-deep); color: #fff; border-color: var(--green-deep);
}
/* Klavyeyle gezinirken görünür odak */
.rating-option input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

/* --------------------------------------------------------------- kartlar */

.results { margin-bottom: 48px; }
.results-head { margin-bottom: 18px; }
.results-note { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.card-grid { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ---------- İki sütunlu pano (ana sayfa varsayılan görünümü) ---------- */

/**
 * Pano: iki sütun TEK bir grid'i paylaşır.
 *
 * "veriler ne olursa olsun aynı hizada olsun" gereği:
 * her satırın yüksekliği o satırdaki en uzun kart tarafından belirlenir ve
 * yanındaki kart da aynı yüksekliğe uzar (grid item'lar varsayılan olarak
 * stretch olur). Kartın içindeki .card-foot ise margin-top:auto ile en alta
 * yapıştığı için alt kenarlar da hizalı görünür.
 *
 * grid-auto-flow: row dense -> col-b kartları, col-a kartlarının altına
 * eklenmek yerine sağ sütundaki boş satırlara geri doldurulur.
 */
.board {
  display: grid; gap: 26px; grid-template-columns: 1fr 1fr;
  grid-auto-flow: row dense; align-items: stretch;
  margin-bottom: 52px;
}

/* Sarmalayıcılar düzenden çıkar; çocukları doğrudan grid hücresi olur */
.board-column { display: contents; }

.col-a { grid-column: 1; }
.col-b { grid-column: 2; }

.board-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; min-width: 0;
}
.board-head h2 { margin: 0; font-size: 1.22rem; }
.board-note { font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }

.board-more { margin: 0; font-size: .88rem; font-weight: 600; }
.board-more a { color: var(--green-deep); }

/* ------------------------------- tavsiye kartı ------------------------------- */

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}

/* Puan: sağ üst köşede, kartın kenarına binen altın daire */
.card-score {
  position: absolute; top: -14px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gold);
  color: #8a6412; font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(58, 74, 71, .10);
}

.card-head { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; padding-right: 46px; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: .82rem; font-family: var(--font-body);
  letter-spacing: .02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 76px; height: 76px; font-size: 1.4rem; }

.card-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.card-who b { font-size: .97rem; }
.card-time { font-size: .78rem; color: var(--ink-soft); }

/* Yazarın en yüksek rozeti — kartta yalnızca ikon olarak görünür */
.author-badge {
  flex: 0 0 auto; font-size: 1rem; line-height: 1;
  display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--paper-2); border-radius: 50%;
}

/* Kategori satırı: büyük harf, aralıklı, kil rengi */
.card-category {
  font-size: .73rem; font-weight: 600; color: var(--clay-deep);
  text-transform: uppercase; letter-spacing: .07em; line-height: 1.45;
  margin: 0 0 7px;
}
.card-category .dot { color: var(--ink-soft); }

.card-title { margin-bottom: 7px; font-size: 1.05rem; }
.card-image { border-radius: var(--radius-sm); margin: 4px 0 10px; max-height: 220px; object-fit: cover; width: 100%; }
.card-body { font-size: .92rem; color: var(--ink); margin-bottom: 14px; }

.card-body-wrap { margin-bottom: 12px; }
.card-body-wrap summary { cursor: pointer; font-size: .93rem; list-style: none; }
.card-body-wrap summary::-webkit-details-marker { display: none; }
.card-body-wrap[open] summary { display: none; }
.more-hint { color: var(--green-deep); font-weight: 600; white-space: nowrap; }

.card-foot {
  margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-location { font-size: .82rem; color: var(--ink-soft); min-width: 0; }
.card-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.report-link {
  font-size: .82rem; color: var(--ink-soft); opacity: .5;
  padding: 2px 4px; border-radius: 6px; text-decoration: none;
}
.report-link:hover { opacity: 1; background: var(--paper-2); text-decoration: none; }

/* "Faydalı" — altın renkli sade metin butonu */
.helpful-btn {
  font-family: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
  background: none; color: #8a6412; border: 1px solid transparent;
  border-radius: 100px; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
button.helpful-btn:hover { background: var(--gold-soft); }

/* Oy verilmiş hâl: <span> olarak basılır, tıklanamaz */
.helpful-btn.marked {
  background: var(--gold-soft); color: #6d4d09;
  cursor: default; font-weight: 700;
}
.helpful-icon { font-size: .9em; }

/* Sayfa yenilenmeden oy verildiğinde kısa bir vurgulama:
   kullanıcı sayının arttığını fark etsin. */
.helpful-btn.just-voted { animation: helpful-pop .45s ease-out; }

@keyframes helpful-pop {
  0%   { transform: scale(1);    background: var(--gold); }
  40%  { transform: scale(1.12); background: var(--gold); }
  100% { transform: scale(1);    background: var(--gold-soft); }
}

/* Hareketi azaltma tercihine saygı göster */
@media (prefers-reduced-motion: reduce) {
  .helpful-btn.just-voted { animation: none; }
}

/* ------------------------------------------------------------ boş durumlar */

.empty-state {
  background: var(--white); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 44px 24px; text-align: center;
}
.empty-note { color: var(--ink-soft); font-size: .93rem; }
.muted { color: var(--ink-soft); font-size: .82rem; display: block; }

/* ----------------------------------------------------------- sayfalama */

.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px 0; flex-wrap: wrap; }
.page-link {
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: 100px; padding: 8px 16px; font-size: .9rem; font-weight: 600;
}
.page-link:hover { background: var(--paper-2); text-decoration: none; }
.page-status { font-size: .88rem; color: var(--ink-soft); }

/* ---------------------------------------------------------- kategoriler */

.category-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 48px;
}
.category-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column;
}
.category-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.category-card-head h2 { font-size: 1.1rem; margin: 0; }
.category-count { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.sub-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sub-list a { font-size: .9rem; color: var(--ink); }
.sub-list a:hover { color: var(--green-deep); }
.category-empty { font-size: .85rem; color: var(--ink-soft); }
.category-all { margin-top: auto; font-size: .85rem; font-weight: 600; }

/* --------------------------------------------------------- nasıl çalışır */

.steps { margin-bottom: 40px; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step-list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-no {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-soft); color: #7a5713;
  font-family: var(--font-mono); font-weight: 500; margin-bottom: 12px;
}
.step-list h2 { font-size: 1.1rem; }
.step-list p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.info-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 48px;
}
.rule-list { padding-left: 20px; font-size: .93rem; color: var(--ink-soft); }
.rule-list li { margin-bottom: 6px; }
.cta-row { margin: 22px 0 0; }

/* ----------------------------------------------------------------- yasal */

.legal { max-width: 780px; margin-bottom: 56px; }
.legal h2 { font-size: 1.15rem; margin-top: 30px; }
.legal p, .legal li { font-size: .94rem; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }
.legal-notice {
  background: #FEF5E2; border-left: 4px solid var(--gold);
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 24px;
}

/* -------------------------------------------------------------- oturum */

.auth-wrap { display: flex; justify-content: center; padding: 48px 20px 64px; }
.auth-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; width: 100%; max-width: 440px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-sub { font-size: .92rem; color: var(--ink-soft); margin-bottom: 22px; }
.auth-alt { font-size: .88rem; color: var(--ink-soft); margin: 18px 0 0; text-align: center; }
.resend-form { margin-top: 12px; text-align: center; }
.auth-card-center { text-align: center; }

/* Onay/hata sonuç ekranlarındaki büyük ikon */
.result-icon {
  font-size: 2.6rem; line-height: 1; text-align: center; margin: 0 0 12px;
}

/* "E-posta gelmediyse" gibi yardımcı bilgi kutusu */
.info-note {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0;
  font-size: .87rem; color: var(--ink-soft); text-align: left;
}
.info-note p { margin: 0 0 6px; }
.info-note ul { margin: 0; padding-left: 20px; }
.info-note li { margin-bottom: 4px; }

/* -------------------------------------------------------------- profil */

.profile-head-inner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head-inner h1 { margin-bottom: 4px; }
.profile-mini { font-size: .85rem; color: var(--green-deep); font-weight: 600; margin: 6px 0 0; }

.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 26px; }
.tab {
  padding: 10px 14px; font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--green-deep); text-decoration: none; }
.tab.active { color: var(--green-deep); border-bottom-color: var(--green); }
.tab-panel { margin-bottom: 56px; }
.tab-panel h2 { margin-top: 28px; }
.tab-panel h2:first-child { margin-top: 0; }

.my-review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.my-review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.my-review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.my-review-cat { font-size: .82rem; color: var(--green-deep); font-weight: 600; }
.my-review-image { width: 160px; border-radius: var(--radius-sm); margin: 8px 0; }
.my-review p { font-size: .93rem; }
.my-review-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.my-review-actions { display: flex; gap: 8px; align-items: center; }

.status-pill {
  display: inline-block; font-size: .74rem; font-weight: 600;
  border-radius: 100px; padding: 3px 10px; white-space: nowrap;
}
.status-live, .status-approved { background: #DFF3EE; color: var(--green-deep); }
.status-pending, .status-pending_email, .status-open { background: var(--paper-2); color: var(--ink-soft); }
.status-needs_revision { background: var(--gold-soft); color: #7a5713; }
.status-rejected, .status-actioned { background: #FDE3DA; color: var(--clay-deep); }
.status-dismissed { background: var(--paper-2); color: var(--ink-soft); }

.revision-note {
  background: #FEF5E2; border-left: 3px solid var(--gold);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin: 10px 0;
}

.badge-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 8px; }
.badge-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.badge-card.earned { border-color: var(--green); background: #F2FAF8; }
.badge-card.locked { opacity: .82; }
.badge-icon { font-size: 1.9rem; line-height: 1; margin-bottom: 8px; }
.badge-name { font-weight: 600; font-size: .93rem; margin-bottom: 4px; }
.badge-desc { font-size: .78rem; color: var(--ink-soft); }

.progress-track { height: 6px; background: var(--paper-2); border-radius: 100px; margin: 12px 0 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 100px; }
.progress-text { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); }

/* İlerleme çubuğu genişlikleri — satır içi style yerine hazır sınıflar */
.p-0 { width: 0; } .p-5 { width: 5%; } .p-10 { width: 10%; } .p-15 { width: 15%; }
.p-20 { width: 20%; } .p-25 { width: 25%; } .p-30 { width: 30%; } .p-35 { width: 35%; }
.p-40 { width: 40%; } .p-45 { width: 45%; } .p-50 { width: 50%; } .p-55 { width: 55%; }
.p-60 { width: 60%; } .p-65 { width: 65%; } .p-70 { width: 70%; } .p-75 { width: 75%; }
.p-80 { width: 80%; } .p-85 { width: 85%; } .p-90 { width: 90%; } .p-95 { width: 95%; }
.p-100 { width: 100%; }

.liked-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liked-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.liked-item h3 { font-size: .95rem; margin: 0 0 2px; }

.avatar-editor { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.avatar-editor-forms { display: flex; flex-direction: column; gap: 10px; }

.danger-panel { background: #FDECE6; border: 1px solid #F3C6B7; border-radius: var(--radius); padding: 22px; }
.danger-panel .stack-form { background: transparent; border: 0; padding: 16px 0 0; }

/* ---------------------------------------------------------- bildirimler */

.notif-list-wrap { margin-bottom: 56px; }
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.notif-item {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--ink-soft);
  border-radius: var(--radius-sm); padding: 16px 20px;
}
.notif-item.unread { background: #F2FAF8; }
.notif-approved { border-left-color: var(--green); }
.notif-revision { border-left-color: var(--gold); }
.notif-rejected { border-left-color: var(--clay-deep); }
.notif-title { font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.notif-review { font-size: .92rem; margin: 0 0 4px; }
.notif-note { font-size: .88rem; color: var(--ink-soft); margin: 0 0 4px; }
.notif-status { font-size: .85rem; margin: 0 0 4px; }
.notif-time { font-size: .76rem; color: var(--ink-soft); margin: 0; }

/* ----------------------------------------------------------------- alt */

.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0; margin-top: auto; }
.footer-inner { display: grid; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 40px; height: 40px; flex: 0 0 auto; }
.footer-brand p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.footer-brand strong { color: var(--green-deep); font-family: var(--font-display); font-size: 1rem; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { font-size: .86rem; color: var(--ink-soft); }
.footer-copy { font-size: .8rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   Giriş / Üye Ol açılır penceresi (modal)
   ============================================================ */

.auth-dialog {
  border: 0; padding: 0; max-width: 400px; width: calc(100% - 32px);
  border-radius: 16px; background: var(--white); color: var(--ink);
  box-shadow: 0 24px 60px rgba(28, 40, 37, .32);
  padding: 26px 28px 24px;
}
.auth-dialog::backdrop { background: rgba(28, 40, 37, .55); }

/* <dialog> desteklenmeyen tarayıcılarda pencere sayfa akışında görünmesin */
.auth-dialog:not([open]) { display: none; }

.auth-dialog-close-form { margin: 0; text-align: right; height: 0; }
.auth-dialog-close {
  background: none; border: 0; cursor: pointer; color: var(--ink-soft);
  font-size: 1.5rem; line-height: 1; padding: 0 2px; position: relative; top: -8px;
}
.auth-dialog-close:hover { color: var(--ink); }

.auth-dialog-logo { display: block; margin: 0 auto 14px; width: 72px; height: 72px; }

.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.auth-tab {
  flex: 1; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-soft);
  padding: 10px 4px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active { color: var(--ink); border-bottom-color: var(--green); }

.auth-panel[hidden] { display: none; }

/* Modal içindeki alanlar krem dolgulu, kenarlıksız */
.auth-dialog .field { margin-bottom: 14px; }
.auth-dialog .field label { font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.auth-dialog .field input[type="text"],
.auth-dialog .field input[type="email"],
.auth-dialog .field input[type="password"],
.auth-dialog .field input[type="tel"] {
  background: #FBF1E4; border: 1px solid transparent; border-radius: 10px;
  padding: 11px 13px; font-size: .95rem;
}
.auth-dialog .field input:focus { background: var(--white); border-color: var(--green); }
.auth-dialog .field input::placeholder { color: #B8A891; }

.btn-accent { background: var(--green); color: #10241F; border-radius: 10px; padding: 12px 18px; }
.btn-accent:hover { background: #2aa693; }

.auth-dialog-links { font-size: .86rem; color: var(--ink-soft); margin: 12px 0 0; }
.auth-dialog-links a { text-decoration: underline; }

/* Sekme değiştiren metin butonu — bağlantı gibi görünür */
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; color: var(--green-deep);
  text-decoration: underline;
}
.link-button:hover { color: var(--ink); }

.auth-dialog .check-label { font-size: .84rem; }
.auth-dialog .check-label a { text-decoration: underline; }

/* ============================================================
   Çerez bilgilendirme bandı
   ============================================================ */

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #2A6B5E; color: #fff;
  box-shadow: 0 -4px 20px rgba(28, 40, 37, .22);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text {
  margin: 0; flex: 1 1 420px; font-size: .88rem; font-weight: 500; line-height: 1.5;
}
.cookie-icon { margin-right: 4px; }
.cookie-text a { color: #FBDDA0; text-decoration: underline; }
.cookie-text a:hover { color: #fff; }

.cookie-form { margin: 0; flex: 0 0 auto; }
.btn-cookie {
  background: var(--gold); color: #5c3f0c; font-weight: 600;
  padding: 10px 20px; white-space: nowrap;
}
.btn-cookie:hover { background: #f6b13c; }

/* Band, sayfanın en altındaki içeriği kapatmasın */
body:has(.cookie-banner:not([hidden])) .site-footer { padding-bottom: 96px; }

/* ------------------------------------------------------------ mobil */

/* Dar ekran: pano tek sütuna düşer.
   Kartlar yine sütun sırasına göre gelir — önce "en faydalı", sonra "en yeni". */
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .col-a, .col-b { grid-column: 1; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .brand-tagline { display: none; }
  .brand-logo { width: 38px; height: 38px; }
  .auth-buttons .btn { min-width: 0; padding: 8px 13px; font-size: .88rem; }
  .cookie-banner-inner { padding: 12px 16px; gap: 12px; }
  .cookie-text { font-size: .82rem; flex-basis: 100%; }
  .btn-cookie { width: 100%; }
  .auth-dialog { padding: 22px 20px 20px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 60px; padding: 10px 0; }
  .site-nav { order: 3; width: 100%; gap: 14px; }
  .hero { padding: 40px 0 28px; }
  .card-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .review-form, .stack-form { padding: 20px 16px; }
}
