/* ToonRadar tasarim katmani: tum temalar ayni degiskenleri kullanir */
:root { --radius: 14px; --shadow: 0 10px 28px rgba(0, 0, 0, 0.28); --hair: var(--border-subtle); }

body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -0.003em; }
body::before {
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    linear-gradient(color-mix(in srgb, var(--bg-base) 84%, transparent), color-mix(in srgb, var(--bg-base) 94%, transparent)),
    var(--bg-scene, none) center / cover no-repeat;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Ust alan */
.header-bar { background: color-mix(in srgb, var(--bg-base) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); }
.glass-bar { background: color-mix(in srgb, var(--bg-surface) 88%, transparent); border-radius: var(--radius); }
#controlBar button[id^="tab"] { padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: color 0.15s, background 0.15s; }
#controlBar button[id^="tab"]:hover { color: var(--text-main); background: color-mix(in srgb, var(--text-main) 6%, transparent); }

/* Kartlar ve bolumler */
.home-section { background: color-mix(in srgb, var(--bg-surface) 90%, transparent); border-radius: 16px; padding: 20px 22px 18px; box-shadow: 0 1px 0 color-mix(in srgb, var(--text-main) 4%, transparent) inset; }
.home-title { letter-spacing: -0.012em; }
.community-card { background: color-mix(in srgb, var(--bg-surface) 92%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--text-main) 4%, transparent) inset; }
.rank-card img, .rail-card img { transition: transform 0.18s ease, box-shadow 0.18s ease; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface)); }
.rank-card:hover img, .rail-card:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.poster-card { border-radius: 14px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
.poster-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.more-btn, .ghost-btn, .primary-btn, .danger-btn { border-radius: 10px; transition: filter 0.15s, border-color 0.15s, background 0.15s; }
.primary-btn { box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent); }
.filter-input, .filter-select { border-radius: 10px; }
.filter-input:focus, .filter-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.stat-tile { background: color-mix(in srgb, var(--bg-surface) 92%, transparent); }

/* Sayfa alti */
.site-foot { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px 32px; margin-top: 44px; padding: 22px 2px 26px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.foot-brand b { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--text-main); }
.foot-brand p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; gap: 6px 14px; }
.foot-links a, .foot-links button, .foot-note a { color: var(--text-muted); font-size: 12.5px; }
.foot-links a:hover, .foot-links button:hover, .foot-note a:hover { color: var(--accent); }
.foot-note { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 11.5px; }

/* Forum */
.forum-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; margin: 4px 0 14px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, var(--bg-surface)), color-mix(in srgb, var(--bg-surface) 92%, transparent) 70%); border: 1px solid var(--hair); }
.forum-hero h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); }
.forum-hero p { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
.forum-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.forum-search { width: 210px; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 14px; align-items: start; }
.forum-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 112px; }
.forum-side .community-card { margin: 0; padding: 14px; }
.side-title { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.cat-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border-radius: 9px; font-size: 13px; color: var(--text-main); text-align: left; transition: background 0.15s; }
.cat-row:hover { background: color-mix(in srgb, var(--text-main) 6%, transparent); }
.cat-row.on { background: color-mix(in srgb, var(--cat, var(--accent)) 16%, transparent); font-weight: 600; }
.cat-row i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--accent)); }
.cat-row span { flex: 1; min-width: 0; }
.cat-row small { font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.side-rules { margin: 0; padding-left: 16px; list-style: disc; font-size: 12px; line-height: 1.55; color: var(--text-muted); }
.hot-row { padding: 7px 0; }
.hot-row:last-child { border-bottom: 0; }
.forum-tools { justify-content: space-between; margin-bottom: 10px; }
.forum-total { font-size: 12.5px; color: var(--text-muted); }
.forum-cats { display: none; }
.thread-list { gap: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--hair); background: color-mix(in srgb, var(--bg-surface) 92%, transparent); }
.thread-row { gap: 13px; padding: 13px 16px; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--hair); transition: background 0.15s; }
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: color-mix(in srgb, var(--text-main) 5%, transparent); }
.thread-row.pinned { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.thread-main b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.thread-main b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-main b svg { flex: none; color: var(--accent); }
.thread-meta { display: flex; align-items: center; gap: 7px; margin-top: 4px; min-width: 0; font-size: 12px; color: var(--text-muted); overflow: hidden; white-space: nowrap; }
.thread-meta em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.cat-badge { flex: none; display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 15%, transparent); }
.thread-stats { flex: none; display: flex; gap: 16px; }
.thread-count { width: 44px; }
.thread-count b { font-size: 15px; font-weight: 600; }
.forum-empty { padding: 44px 20px; text-align: center; background: transparent; border: 0; box-shadow: none; margin: 0; }
.forum-empty h3 { margin: 0 0 4px; font-size: 15px; color: var(--text-main); }
.forum-empty p { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); }
.forum-empty .primary-btn { display: inline-flex; }

/* Konu sayfasi */
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 12.5px; color: var(--text-muted); }
.crumbs button { color: var(--accent); }
.crumbs button:hover { text-decoration: underline; }
.thread-hero { padding: 18px 22px; margin-bottom: 12px; border-radius: 16px; }
.thread-hero h2 { margin: 7px 0 6px; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.thread-hero .thread-facts { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.thread-facts span { display: inline-flex; align-items: center; gap: 5px; }
.thread-hero .row-btns { margin-top: 12px; }
.forum-post { display: grid; grid-template-columns: 150px minmax(0, 1fr); padding: 0; overflow: hidden; }
.post-author { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 12px; text-align: center; background: color-mix(in srgb, var(--text-main) 3%, transparent); border-right: 1px solid var(--hair); }
.post-author .user-link { flex-direction: column; gap: 7px; font-size: 13.5px; min-width: 0; max-width: 100%; }
.post-author .user-link span { overflow-wrap: anywhere; }
.author-count { font-size: 11.5px; color: var(--text-muted); }
.op-tag { padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); background: color-mix(in srgb, var(--text-main) 8%, transparent); }
.post-content { display: flex; flex-direction: column; min-width: 0; padding: 14px 18px 12px; }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 12px; color: var(--text-muted); }
.post-top a { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.post-top a:hover { color: var(--accent); }
.post-body { flex: 1; font-size: 14.5px; line-height: 1.7; color: var(--text-main); overflow-wrap: anywhere; }
.forum-post footer { gap: 4px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--hair); }
.forum-post footer button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.forum-post footer button:hover { background: color-mix(in srgb, var(--text-main) 6%, transparent); }
.forum-post footer .like-btn.on { background: color-mix(in srgb, #f472b6 14%, transparent); color: #f472b6; }
.reply-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 18px; }
.reply-box h3 { margin: 0 0 8px; font-size: 14px; }
.pager { margin: 16px 0; }
.pager button { padding: 6px 12px; border-radius: 9px; background: var(--bg-elevated); border: 1px solid var(--hair); }
.rules-more summary { cursor: pointer; margin-bottom: 6px; font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 900px) {
  .forum-layout { grid-template-columns: minmax(0, 1fr); }
  .forum-side { position: static; }
  .forum-side .cat-card { display: none; }
  .forum-cats { display: flex; margin-bottom: 10px; }
}
@media (max-width: 640px) {
  .site-foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .home-section { padding: 16px 14px 14px; }
  .forum-hero { padding: 16px; }
  .forum-actions, .forum-search { width: 100%; }
  .forum-actions form { flex: 1; }
  .thread-row { padding: 12px; gap: 10px; }
  .thread-views { display: none; }
  .forum-post { grid-template-columns: minmax(0, 1fr); }
  .post-author { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 10px 14px; text-align: left; border-right: 0; border-bottom: 1px solid var(--hair); }
  .post-author .user-link { flex-direction: row; }
  .post-content { padding: 12px 14px; }
  .reply-box { grid-template-columns: minmax(0, 1fr); }
  .reply-box > .avatar { display: none; }
}

/* Hakkimizda */
.about-page { display: flex; flex-direction: column; gap: 14px; max-width: 980px; margin: 0 auto; }
.about-hero { padding: 34px 32px; border-radius: 18px; border: 1px solid var(--hair); background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 20%, var(--bg-surface)), color-mix(in srgb, var(--bg-surface) 94%, transparent) 72%); }
.about-kicker { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.about-hero h2 { max-width: 660px; margin: 0; font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; color: var(--text-main); }
.about-hero p { max-width: 640px; margin: 12px 0 20px; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-stats div { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--hair); background: color-mix(in srgb, var(--bg-surface) 92%, transparent); }
.about-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); font-variant-numeric: tabular-nums; }
.about-stats span { display: block; margin-top: 1px; font-size: 13px; font-weight: 600; color: var(--text-main); text-transform: capitalize; }
.about-stats small { display: block; margin-top: 1px; font-size: 12px; color: var(--text-muted); }
.about-block { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--hair); background: color-mix(in srgb, var(--bg-surface) 92%, transparent); }
.about-block > h3, .about-contact h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.012em; color: var(--text-main); }
.about-note { margin: -6px 0 14px; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.about-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.about-steps li { padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--text-main) 4%, transparent); }
.about-steps i { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-bottom: 10px; border-radius: 9px; font-size: 13px; font-style: normal; font-weight: 700; color: var(--bg-base); background: var(--accent); }
.about-steps b, .about-features b { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); }
.about-steps p, .about-features p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.about-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.about-features div { padding: 13px 14px; border-radius: 12px; border: 1px solid var(--hair); }
.about-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.about-sources h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-main); }
.about-sources h4 small { font-weight: 500; color: var(--text-muted); }
.source-chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0; }
.source-chips a { padding: 4px 9px; border-radius: 8px; font-size: 12.5px; color: var(--text-main); background: color-mix(in srgb, var(--text-main) 6%, transparent); transition: color 0.15s, background 0.15s; }
.source-chips a:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); text-decoration: none; }
.about-faq details { border-top: 1px solid var(--hair); }
.about-faq details:first-child { border-top: 0; }
.about-faq summary { padding: 11px 2px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-main); }
.about-faq summary:hover { color: var(--accent); }
.about-faq p { margin: 0; padding: 0 2px 13px; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); }
.about-contact { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--hair); background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 12%, var(--bg-surface)), color-mix(in srgb, var(--bg-surface) 94%, transparent)); }
.about-contact h3 { margin-bottom: 4px; }
.about-contact p { max-width: 460px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 760px) {
  .about-hero { padding: 24px 18px; }
  .about-hero h2 { font-size: 24px; }
  .about-stats, .about-steps, .about-features, .about-sources { grid-template-columns: minmax(0, 1fr); }
  .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .about-stats div { padding: 12px 10px; }
  .about-stats b { font-size: 20px; }
  .about-block, .about-contact { padding: 16px 14px; }
}

/* Senin Icin */
#forYouSection .rail-badge { background: var(--accent); color: var(--bg-base); font-weight: 700; }
#forYouSection .rail-meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.35; }
.rail-dismiss { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; color: #fff; background: rgba(0, 0, 0, 0.62); opacity: 0; transition: opacity 0.15s; }
.rail-card:hover .rail-dismiss, .rail-dismiss:focus-visible { opacity: 1; }
@media (hover: none) { .rail-dismiss { opacity: 0.85; } }
.taste-pick p { margin: 0 0 10px; font-size: 13.5px; color: var(--text-muted); }

/* Senin Icin sayfasi ve filtre paneli */
#tabFORYOU { color: var(--accent) !important; }
.foryou-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; margin-bottom: 18px; }
.foryou-grid .rail-card { flex: none; min-width: 0; }
.foryou-grid .rail-card img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
#forYouSection .taste-pick { margin-top: 4px; }
body:has(#filterPanel:not(.hidden)) .bug-btn { display: none; }
.filter-drawer { box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35); }
.filter-group { padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.filter-group:last-child { border-bottom: 0; }
.filter-scroll { max-height: 230px; overflow-y: auto; padding-right: 2px; align-content: flex-start; }
.filter-more summary { cursor: pointer; margin-bottom: 0; }
.filter-more[open] summary { margin-bottom: 8px; }
.filter-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) {
  .foryou-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .filter-scroll { max-height: 190px; }
}
