/* assets/css/main.css



/* ============================================================
   main.css — Tam Mobil Uyumlu
   Breakpoints: 480px / 640px / 768px / 1024px / 1280px
   ============================================================ */



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tüm linklerin varsayılan alt çizgisini kaldır (accent renginde mor çizgi sorununu önler) */
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* Yatay scroll tamamen engelle */
html { overflow-x: clip; }
body { overflow-x: clip !important; }

:root {
  --accent:      #6366f1;
  --accent-dark: #4f46e5;
  --accent-light:#a5b4fc;
  --green:       #10b981;
  --red:         #ef4444;
  --amber:       #f59e0b;
  --pink:        #ec4899;
  --bg:          #0f0f14;
  --surface:     #17171f;
  --surface2:    #1e1e28;
  --border:      rgba(255,255,255,0.07);
  --text:        #e2e2f0;
  --text-muted:  #7878a0;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'Fira Code', monospace;
  --nav-h:       56px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

/* ─── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 99px; }

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  width: 100%;
  overflow: visible !important;
  background: rgba(15,15,20,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 46px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
  overflow: visible;
}
.nav-logo {
  font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; flex-shrink: 0;
}
/* Yüklenen logo görseli — navbar yüksekliğine göre oturur, küçük kalmaz.
   Yükseklik admin > Ayarlar > Logo Yüksekliği'nden kontrol edilir (--logo-h inline gelir). */
:root { --logo-h: 40px; }
.nav-logo-img {
  height: var(--logo-h) !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
}
.logo-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  display: inline-block; flex-shrink: 0;
}

/* Search — desktop */
.nav-search {
  flex: 1; max-width: 400px;
  position: relative;
}
.nav-search-inner {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px; overflow: hidden;
}
.nav-search input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 8px 14px; color: var(--text); font-size: 13px;
  min-width: 0;
}
.nav-search button {
  background: transparent; border: none;
  color: var(--text-muted); padding: 8px 12px;
  cursor: pointer; transition: color .2s; flex-shrink: 0;
}
.nav-search button:hover { color: var(--accent); }

.nav-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  min-width: 120px;
  justify-content: flex-end;
}

/* Bildirim / ikon buton */
.nav-icon-btn {
  position: relative;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 17px; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
  text-decoration: none; flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--surface2); color: var(--text); }
.nav-icon-btn .badge {
  position: absolute; top: 3px; right: 3px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 99px; padding: 1px 4px;
  min-width: 15px; text-align: center;
  line-height: 1.4;
}

/* Avatar dropdown */
.nav-avatar-wrap { position: relative; flex-shrink: 0; overflow: visible !important; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s; display: block;
}
.nav-avatar:hover { border-color: var(--accent); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 210px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.8);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 99999;
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.dropdown-header { padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.dropdown-header strong { display: block; font-size: 14px; }
.dropdown-header small { color: var(--text-muted); font-size: 12px; }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 13px;
  color: var(--text); text-decoration: none;
  transition: background .15s;
}
.nav-dropdown a:hover { background: var(--surface2); }
.nav-dropdown a i { width: 14px; color: var(--text-muted); font-size: 13px; }
.dropdown-divider { height: 1px; background: var(--border); }
.text-danger { color: var(--red) !important; }
.text-accent  { color: var(--accent) !important; }

/* Hamburger */
.nav-menu-toggle {
  display: none;
  background: transparent; border: none;
  color: var(--text); font-size: 19px;
  cursor: pointer; padding: 6px;
  flex-shrink: 0;
}

/* Mobile search drawer */
.mobile-search-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 890;
}
.mobile-search-drawer.open { display: block; }
.mobile-search-drawer .msearch-inner {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px; overflow: hidden;
}
.mobile-search-drawer input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 10px 16px; color: var(--text); font-size: 14px;
}
.mobile-search-drawer button {
  background: transparent; border: none;
  color: var(--text-muted); padding: 10px 14px; cursor: pointer;
}

/* ─── BOTTOM NAV (mobil) ─────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(15,15,20,0.97);
  border-top: 1px solid var(--border);
  z-index: 850;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  width: 100%;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  flex: 1;
  color: var(--text-muted); text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 10px;
  padding: 6px 0;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.bn-item i { font-size: 20px; }
.bn-item.active { color: var(--accent); }
.bn-item.active i { filter: drop-shadow(0 0 5px var(--accent)); }
.bn-item.active span { font-weight: 600; }
.bn-item:hover { color: var(--accent); }
.bn-item.bn-pressed { color: var(--accent); opacity: 0.7; }
.bottom-nav a, .bottom-nav button {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-muted); text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 10px;
  padding: 6px 0; flex: 1;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a i, .bottom-nav button i { font-size: 20px; }
.bottom-nav a.active, .bottom-nav a:hover,
.bottom-nav button:hover { color: var(--accent); }
.bottom-nav a.active i { filter: drop-shadow(0 0 5px var(--accent)); }
.bottom-nav .bn-badge {
  position: relative; display: inline-block;
}
.bn-write {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 14px !important;
}
.bn-write:hover { background: var(--accent-dark) !important; color: #fff !important; }
.bn-write i { font-size: 20px !important; }

.bottom-nav .bn-badge-dot {
  position: absolute; top: -2px; right: -6px;
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: all .2s; white-space: nowrap;
  font-family: var(--font);
}
.btn-sm  { padding: 6px 12px; font-size: 12px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface2); }
.btn-danger  { background: var(--red);   color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-full { width: 100%; justify-content: center; }

/* Tüm butonlarda tıklama parlaması/halkası tamamen kapalı */
.btn:focus,
.btn:active,
.btn:focus-visible,
button:focus,
button:active,
button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ─── FLASH ──────────────────────────────────────────── */
.flash-bar {
  position: fixed; top: calc(var(--nav-h) + 8px);
  left: 50%; transform: translateX(-50%);
  z-index: 1000;
  padding: 11px 18px;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow);
  width: calc(100% - 32px); max-width: 460px;
}
.flash-success { background: #064e3b; color: #6ee7b7; border: 1px solid #10b981; }
.flash-error   { background: #450a0a; color: #fca5a5; border: 1px solid #ef4444; }
.flash-info    { background: #1e1b4b; color: #a5b4fc; border: 1px solid #6366f1; }
.flash-bar button { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 16px; flex-shrink: 0; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px; padding-top: calc(var(--nav-h) + 20px); flex: 1; width: 100%; min-width: 0; box-sizing: border-box; }
.two-col   { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.three-col { display: grid; grid-template-columns: 220px 1fr 260px; gap: 20px; align-items: start; }

/* ─── CARDS ──────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h2, .card-header h3 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.card-body { padding: 18px; }

/* ─── TOPIC LIST ─────────────────────────────────────── */
.topic-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .15s; }
.topic-item:last-child { border-bottom: none; }
.topic-item:hover { background: var(--surface2); }
.topic-item-info { flex: 1; min-width: 0; }
.topic-item-title { font-size: 14px; font-weight: 500; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.topic-item-meta  { font-size: 11px; color: var(--text-muted); }
.topic-item-count { font-size: 13px; color: var(--accent); font-weight: 600; min-width: 36px; text-align: right; flex-shrink: 0; }
.cat-pill { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 600; text-transform: uppercase; }

/* ─── ENTRY CARD ─────────────────────────────────────── */
.entry-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px;
  overflow: hidden; transition: border-color .2s;
  max-width: 100%;
}
.entry-card:hover { border-color: rgba(99,102,241,.3); }
.entry-card.featured { border-color: var(--amber); }
.entry-header { padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.entry-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.entry-author-info { flex: 1; min-width: 0; }
.entry-author-info a { font-weight: 600; font-size: 13px; color: var(--text); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-author-info a:hover { color: var(--accent); }
.entry-author-info small { display: block; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-number { font-family: var(--mono); font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.entry-body { padding: 14px 16px; }
.entry-text { font-size: 14px; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.entry-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 12px; cursor: zoom-in; }

/* ─── ÇOKLU GÖRSEL — INSTAGRAM TARZI CAROUSEL ─── */
.entry-gallery {
  position: relative;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
/* Kaydırılabilir şerit */
.entry-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.entry-gallery-track::-webkit-scrollbar { display: none; }
.entry-gallery-track .entry-image {
  margin-top: 0;
  flex: 0 0 100%;
  width: 100%;
  height: 400px;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 0;
}
/* Tek görsel: sabit yükseklik yerine doğal */
.entry-gallery.single .entry-image { height: auto; max-height: 360px; }
/* Sayaç (1/3) */
.gallery-counter {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  pointer-events: none; z-index: 2;
}
/* Noktalar */
.gallery-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  pointer-events: none; z-index: 2;
}
.gallery-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s, transform .2s;
}
.gallery-dots span.active { background: #fff; transform: scale(1.3); }
/* Sağ/sol ok butonları (masaüstü) */
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; font-size: 14px;
  opacity: 0; transition: opacity .2s;
}
.entry-gallery:hover .gallery-arrow { opacity: 1; }
.gallery-arrow.prev { left: 8px; }
.gallery-arrow.next { right: 8px; }
.gallery-arrow:disabled { opacity: 0 !important; pointer-events: none; }
/* Tek görselde sayaç/nokta/ok gizli */
.entry-gallery.single .gallery-counter,
.entry-gallery.single .gallery-dots,
.entry-gallery.single .gallery-arrow { display: none; }
@media (max-width: 768px) {
  .gallery-arrow { display: none; } /* mobilde parmakla kaydır */
}

/* ─── IMAGE LIGHTBOX (görsele tıklayınca tam boyut) ─── */
.img-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  cursor: zoom-out;
  opacity: 0; transition: opacity .2s;
}
.img-lightbox.open { display: flex; opacity: 1; }
.img-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
}
.img-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.img-lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Lightbox galeri okları + sayaç */
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: none;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.lb-arrow:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 99px;
}
/* Lightbox alt noktalar */
.lb-dots {
  position: absolute; bottom: 22px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px;
  pointer-events: none; z-index: 2;
}
.lb-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: background .2s, transform .2s;
}
.lb-dots span.active { background: #fff; transform: scale(1.3); }
.img-lightbox img { will-change: transform, opacity; touch-action: none; }
@media (max-width: 768px) {
  /* Mobilde oklar gizli — parmakla kaydır */
  .lb-arrow { display: none !important; }
  .lb-counter { top: 14px; }
  .lb-dots { bottom: 18px; }
}
.entry-video { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm); margin-top: 12px; border: none; }
.entry-footer { padding: 10px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.vote-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 12px; cursor: pointer;
  transition: all .2s; font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.vote-btn:active { transform: scale(.95); }
.vote-btn.active-like    { color: var(--green); border-color: var(--green); background: rgba(16,185,129,.1); }
.vote-btn.active-dislike { color: var(--red);   border-color: var(--red);   background: rgba(239,68,68,.1); }
.entry-footer-right { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.comment-toggle-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 12px; cursor: pointer; transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.comment-toggle-btn:hover, .comment-toggle-btn:active { color: var(--accent); border-color: var(--accent); background: rgba(99,102,241,.1); }
.entry-actions { display: flex; gap: 2px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--surface2); color: var(--text); }

/* ─── COMMENTS ───────────────────────────────────────── */
.comments-section { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.comments-section.open { max-height: 2000px; }
.comments-inner { background: var(--surface2); border-top: 1px solid var(--border); padding: 14px 16px; }
.comment-list { max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface2) transparent; padding-right: 4px; }
.comment-list::-webkit-scrollbar { width: 3px; }
.comment-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.comment-item { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; flex: 1; min-width: 0; }
.comment-bubble strong { font-size: 12px; color: var(--accent); }
.comment-bubble p { font-size: 13px; margin-top: 3px; word-break: break-word; }
.comment-form { display: flex; gap: 7px; margin-top: 10px; align-items: center; }
.comment-form input {
  flex: 1; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; color: var(--text);
  font-size: 13px; outline: none;
  font-family: var(--font); min-width: 0;
  -webkit-appearance: none;
}
.comment-form input:focus { border-color: var(--accent); }
.comment-form .comment-avatar { align-self: center; }
.comment-form .comment-send-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px;
  height: 28px;
  align-self: center;
}

/* ─── FORMS ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.form-control {
  width: 100%; background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; color: var(--text);
  font-size: 16px; /* 16px - iOS zoom önler */
  outline: none; font-family: var(--font);
  transition: border-color .2s;
  -webkit-appearance: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
textarea.form-control { resize: vertical; min-height: 100px; font-size: 15px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ─── AUTH ───────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.15) 0%, transparent 70%);
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 5px; }
.auth-sub   { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 18px; }
.auth-switch a { color: var(--accent); font-weight: 500; text-decoration: none; }

/* ─── PROFILE ────────────────────────────────────────── */
.profile-banner { height: 140px; background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%); border-radius: var(--radius) var(--radius) 0 0; }
.profile-info { padding: 0 20px 20px; background: var(--surface); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.profile-avatar-wrap { position: relative; margin-top: -44px; margin-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; }
.profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); }
.profile-name   { font-size: 18px; font-weight: 700; }
.profile-handle { color: var(--text-muted); font-size: 13px; }
.profile-bio    { font-size: 14px; color: var(--text-muted); margin: 8px 0; }
.profile-stats  { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.profile-stat   { text-align: center; }
.profile-stat strong { display: block; font-size: 17px; font-weight: 700; }
.profile-stat span   { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }

/* ─── HOME SIDEBAR ──────────────────────────────────── */
.home-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  align-self: start;
}

/* ─── WIDGETS ────────────────────────────────────────── */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.widget-title { padding: 12px 14px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.widget-list a { display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-size: 13px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); transition: background .15s; }
.widget-list a:last-child { border-bottom: none; }
.widget-list a:hover { background: var(--surface2); color: var(--accent); }
.widget-list .rank  { font-size: 11px; color: var(--text-muted); min-width: 18px; }
.widget-list .count { margin-left: auto; font-size: 11px; color: var(--accent); font-weight: 600; flex-shrink: 0; }

/* ─── ADMIN ──────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .sidebar-logo { padding: 0 18px 20px; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 18px; font-size: 13px; color: var(--text-muted); text-decoration: none; transition: all .15s; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { color: var(--accent); background: rgba(99,102,241,.08); border-left-color: var(--accent); }
.admin-nav .nav-section { padding: 14px 18px 5px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.admin-content { padding: 24px 20px; min-width: 0; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 20px; font-weight: 700; }
.admin-header p  { color: var(--text-muted); font-size: 13px; margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .stat-icon  { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 12px; }
.stat-card .stat-num   { font-size: 26px; font-weight: 700; }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-up   { color: var(--green); }
.stat-down { color: var(--red); }

/* ─── TABLE ──────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 9px 12px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--surface2); white-space: nowrap; }
.data-table td { padding: 11px 12px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: var(--surface2); }
.data-table tr:last-child td { border-bottom: none; }

/* ─── BADGES ─────────────────────────────────────────── */
.badge-role { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.badge-admin     { background: rgba(239,68,68,.15);  color: var(--red); }
.badge-moderator { background: rgba(245,158,11,.15); color: var(--amber); }
.badge-user      { background: rgba(99,102,241,.15); color: var(--accent); }
.badge-active    { background: rgba(16,185,129,.15); color: var(--green); }
.badge-banned    { background: rgba(239,68,68,.15);  color: var(--red); }
.badge-pending   { background: rgba(245,158,11,.15); color: var(--amber); }

/* ─── PAGINATION ─────────────────────────────────────── */
.pagination { display: flex; gap: 5px; list-style: none; flex-wrap: wrap; justify-content: center; margin-top: 20px; padding: 0 4px; }
.pagination li a,
.pagination li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 13px;
  text-decoration: none; transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.pagination li.active a { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination li:not(.active):not(.disabled) a:hover { border-color: var(--accent); color: var(--accent); }
.pagination li.disabled a,
.pagination li.disabled span { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ─── UPLOAD ZONE ────────────────────────────────────── */
.upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 24px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: rgba(99,102,241,.05); }
.upload-zone i { font-size: 28px; color: var(--text-muted); margin-bottom: 8px; display: block; }
.upload-zone p { font-size: 13px; color: var(--text-muted); }
.upload-preview { margin-top: 10px; position: relative; display: inline-block; max-width: 100%; }
.upload-preview img { max-width: 100%; max-height: 200px; border-radius: var(--radius-sm); }
.upload-preview .remove-img,
.remove-img { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 10px; color: #fff; border: none; }

/* ─── SKELETON ───────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── OVERLAY ────────────────────────────────────────── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 800; }
.overlay.active { display: block; }

/* ─── MODAL ──────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; width: 100%; max-width: 440px; box-shadow: 0 8px 40px rgba(0,0,0,.6); transform: translateY(-12px); transition: transform .3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.modal-header h2 { font-size: 17px; font-weight: 700; flex: 1; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.modal-close:hover { background: var(--surface2); color: var(--text); }
.login-error { background: rgba(239,68,68,.1); border: 1px solid var(--red); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: var(--red); }

/* ─── FOOTER ─────────────────────────────────────────── */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 24px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.footer-left p { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ─── SEARCH SUGGEST ─────────────────────────────────── */
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 999; display: none; overflow: hidden; max-height: 420px; overflow-y: auto; }
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); text-decoration: none; font-size: 13px; border-bottom: 1px solid var(--border); transition: background .15s; }
.search-suggest a:last-child { border-bottom: none; }
.search-suggest a:hover { background: var(--surface2); color: var(--accent); }
.search-suggest a i { color: var(--text-muted); font-size: 11px; width: 14px; flex-shrink: 0; }
.search-suggest a span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest a small { color: var(--accent); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.search-suggest .suggest-group { padding: 6px 14px; font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: var(--surface2); border-bottom: 1px solid var(--border); }
.search-suggest .trend-header { padding: 8px 14px; font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.search-suggest .trend-num { font-size: 12px; font-weight: 800; width: 14px; flex-shrink: 0; }
.search-suggest .trend-num.c1 { color: #ef4444; }
.search-suggest .trend-num.c2 { color: #f97316; }
.search-suggest .trend-num.c3 { color: #f97316; }
.search-suggest .trend-num.c4 { color: #6366f1; }
.search-suggest .trend-num.c5 { color: #6366f1; }
.search-suggest .trend-num.c6 { color: var(--text-muted); }
.search-suggest .trend-num.c7 { color: var(--text-muted); }

/* ─── TOPIC PAGE ─────────────────────────────────────── */
.topic-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 16px; }
.topic-hero h1 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.topic-hero-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }

/* ─── NOTIFICATIONS ──────────────────────────────────── */
.notif-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .15s; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: rgba(99,102,241,.05); }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.notif-icon.like    { background: rgba(16,185,129,.2); color: var(--green); }
.notif-icon.comment { background: rgba(99,102,241,.2); color: var(--accent); }
.notif-icon.follow  { background: rgba(236,72,153,.2); color: var(--pink); }
.notif-body { flex: 1; min-width: 0; }
.notif-body p     { font-size: 13px; }
.notif-body small { font-size: 11px; color: var(--text-muted); }

/* ─── MISC ───────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 13px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state i { font-size: 40px; margin-bottom: 14px; display: block; opacity: .3; }
.empty-state p { font-size: 14px; }

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake   { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ─── GOOGLE BUTTON ──────────────────────────────────── */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px;
  background: #fff; color: #3c4043;
  border: 1px solid #dadce0; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .2s;
  cursor: pointer; font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.google-btn:hover { background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* ============================================================
   RESPONSIVE — Tablet: ≤1024px
   ============================================================ */
@media (max-width: 1024px) {
  .two-col   { grid-template-columns: 1fr; }  .three-col { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 200px 1fr; }
}

/* ============================================================
   RESPONSIVE — Mobile: ≤768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 52px; }

  /* Yorum altı butonları (Yanıtla/Düzenle/Sil) mobilde sıkı dursun */
  .comment-action-btn {
    font-size: 11px;
    padding: 2px 4px;
    gap: 3px;
  }
  .comment-action-btn i { font-size: 11px; }
  .comment-bubble > div[style*="flex-wrap"] { gap: 2px 6px !important; }

  /* Yatay taşma engeli - dropdown hariç */
  .entry-card, .entry-body, .entry-image, .entry-video { max-width: 100%; }
  img:not(.nav-avatar):not(.entry-avatar):not(.comment-avatar):not(.profile-avatar):not(.nav-logo-img) { max-width: 100%; }
  video, iframe { max-width: 100%; }
  pre, code { overflow-x: auto; max-width: 100%; }

  /* Navbar */
  .nav-search  { display: none !important; }
  .nav-menu-toggle { display: flex !important; }
  .nav-inner   { gap: 8px; padding: 0 12px; display: flex; align-items: center; width: 100%; }
  .nav-logo    { font-size: 17px; flex-shrink: 0; margin-right: auto; }
  .nav-logo-img { background: transparent !important; }

  /* Sağ aksiyonlar: logodan sonra sağa yaslı, taşma yok */
  .nav-actions {
    margin-left: 0 !important;
    min-width: 0 !important;
    flex-shrink: 1;
    gap: 4px;
    overflow: visible;
  }
  .nav-actions .btn-primary span,
  .nav-actions .btn-sm span { display: none; }
  .nav-actions .btn-sm { padding: 7px 9px; }
  .nav-icon-btn { width: 34px; height: 34px; flex-shrink: 0; }
  .nav-avatar-wrap { flex-shrink: 0; }
  .nav-avatar { width: 32px; height: 32px; }
  /* Dropdown navbar'dan taşmasın, ekrana sığsın */
  .nav-dropdown { right: 0; left: auto; }

  /* Bottom nav göster */
  .bottom-nav { display: flex; }
  /* İçeriğin altında yer kap */
  .page-wrap  { padding: 14px 12px 70px; padding-top: calc(var(--nav-h) + 14px); }
  .site-footer { margin-bottom: 56px; }

  /* Kartlar */
  .entry-header { padding: 10px 12px; }
  .entry-body   { padding: 12px 12px; }
  .entry-footer { padding: 8px 12px; gap: 3px; }
  .entry-text   { font-size: 14px; }

  /* 2 sütunlu form tek sütun */
  .form-row { grid-template-columns: 1fr; }

  /* Auth card */
  .auth-card { padding: 22px 16px; }
  .auth-title { font-size: 19px; }

  /* Admin — sidebar gizle, drawer ile aç */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    display: none;
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 260px; z-index: 1050;
    height: 100vh;
    box-shadow: 4px 0 20px rgba(0,0,0,.5);
  }
  .admin-sidebar.mobile-open { display: block; }
  .admin-content { padding: 16px 12px 70px; }
  .admin-header h1 { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card .stat-num { font-size: 22px; }

  /* Tablo — yatay scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Flash */
  .flash-bar { width: calc(100% - 24px); font-size: 12px; padding: 10px 14px; }

  /* Modal — mobilde de ortada */
  .modal-overlay { align-items: center; padding: 16px; }
  .modal-box { border-radius: var(--radius); max-height: 92vh; }

  /* Profil */
  .profile-banner  { height: 110px; }
  .profile-avatar  { width: 76px; height: 76px; }
  .profile-name    { font-size: 17px; }
  .profile-stats   { gap: 16px; }
  .profile-avatar-wrap { flex-wrap: wrap; gap: 6px; }
  .profile-sidebar { display: none; }

  /* Topic hero */
  .topic-hero  { padding: 14px 12px; }
  .topic-hero h1 { font-size: 16px; }

  /* Pagination */
  .pagination li a,
  .pagination li span { min-width: 34px; height: 34px; font-size: 12px; }

  /* Card body */
  .card-body { padding: 14px 12px; }

  /* Widget */
  .widget-list a { padding: 10px 12px; font-size: 12px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Entry image — mobilde her zaman 16:9 (1280x720) oranında, taşan kırpılır */
  .entry-image { width: 100%; height: auto; max-height: none; aspect-ratio: 16 / 9; object-fit: cover; }
  /* Carousel görselleri de mobilde 16:9 (masaüstü sabit yüksekliği ezme) */
  .entry-gallery-track .entry-image { height: auto; aspect-ratio: 16 / 9; }
  .entry-gallery.single .entry-image { aspect-ratio: 16 / 9; max-height: none; }
}

/* ============================================================
   RESPONSIVE — Small Mobile: ≤480px
   ============================================================ */
@media (max-width: 480px) {

  .entry-avatar { width: 30px; height: 30px; }
  .entry-author-info a { font-size: 12px; }

  /* Yorum altı butonları çok dar ekranda iyice sıkı */
  .comment-action-btn { font-size: 10px; padding: 2px 3px; gap: 2px; }
  .comment-action-btn i { font-size: 10px; }
  .comment-bubble > div[style*="flex-wrap"] { gap: 1px 5px !important; }
  .comment-bubble small { font-size: 10px; }

  .vote-btn { padding: 4px 8px; font-size: 11px; }
  .comment-toggle-btn { padding: 4px 8px; font-size: 11px; }

  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .stat-card .stat-num { font-size: 20px; }

  .auth-card { padding: 20px 14px; }

  .pagination { gap: 3px; }
  .pagination li a,
  .pagination li span { min-width: 32px; height: 32px; font-size: 11px; }
}

/* ─── REKLAM KUTUSU ──────────────────────────────────── */
.ad-box {
  background: var(--surface);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color .2s;
}
.ad-box:hover { border-color: rgba(99,102,241,.4); }

/* Üst bar */
.ad-topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ad-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted);
  background: var(--surface2);
  padding: 2px 7px; border-radius: 99px;
}
.ad-close-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; transition: all .2s;
  flex-shrink: 0;
}
.ad-close-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Banner boyutları */
.ad-leaderboard .ad-banner-wrap { width:100%; height:90px; max-width:728px; margin:0 auto; }
.ad-mobile .ad-banner-wrap      { width:100%; height:50px; max-width:320px; margin:0 auto; }
.ad-banner-wrap img { width:100%; height:100%; object-fit:cover; display:block; }

/* Video */
.ad-box iframe { width:100%; border:none; border-radius:var(--radius-sm); }
.ad-adsense { min-height:90px; display:flex; align-items:center; justify-content:center; }
.ad-video-wrap video { width:100%; border-radius:var(--radius-sm); display:block; }
.ad-video-thumb { border-radius:var(--radius-sm); overflow:hidden; cursor:pointer; position:relative; }
.ad-play-btn {
  position: absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  background: rgba(255,0,0,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  transition: transform .2s, background .2s;
  pointer-events: none;
}
.ad-video-thumb:hover .ad-play-btn {
  background: rgba(255,0,0,1);
  transform: translate(-50%,-50%) scale(1.1);
}
/* ─── YORUM AKSİYON BUTONLARI ───────────────────────── */
.comment-action-btn {
  background: none; border: none;
  color: var(--text-muted); font-size: 11px;
  cursor: pointer; padding: 2px 6px;
  border-radius: 4px; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 4px;
  transition: all .2s;
}
.comment-action-btn:hover { background: var(--surface); color: var(--accent); }
.comment-action-btn.liked { color: var(--green); }
/* ─── PAYLAŞ MENÜSÜ ─────────────────────────────────── */
.share-menu {
  position: absolute;
  z-index: 3000;
  width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  overflow: hidden;
  padding: 4px;
  animation: shareIn .15s ease;
}
@keyframes shareIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.share-menu a,
.share-menu .share-copy {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px; font-family: var(--font);
  color: var(--text); text-decoration: none;
  background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background .15s;
  text-align: left;
}
.share-menu a:hover,
.share-menu .share-copy:hover { background: var(--surface2); }
.share-menu a i,
.share-menu .share-copy i { width: 18px; text-align: center; font-size: 15px; }

/* ─── KATEGORİ TAKİP BUTONU DURUMU ──────────────────── */
/* Takip Et: ghost (şeffaf). Takipte: dolu mor (accent) */
.cat-follow-btn.is-following {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.cat-follow-btn.is-following:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}

/* ─── KATEGORİ TAKİP BUTONU: masaüstü tam ad, mobil kısa ad ─── */
.catfollow-name-short { display: none; }
@media (max-width: 640px) {
  .catfollow-name-full  { display: none; }
  .catfollow-name-short { display: inline; }
}
/* ════════════════════════════════════════════
   KENDİNSAAT — İLAN PLATFORMU EK STİLLERİ
   (kelamlık koyu temasıyla uyumlu)
   ════════════════════════════════════════════ */

/* İlan ver butonu (entry-yaz yerine) */
.btn-post-listing{display:inline-flex;align-items:center;gap:6px}

/* Üst kategori şeridi (navbar altında sabit) */
.cat-strip{background:var(--surface);border-bottom:1px solid var(--border);position:fixed;top:var(--nav-h);left:0;right:0;z-index:899}
.cat-strip-inner{max-width:1280px;margin:0 auto;padding:0 16px;display:flex;gap:2px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-behavior:smooth}
.cat-strip-inner::-webkit-scrollbar{height:0}
/* cat-strip ~48px; navbar + cat-strip kadar üstten boşluk bırak */
body .page-wrap{padding-top:calc(var(--nav-h) + 48px + 16px)}
.flash-bar{margin-top:calc(var(--nav-h) + 48px)}
.cat-strip-inner::-webkit-scrollbar{height:0}
.cat-strip-inner a{display:inline-flex;align-items:center;gap:7px;padding:12px 14px;font-size:13px;font-weight:600;color:var(--text-muted);border-bottom:2px solid transparent;white-space:nowrap;transition:.15s;flex-shrink:0}
.cat-strip-inner a:hover,.cat-strip-inner a.active{color:var(--accent);border-bottom-color:var(--accent)}

/* Görünüm toggle + sıralama bar */
.listing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:10px 14px;margin-bottom:16px;flex-wrap:wrap}
.listing-toolbar .lt-left{font-size:13px;color:var(--text-muted)}
.listing-toolbar .lt-right{display:flex;align-items:center;gap:8px}
.view-toggle{display:flex;background:var(--surface2);border-radius:var(--radius-sm);padding:3px}
.view-toggle button{padding:6px 10px;border-radius:6px;color:var(--text-muted);font-size:14px}
.view-toggle button.active{background:var(--accent);color:#fff}
.sort-select{background:var(--surface2);border:1px solid var(--border);color:var(--text);border-radius:var(--radius-sm);padding:8px 12px;font-size:13px;font-family:inherit}

/* ── İLAN GRID GÖRÜNÜMÜ ── */
.listing-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.listing-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color .2s,transform .15s;display:flex;flex-direction:column;text-decoration:none;color:inherit}
.listing-card *{text-decoration:none}
.listing-card:hover{border-color:rgba(99,102,241,.35);transform:translateY(-2px)}
.listing-card-img{position:relative;aspect-ratio:4/3;background:var(--surface2);overflow:hidden}
.listing-card-img img{width:100%;height:100%;object-fit:cover}
.badge-featured{position:absolute;top:8px;left:8px;background:var(--amber);color:#1a1a1a;font-size:11px;font-weight:700;padding:3px 9px;border-radius:99px}
.listing-fav{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;transition:.15s}
.listing-fav:hover{background:rgba(0,0,0,.7)}
.listing-fav.active{color:var(--red)}
.listing-card-body{padding:11px 13px;display:flex;flex-direction:column;gap:5px;flex:1}
.listing-card-price{font-size:17px;font-weight:800;color:var(--accent)}
.listing-card-title{font-size:13px;font-weight:500;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.listing-card-attrs{display:flex;flex-wrap:wrap;gap:5px;margin-top:1px}
.listing-card-attrs span{font-size:11px;color:var(--text-muted);background:var(--surface2);padding:3px 7px;border-radius:6px}
.listing-card-loc{font-size:11px;color:var(--text-muted);margin-top:auto;display:flex;align-items:center;gap:5px}

/* ── İLAN LİSTE GÖRÜNÜMÜ ── */
.listing-list{display:flex;flex-direction:column;gap:10px}
/* Liste görünümünde grid kartlarını yatay düzene sok, resmi küçült */
.listing-list .listing-card{flex-direction:row;align-items:stretch}
.listing-list .listing-card-img{width:280px;flex-shrink:0;aspect-ratio:4/3}
.listing-list .listing-card-body{flex:1;justify-content:center;padding:16px 18px}
.listing-list .listing-card-title{-webkit-line-clamp:2;font-size:16px}
.listing-list .listing-card-price{font-size:20px}
@media (max-width:600px){
  .listing-list .listing-card-img{width:140px}
  .listing-list .listing-card-body{padding:12px}
  .listing-list .listing-card-price{font-size:16px}
}
.listing-row{display:flex;gap:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:border-color .2s}
.listing-row:hover{border-color:rgba(99,102,241,.35)}
.listing-row-img{position:relative;width:180px;flex-shrink:0;aspect-ratio:4/3;background:var(--surface2)}
.listing-row-img img{width:100%;height:100%;object-fit:cover}
.listing-row-body{flex:1;min-width:0;padding:12px 14px 12px 0;display:flex;flex-direction:column;gap:6px}
.listing-row-title{font-size:15px;font-weight:600;color:var(--text);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.listing-row-price{font-size:20px;font-weight:800;color:var(--accent)}
.listing-row-attrs{display:flex;flex-wrap:wrap;gap:6px}
.listing-row-attrs span{font-size:12px;color:var(--text-muted);background:var(--surface2);padding:3px 9px;border-radius:6px}
.listing-row-loc{font-size:12px;color:var(--text-muted);margin-top:auto;display:flex;align-items:center;gap:5px}

@media (max-width:600px){
  .listing-row-img{width:120px}
  .listing-row-price{font-size:16px}
  .listing-grid{grid-template-columns:repeat(2,1fr);gap:10px}
}

/* Kategori kartları (ana sayfa sağ panel veya grid) */
.cat-grid{display:grid;grid-template-columns:1fr;gap:10px}
.home-cat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px}
.home-cat-card .hc-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.home-cat-card .hc-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px}
.home-cat-card .hc-name{font-size:15px;font-weight:700;color:var(--text)}
.home-cat-card .hc-subs{display:flex;flex-wrap:wrap;gap:6px}
.home-cat-card .hc-subs a{font-size:12px;color:var(--text-muted);background:var(--surface2);padding:4px 10px;border-radius:99px;transition:.12s}
.home-cat-card .hc-subs a:hover{background:var(--accent);color:#fff}

/* Ana sayfa sağ panel */
.sidebar{min-width:0}
@media (max-width:900px){
  .two-col{grid-template-columns:1fr}
  .sidebar{display:none}
}

/* ── REKLAM KUTUSU ── */
.ad-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;margin-bottom:16px}
.ad-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.ad-label{font-size:10px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;display:inline-flex;align-items:center;gap:5px;opacity:.7}
.ad-cta{font-size:11px;font-weight:600;color:var(--accent);display:inline-flex;align-items:center;gap:4px;opacity:.85}
.ad-cta:hover{opacity:1}
.ad-embed{text-align:center;overflow:hidden}
.ad-video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:var(--radius-sm)}
/* ============================================================
   MOBİL ALT MENÜ (bottom navigation) — sadece mobilde görünür
   ============================================================ */
.bottom-nav { display: none; }

@media (max-width: 860px) {
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 16px rgba(0,0,0,.18);
  }
  .bn-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    font-size: 10px; font-weight: 600;
    color: var(--text-muted); text-decoration: none;
    padding: 4px 2px; min-width: 0;
    transition: color .15s;
  }
  .bn-item i { font-size: 18px; }
  .bn-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .bn-item.active { color: var(--accent); }
  .bn-item:active { transform: scale(.94); }

  /* Ortadaki "İlan Ver" vurgulu yuvarlak buton */
  .bn-cta { position: relative; }
  .bn-cta-circle {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    margin-top: -22px; margin-bottom: 2px;
    box-shadow: 0 4px 14px rgba(99,102,241,.5);
    border: 3px solid var(--surface);
  }
  .bn-cta span:not(.bn-cta-circle) { color: var(--accent); }

  /* İçeriğin alt menünün altında kalmaması için boşluk */
  body { padding-bottom: 68px; }
  /* Footer'ın alt menüyle çakışmaması için */
  .site-footer { margin-bottom: 60px; }
}
/* ============================================================
   MOBİL DÜZELTMELER (home sekmeleri, sıralama bar, footer)
   ============================================================ */
@media (max-width: 768px) {
  /* cat-strip navbar'ın hemen altında */
  .cat-strip { top: var(--nav-h) !important; z-index: 898; }
  /* içerik: navbar + cat-strip kadar üstten boşluk */
  body .page-wrap {
    padding-top: calc(var(--nav-h) + 48px + 16px) !important;
    flex: 1 0 auto !important;
    /* 100dvh'den üst sabit alan (navbar+cat-strip) ve alt bottom-nav (56px) çıkarılır.
       Böylece içerik kısa olsa bile page-wrap ekranı doldurur, footer tam bottom-nav üstüne iner. */
    min-height: calc(100dvh - var(--nav-h) - 48px - 56px) !important;
  }
  .site-footer { margin-top: 0 !important; margin-bottom: 0 !important; flex-shrink: 0 !important; }
  .flash-bar { margin-top: calc(var(--nav-h) + 48px) !important; }

  /* Logo arka planını her zaman şeffaf tut (siyah kutu görünmesin) */
  .nav-logo, .nav-logo-img { background: transparent !important; }
}

/* Anasayfa sekme barı + görünüm toggle — mobilde düzgün dizilim */
@media (max-width: 640px) {
  .home-tabs-bar {
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
  }
  .home-tabs {
    flex: 1; flex-wrap: nowrap; gap: 6px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .home-tabs::-webkit-scrollbar { display: none; }
  .home-tab {
    flex: 0 0 auto; padding: 8px 14px; font-size: 13px;
  }
  .home-tab i { display: inline-block; }   /* ikonlar görünsün */
  .view-toggle { flex: 0 0 auto; }
}

/* Kategori/listeleme sayfası: sıralama + görünüm toggle yan yana taşmasın */
@media (max-width: 860px) {
  .listing-toolbar {
    flex-wrap: wrap; gap: 10px; padding: 10px 12px;
  }
  .listing-toolbar .lt-left {
    flex: 1 1 100%;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 13px;
  }
  .listing-toolbar .lt-right {
    flex: 1 1 100%;
    display: flex; align-items: center; gap: 8px;
    justify-content: flex-start;
  }
  .listing-toolbar .lt-right .mobile-filter-btn { flex: 0 0 auto; margin: 0; }
  .listing-toolbar .lt-right .sort-select {
    flex: 0 1 auto; width: auto; min-width: 110px; max-width: 170px;
  }
  .listing-toolbar .lt-right .view-toggle { flex: 0 0 auto; margin-left: auto; }
}

/* Mağaza iletişim bilgileri: mobilde tek sütun ama düzgün hizalı */
@media (max-width: 600px) {
  .store-panel [style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}

/* Arama sayfası — belirgin arama kutusu */
.search-page-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 5px 6px 5px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.search-page-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.search-page-box > i.fa-search { color: var(--text-muted); font-size: 16px; flex-shrink: 0; }
.search-page-box input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px; padding: 11px 4px;
}
.search-page-box input::placeholder { color: var(--text-muted); }
/* Temizleme (x) butonu — sadece yazı varken JS ile gösterilir */
.search-page-box .search-clear {
  display: none; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--surface2); border: none; color: var(--text-muted);
  font-size: 13px; cursor: pointer; padding: 0; transition: .15s;
}
.search-page-box .search-clear:hover { background: var(--border); color: var(--text); }
/* Ara butonu */
.search-page-box .search-go {
  flex-shrink: 0; background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 11px 22px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.search-page-box .search-go:hover { background: var(--accent-dark); }
/* Arama sayfası öneri kutusu (autocomplete) */
.search-page-suggest {
  display: none; position: relative; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; z-index: 50;
}
.search-page-suggest .suggest-group {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px; padding: 10px 14px 4px;
}
.search-page-suggest a {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  color: var(--text); text-decoration: none; font-size: 14px;
}
.search-page-suggest a:hover { background: var(--surface2); }
.search-page-suggest a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-page-suggest a small { color: var(--accent); font-weight: 600; flex-shrink: 0; }
.search-page-suggest .suggest-empty { padding: 16px 14px; color: var(--text-muted); font-size: 14px; text-align: center; }
/* ── EİDS doğrulama rozeti ── */
.eids-badge { display:inline-flex; align-items:center; gap:5px; background:rgba(16,185,129,.12); color:#10b981; border:1px solid rgba(16,185,129,.35); border-radius:99px; padding:3px 10px; font-size:12px; font-weight:600; white-space:nowrap; }
.eids-badge i { font-size:11px; }

/* ── Kurumsal hesap rozeti ── */
.corp-badge { display:inline-flex; align-items:center; gap:5px; background:rgba(99,102,241,.12); color:var(--accent); border:1px solid rgba(99,102,241,.35); border-radius:99px; padding:3px 10px; font-size:12px; font-weight:600; white-space:nowrap; }
.corp-badge i { font-size:11px; }