/* 4. BÖLÜMLER: başlık, manşet, haber akışı, yan sütun, kategori şeritleri, alt bilgi */

/* ---------- Üst kısım ---------- */
.masthead { position: relative; z-index: 1030; }
.masthead-bar { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -.02em; color: var(--fg); }
.brand-logo { display: block; height: 24px; width: auto; }
.logo-on-dark { display: none; }
[data-bs-theme="dark"] .logo-on-light { display: none; }
[data-bs-theme="dark"] .logo-on-dark { display: block; }
.site-footer .brand-logo { height: 23px; }
@media (max-width: 575.98px) { .brand-logo { height: 19px; } }
.masthead-date { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); white-space: nowrap; }
.sort-toggle { min-height: 44px; --bs-btn-padding-y: 0; }
.search-trigger { gap: 10px; min-height: 44px; --bs-btn-padding-y: 0; }
.theme-toggle .i-moon { display: none; }
[data-bs-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .i-moon { display: inline; }
/* .btn .badge (Bootstrap) konumu relative yapıyor; rozet akışın dışında kalsın ki ikon kaymasın */
.btn .bm-badge { position: absolute; top: 2px; right: 0; transform: translate(30%, -10%); }

.cat-bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1020; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.cat-bar.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
.cat-nav {
  --bs-nav-link-font-size: var(--fs-md); --bs-nav-link-font-weight: 500; --bs-nav-link-padding-y: 0;
  --bs-nav-link-color: var(--muted); --bs-nav-link-hover-color: var(--fg);
  --bs-nav-underline-gap: 26px; --bs-nav-underline-border-width: 3px;
  --bs-nav-underline-link-active-color: var(--ink);
  flex-wrap: nowrap; overflow: hidden;
}
.cat-nav .nav-item { flex: none; }
.cat-nav .nav-link { display: flex; align-items: center; min-height: 52px; white-space: nowrap; font-family: var(--font); transition: color .2s, border-color .2s; }
.cat-nav .nav-link.active { border-bottom-color: var(--accent-line); }

/* ---------- Manşet ---------- */
.hero { position: relative; overflow: clip; padding-block: 24px var(--section); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 0%, #000, transparent 78%); mask-image: radial-gradient(ellipse 75% 62% at 50% 0%, #000, transparent 78%);
}
.hero .wrap { position: relative; }

/* Son dakika şeridi: öğeler üst üste durur, yalnızca opacity ve transform değişir (titreme yok) */
.ticker { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 20px 6px 6px; margin-bottom: 20px; border-radius: 999px !important; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px 0 16px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 255, 143, .65); } 70% { box-shadow: 0 0 0 9px rgba(61, 255, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 143, 0); } }
.ticker-viewport { flex: 1; min-width: 0; position: relative; height: 42px; overflow: hidden; }
.ticker-item { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.ticker-item.is-leaving { transform: translateY(-10px); }
.ticker-item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ticker-item .ticker-link { width: 100%; }
.ticker-link { display: flex; align-items: center; gap: 14px; min-height: 42px; font-size: var(--fs-md); font-weight: 600; }
.ticker-link .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-link:hover .t { color: var(--ink); }
.ticker-time { flex: none; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 575px) { .ticker-time { display: none; } .ticker { padding-right: 14px; } }

/* ---------- Manşet bölümü: mozaik düzen, Son haberler kartlarıyla aynı kart stili ----------
   Dört sütunluk ızgara: solda büyük manşet kartı, sağda üç gündem kartı. Kartlar .news-card bileşenini aynen kullanır
   (cam yüzey, üstte yuvarlak görsel + etiket, altta zaman, başlık). Burada yalnızca yerleşim tanımlanır.
   Sarmalayıcılar display: contents olduğundan kartlar doğrudan ızgaraya oturur. */
.hero-stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 310px); gap: 18px; }
#heroLead, .hero-rail-wrap, .hero-rail { display: contents; }
.rail-title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.hero-stage .hero-lead, .hero-rail .mini.card { display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.hero-stage .hero-lead { grid-column: 1 / 3; grid-row: 1 / 3; }
.hero-rail .mini:nth-child(1) { grid-column: 3 / 5; grid-row: 1; }
.hero-rail .mini:nth-child(2) { grid-column: 3; grid-row: 2; }
.hero-rail .mini:nth-child(3) { grid-column: 4; grid-row: 2; }

/* Görsel kartın kalan yüksekliğini doldurur */
.hero-stage .news-media { min-height: 0; }
.hero-stage .news-media .ratio { height: 100%; }
.hero-stage .news-media .ratio::before { display: none; }
.hero-stage .news-body { gap: 8px; }
.hero-stage .hero-lead .news-body { padding: 20px 24px 22px; }
.hero-stage .news-title { margin: 0; font-size: var(--fs-xl); text-wrap: wrap; }
.hero-stage .hero-lead .news-title { -webkit-line-clamp: 4; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; letter-spacing: -.02em; }
.hero-stage .hero-lead h1 a, .hero-rail .mini h3 a { color: inherit; }

/* Kartın tamamı tıklanabilir (başlık bağlantısı erişilebilirlik için ayrıca durur) */
.tile-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.hero-stage .hero-lead:has(h1 a:focus-visible), .hero-rail .mini.card:has(a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero-stage a:focus-visible { outline: 0; }

/* Sade ve şık kart: ince çizgi, geniş boşluk, harf aralıklı küçük büyük harf etiketler, hafif gölge.
   Süs yok; hover'da yalnızca hafif yükselme ve görselde yumuşak yaklaşma. Yerleşim değişmez. */
.hero-stage { --card-fill: var(--surface); --card-edge: var(--line); }
[data-bs-theme="dark"] .hero-stage { --card-fill: #0C1330; --card-edge: rgba(255, 255, 255, .09); }
.hero-stage .hero-lead, .hero-rail .mini.card {
  border: 1px solid var(--card-edge); border-radius: var(--radius); background: var(--card-fill);
  box-shadow: 0 1px 2px rgba(8, 21, 58, .04), 0 18px 36px -24px rgba(8, 21, 58, .22);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s;
}
[data-bs-theme="dark"] .hero-stage .hero-lead, [data-bs-theme="dark"] .hero-rail .mini.card { box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 20px 40px -26px rgba(0, 0, 0, .75); }
.hero-stage .hero-lead:hover, .hero-rail .mini.card:hover {
  transform: translateY(-4px); border-color: var(--hover-line);
  box-shadow: 0 2px 4px rgba(8, 21, 58, .05), 0 26px 46px -24px rgba(8, 21, 58, .3);
}
.hero-stage .news-media { padding: 10px 10px 0; }
.hero-stage .cover-photo > img { transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.hero-stage .hero-lead:hover .cover-photo > img, .hero-rail .mini.card:hover .cover-photo > img { transform: scale(1.035); }
.hero-stage .news-media::after { display: none; }

/* Başlık: yalnızca satır aralığı farklı; ağırlık ve harf aralığı Son haberler kartıyla aynı */
.hero-stage .news-body { gap: 10px; padding: 20px 24px 24px; }
.hero-stage .hero-lead .news-body { gap: 14px; padding: 26px 30px 28px; }
.hero-stage .news-title { line-height: 1.22; }
.hero-stage .hero-lead .news-title { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.16; letter-spacing: -.02em; }
.hero-stage .hero-lead .news-foot { margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .hero-stage .hero-lead, .hero-rail .mini.card, .hero-stage .cover-photo > img { transition: none; }
  .hero-stage .hero-lead:hover, .hero-rail .mini.card:hover { transform: none; }
  .hero-stage .hero-lead:hover .cover-photo > img, .hero-rail .mini.card:hover .cover-photo > img { transform: none; }
}

/* Tablet ve telefon: manşet tam genişlik, altında geniş gündem kartı ve iki küçük kart. Görseller yine 16:10 / 4:3 oranlı. */
@media (max-width: 991.98px) {
  .hero { padding-block: 16px 36px; }
  .hero-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 14px; }
  .hero-stage .hero-lead { grid-column: 1 / -1; grid-row: auto; }
  .hero-rail .mini:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .hero-rail .mini:nth-child(2), .hero-rail .mini:nth-child(3) { grid-column: auto; grid-row: auto; }
  .hero-stage .hero-lead { grid-template-rows: auto auto; }
  .hero-rail .mini.card { grid-template-rows: auto auto; }
  .hero-stage .news-media .ratio { height: auto; }
  .hero-stage .news-media .ratio::before { display: block; }
  .hero-stage .hero-lead .news-media .ratio { --bs-aspect-ratio: 66%; }
  .hero-rail .mini:nth-child(1) .news-media .ratio { --bs-aspect-ratio: 50%; }
  .hero-rail .mini:nth-child(n+2) .news-media .ratio { --bs-aspect-ratio: 75%; }
}
@media (max-width: 575.98px) {
  .hero-stage { gap: 12px; }
  .hero-stage .hero-lead .news-body { padding: 18px 20px 20px; }
  .hero-rail .mini:nth-child(n+2) .news-body { padding: 14px 14px 16px; gap: 6px; }
  .hero-rail .mini:nth-child(n+2) .news-title { font-size: var(--fs-md); line-height: 1.25; }
  .hero-rail .mini:nth-child(n+2) .news-meta i, .hero-rail .mini:nth-child(n+2) .news-meta span { display: none; }
  .hero-rail .mini:nth-child(n+2) .news-title { -webkit-line-clamp: 4; }
  .hero-rail .mini:nth-child(n+2) .news-media { padding: 8px 8px 0; }
  .hero-rail .mini:nth-child(n+2) .news-media .badge-glass { top: 16px; left: 16px; }
}

/* ---------- Haber akışı ---------- */
h2.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.018em; margin-top: 12px; }
.feed-head { margin-bottom: 24px; }
.feed-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 44px; margin-bottom: 18px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.feed-status:empty { display: none; }
.active-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); font-size: var(--fs-xs); font-weight: 700; }
.active-filter button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--neon); color: var(--neon-ink); cursor: pointer; }
[data-bs-theme="dark"] .active-filter button { background: var(--neon-ink); color: var(--neon); }
.clear-all { border: 0; background: none; padding: 0; font-weight: 700; font-size: var(--fs-xs); color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 3px; text-underline-offset: 4px; cursor: pointer; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; margin-bottom: 6px; font-size: var(--fs-xl); color: var(--fg); }
.more-wrap { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 48px); }

/* ---------- Yan sütun ---------- */
.panel { padding: clamp(24px, 3vw, 32px); }
.side-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: var(--fs-2xl); line-height: 1.2; font-weight: 700; letter-spacing: -.016em; }
.side-title small { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rank li { border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }
.rank a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 16px 0; }
.rank-n { font-size: var(--fs-4xl); font-weight: 700; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.rank h3 { font-size: var(--fs-base); font-weight: 700; line-height: 1.3; letter-spacing: -.008em; }
.rank .m { display: block; margin-top: 4px; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Arama ve çekmece içeriği ---------- */
.search-modal .modal-header { padding: 20px 20px 12px; border: 0; }
.search-modal .modal-body { padding: 4px 12px 16px; min-height: 120px; }
.search-modal .modal-footer { justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.search-field { position: relative; width: 100%; }
.search-field svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .form-control { padding-left: 52px; }
.result-label { padding: 8px 12px; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.result-item { display: flex; align-items: center; gap: 14px; padding: 12px; border: 0 !important; border-radius: 14px !important; }
.result-item .badge { background: var(--chip-bg); --bs-badge-color: var(--chip-fg); flex: none; min-width: 112px; }
.result-item .r-title { font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.result-item .r-meta { font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.bm-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bm-row .b-body { flex: 1; min-width: 0; }
.bm-row .b-cat { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.bm-row .b-title { display: block; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; margin-top: 2px; }
.bm-row .b-title:hover { color: var(--ink); }
.bm-remove { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--glass-line); background: transparent; border-radius: 50%; color: var(--muted); cursor: pointer; transition: border-color .2s, color .2s; }
.bm-remove:hover { color: var(--fg); border-color: var(--hover-line); }
.bm-empty { padding: 40px 12px; text-align: center; color: var(--muted); }
.bm-empty strong { display: block; color: var(--fg); margin-bottom: 6px; font-size: var(--fs-lg); }

/* ---------- Yukarı çık + bildirim ---------- */
.to-top { position: fixed; z-index: 1040; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.toast-container { padding: 16px max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-bottom, 0px)); }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; }
.foot-top { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 992px) { .foot-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; } }
.foot-cats { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 992px) { .foot-cats { justify-content: flex-end; } }
.foot-cat { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--glass); color: var(--fg); font-size: var(--fs-sm); font-weight: 600; transition: border-color .2s, color .2s; }
.foot-cat:hover { border-color: var(--hover-line); color: var(--ink); }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: var(--fs-xs); font-weight: 500; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); font-weight: 500; }
.legal-links a:hover { color: var(--ink); }


/* ---------- Sidebar: anket ---------- */
.poll-q { margin: 6px 0 16px; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; letter-spacing: -.005em; }
.poll-options { display: grid; gap: 10px; }
.poll-opt { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--glass-line); border-radius: 999px; background: var(--bg-soft); color: var(--fg); font-weight: 600; font-size: var(--fs-md); cursor: pointer; text-align: left; transition: border-color .2s, background-color .2s; }
.poll-opt:hover { border-color: var(--hover-line); background: var(--surface); }
.poll-note { margin-top: 14px; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.poll-results { display: grid; gap: 16px; }
.poll-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: var(--fs-md); font-weight: 600; }
.poll-row b { font-variant-numeric: tabular-nums; font-weight: 700; }
.poll-row em { margin-left: 6px; font-style: normal; font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.poll-results .progress { --bs-progress-height: 8px; --bs-progress-bg: var(--bg-soft); --bs-progress-border-radius: 999px; --bs-progress-bar-bg: color-mix(in srgb, var(--muted) 55%, var(--bg-soft)); }
.poll-results .is-mine .progress-bar { background: var(--accent-line); }
.poll-results .progress-bar { border-radius: 999px; transition: width .6s ease; }

/* ---------- Sidebar: sosyal medya ---------- */
.social { position: relative; overflow: clip; border-radius: var(--radius); color: #fff; background: linear-gradient(155deg, var(--navy-2), var(--navy) 62%); border: 1px solid rgba(255, 255, 255, .12); isolation: isolate; }
.social::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; z-index: -1; background: radial-gradient(closest-side, rgba(61, 255, 143, .35), transparent); pointer-events: none; }
.social .side-title { margin-bottom: 6px; color: #fff; }
.social p { color: rgba(255, 255, 255, .72); font-size: var(--fs-md); }
.social-list { display: grid; gap: 8px; margin-top: 18px; }
.social-link { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; transition: background-color .2s, border-color .2s; }
.social-link:hover { background: rgba(255, 255, 255, .14); border-color: rgba(61, 255, 143, .6); }
.s-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--neon); color: var(--neon-ink); }
.s-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.s-txt b { font-size: var(--fs-md); font-weight: 700; }
.s-txt small { font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, .7); }
.s-go { flex: none; display: inline-flex; color: rgba(255, 255, 255, .7); transition: transform .2s, color .2s; }
.social-link:hover .s-go { transform: translateX(3px); color: var(--neon); }
.social :focus-visible { outline-color: var(--neon); }

/* ---------- Sidebar: son yorumlar ---------- */
.comments li { padding: 16px 0; border-top: 1px solid var(--line); }
.comments li:first-child { border-top: 0; padding-top: 12px; }
.c-head { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.c-head b { font-weight: 700; }
.c-head time { margin-left: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.c-text { margin-top: 10px; font-size: var(--fs-md); line-height: 1.5; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-story { display: block; margin-top: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.c-story::before { content: "→ "; color: var(--ink); }
.c-story:hover { color: var(--ink); }

/* ---------- Kategori çubuğu: sığmayınca hamburger ---------- */
.cat-inner { position: relative; overflow: clip; display: flex; align-items: center; min-height: 52px; }
.cat-inner nav { flex: 1; min-width: 0; }
.cat-bar.is-collapsed .cat-inner nav { position: absolute; left: 0; top: 0; width: max-content; visibility: hidden; pointer-events: none; }
.offcanvas-start { padding-left: env(safe-area-inset-left, 0px); }
.menu-nav { display: grid; gap: 4px; }
.menu-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; font-size: var(--fs-base); font-weight: 600; color: var(--fg); transition: background-color .2s, color .2s; }
.menu-link svg { opacity: .5; }
.menu-link:hover { background: var(--bg-soft); }
.menu-link.active { background: var(--chip-bg); color: var(--chip-fg); }
.menu-link.active svg { opacity: 1; }

/* Sığmayınca: hamburger logonun solunda, üst satır yapışkan; kategori satırı gizlenir */
header { display: contents; }
.cat-burger { display: none; }
header.is-collapsed .cat-burger { display: inline-flex; }
header.is-collapsed .cat-bar { position: static; height: 0; overflow: hidden; visibility: hidden; border: 0; }
header.is-collapsed .masthead { position: sticky; top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
header.is-collapsed .masthead.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--line); }
.min-w-0 { min-width: 0; }
.read-progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 1101; }
.icon-btn { flex: none; }
@media (max-width: 440px) {
  .icon-btn { width: 40px; height: 40px; }
  .brand { font-size: var(--fs-xl); gap: 8px; }
  .brand-logo { height: 17px; }
  .masthead-bar { gap: 8px !important; }
}
@media (max-width: 380px) {
  .brand { font-size: var(--fs-base); gap: 6px; }
  .brand-logo { height: 15px; }
  .icon-btn { width: 38px; height: 38px; }
  .masthead .gap-2 { gap: 4px !important; }
}

/* ---------- Hizalama: geniş ekranda iki sütun aynı çizgide biter ---------- */
.more-wrap { margin-top: clamp(32px, 5vw, 48px); }
@media (min-width: 1200px) {
  #mainRow > aside { display: flex; flex-direction: column; }
  #feedCol.is-balanced { display: flex; flex-direction: column; }
  #feedCol.is-balanced #feed { flex: 1 1 auto; align-content: stretch; }
  /* Fazla yükseklik panellerin içine değil, paneller arasına dağıtılır: kutu ile içerik arasındaki boşluk sabit kalır */
  #sidebar.is-balanced { flex: 1 1 auto; justify-content: space-between; }
  #sidebar.is-sticky { position: sticky; align-self: flex-start; width: 100%; }
}


/* ---------- Sidebar sistemi: tüm paneller aynı iç boşluk, başlık ve yazı ölçeğini kullanır ----------
   Ölçek: başlık 1.1rem · öğe başlığı 15px · gövde 14px · ayrıntı 12.5px · etiket 12px */
#sidebar { --sb-pad: 24px; --sb-gap: 16px; --sb-item: 14px; }
#sidebar > .panel { padding: var(--sb-pad); }
#sidebar .side-title { margin: 0 0 var(--sb-gap); font-size: var(--fs-xl); line-height: 1.25; font-weight: 700; letter-spacing: -.012em; }
#sidebar .side-title small { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; }
#sidebar .social p, #sidebar .poll-q { margin: 0 0 var(--sb-gap); }

/* Okunanlar */
#sidebar .rank a { grid-template-columns: 30px 1fr; gap: 12px; padding: var(--sb-item) 0; }
#sidebar .rank li:first-child a { padding-top: 0; }
#sidebar .rank li:last-child a { padding-bottom: 0; }
#sidebar .rank-n { font-size: var(--fs-2xl); line-height: 1.3; }
#sidebar .rank h3 { font-size: var(--fs-md); line-height: 1.35; }
#sidebar .rank .m { margin-top: 4px; font-size: var(--fs-xs); }

/* Etiketler */
#sidebar .tag-cloud { margin: 0; gap: 8px; }
#sidebar .tag-pill { min-height: 34px; padding: 0 13px; font-size: var(--fs-xs); }

/* Yorumlar */
#sidebar .comments li { padding: var(--sb-item) 0; }
#sidebar .comments li:first-child { padding-top: 0; }
#sidebar .comments li:last-child { padding-bottom: 0; }
#sidebar .c-head { font-size: var(--fs-sm); }
#sidebar .c-head time { font-size: var(--fs-xs); }
#sidebar .c-text { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.5; }
#sidebar .c-story { margin-top: 6px; font-size: var(--fs-xs); }

/* Anket */
#sidebar .poll-q { font-size: var(--fs-md); font-weight: 700; line-height: 1.4; letter-spacing: -.005em; }
#sidebar .poll-options { gap: 8px; }
#sidebar .poll-opt { min-height: 42px; padding: 0 18px; font-size: var(--fs-sm); }
#sidebar .poll-results { gap: 12px; }
#sidebar .poll-row { margin-bottom: 6px; font-size: var(--fs-sm); }
#sidebar .poll-note { margin-top: 12px; font-size: var(--fs-xs); }

/* Sosyal medya */
#sidebar .social p { font-size: var(--fs-sm); line-height: 1.5; }
#sidebar .social-list { gap: 8px; margin: 0; }
#sidebar .social-link { min-height: 52px; padding: 6px 14px 6px 8px; gap: 12px; }
#sidebar .s-ico { width: 38px; height: 38px; }
#sidebar .s-txt b { font-size: var(--fs-sm); }
#sidebar .s-txt small { font-size: var(--fs-xs); }

@media (max-width: 340px) { .brand-logo { height: 11px; } }

/* ---------- Dokunmatik ekran: tüm etkileşimli öğeler en az 44px ---------- */
.c-story { padding-block: 4px; }
@media (pointer: coarse) {
  .btn-bm { width: 44px; height: 44px; }
  .btn-sm, .tag-pill, #sidebar .tag-pill { min-height: 44px; }
  .btn-glass:not(.icon-btn):not(.btn-bm) { min-height: 44px; }
  .view-toggle .btn { height: 44px; }
  body .cm-like, body .cm-reply, body .rate-btn, body #sidebar .poll-opt, body .poll-opt, body .cookie .btn, body #toTop { min-height: 44px; }
  body #toTop { min-width: 44px; }
  html body .cm-act button, html body .cm-form .btn-neon, html body .au-actions .btn { min-height: 44px; }
}
@media (pointer: coarse) and (min-width: 441px) {
  .icon-btn { width: 44px; height: 44px; }
}
