/* ============================================================
   FORUM — Ana Stil Dosyası
   Sürüm: 1.1.1
   ============================================================ */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.menu-open {
    overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ============================================================
   RENK DEĞİŞKENLERİ
   ============================================================ */
:root {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --surface-alt: #f9fafb;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --text-inverse: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-text: #ffffff;
    --accent-rgb: 37, 99, 235;
    --success: #16a34a;
    --success-light: #dcfce7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --info: #0891b2;
    --info-light: #cffafe;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --container: 1200px;
    --header-height: 64px;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --surface: #1e293b;
    --surface-alt: #334155;
    --border: #334155;
    --border-strong: #475569;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    --text-inverse: #0f172a;
    --accent-light: #1e3a8a;
    --success-light: #14532d;
    --error-light: #7f1d1d;
    --warning-light: #713f12;
    --info-light: #164e63;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -2px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.6), 0 8px 10px -6px rgba(0,0,0,0.5);
}

body { background-color: var(--bg); color: var(--text); }

/* ============================================================
   TEMA RENKLERİ
   ============================================================ */
[data-color="blue"]   { --accent: #2563eb; --accent-hover: #1d4ed8; --accent-light: #dbeafe; --accent-rgb: 37, 99, 235; }
[data-color="green"]  { --accent: #16a34a; --accent-hover: #15803d; --accent-light: #dcfce7; --accent-rgb: 22, 163, 74; }
[data-color="purple"] { --accent: #7c3aed; --accent-hover: #6d28d9; --accent-light: #ede9fe; --accent-rgb: 124, 58, 237; }
[data-color="orange"] { --accent: #ea580c; --accent-hover: #c2410c; --accent-light: #ffedd5; --accent-rgb: 234, 88, 12; }
[data-color="red"]    { --accent: #dc2626; --accent-hover: #b91c1c; --accent-light: #fee2e2; --accent-rgb: 220, 38, 38; }
[data-color="pink"]   { --accent: #db2777; --accent-hover: #be185d; --accent-light: #fce7f3; --accent-rgb: 219, 39, 119; }
[data-color="yellow"] { --accent: #ca8a04; --accent-hover: #a16207; --accent-light: #fef9c3; --accent-rgb: 202, 138, 4; }
[data-color="cyan"]   { --accent: #0891b2; --accent-hover: #0e7490; --accent-light: #cffafe; --accent-rgb: 8, 145, 178; }
[data-color="brown"]  { --accent: #92400e; --accent-hover: #78350f; --accent-light: #fef3c7; --accent-rgb: 146, 64, 14; }
[data-color="black"]  { --accent: #111827; --accent-hover: #000000; --accent-light: #e5e7eb; --accent-rgb: 17, 24, 39; }
[data-color="white"]  { --accent: #64748b; --accent-hover: #475569; --accent-light: #f1f5f9; --accent-rgb: 100, 116, 139; }
[data-color="gray"]   { --accent: #475569; --accent-hover: #334155; --accent-light: #e2e8f0; --accent-rgb: 71, 85, 105; }

[data-theme="dark"][data-color="blue"]   { --accent: #3b82f6; --accent-hover: #60a5fa; }
[data-theme="dark"][data-color="green"]  { --accent: #22c55e; --accent-hover: #4ade80; }
[data-theme="dark"][data-color="purple"] { --accent: #a78bfa; --accent-hover: #c4b5fd; }
[data-theme="dark"][data-color="orange"] { --accent: #fb923c; --accent-hover: #fdba74; }
[data-theme="dark"][data-color="red"]    { --accent: #f87171; --accent-hover: #fca5a5; }
[data-theme="dark"][data-color="pink"]   { --accent: #f472b6; --accent-hover: #f9a8d4; }
[data-theme="dark"][data-color="yellow"] { --accent: #fbbf24; --accent-hover: #fcd34d; }
[data-theme="dark"][data-color="cyan"]   { --accent: #22d3ee; --accent-hover: #67e8f9; }
[data-theme="dark"][data-color="brown"]  { --accent: #d97706; --accent-hover: #f59e0b; }
[data-theme="dark"][data-color="black"]  { --accent: #e5e7eb; --accent-hover: #f3f4f6; --accent-text: #111827; }
[data-theme="dark"][data-color="white"]  { --accent: #94a3b8; --accent-hover: #cbd5e1; }
[data-theme="dark"][data-color="gray"]   { --accent: #94a3b8; --accent-hover: #cbd5e1; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
}

.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-4);
    align-items: start;
}

.content-main { min-width: 0; }

/* Sidebar: JS (initStickySidebar) tarafindan transform ile kaydirilir.
   Asagi kaydirirken widget'lar icerikle beraber akar, ust sinira
   gelince sabitlenir ve icerik bitene kadar sabit kalir; yukari
   kaydirinca ayni sekilde tam tersi olur (Jannah tarzi davranis).
   position:sticky KULLANILMIYOR - JS kontrol ediyor. */
.content-side {
    position: relative;
    will-change: transform;
    transform: translateY(0px);
}

@media (max-width: 968px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    .content-side {
        position: static;
        transform: none !important;
    }
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--accent);
    color: var(--accent-text);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   HEADER (En üst katman — 9999)
   ============================================================ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(8px);
    background-color: rgba(var(--accent-rgb), 0.02);
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: var(--header-height);
    max-width: 100%;
    position: relative;
}

.site-brand { display: flex; align-items: center; flex-shrink: 0; }

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--text);
    font-size: 1.125rem;
}

.brand-logo { max-height: 36px; width: auto; }

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: var(--radius);
}

.brand-text { white-space: nowrap; }

.site-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }

.nav-list { display: flex; list-style: none; gap: 2px; overflow: visible; }

.nav-list a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.15s ease;
}
.nav-list a:hover { background: var(--accent-light); color: var(--accent); }

.nav-more { position: relative; }

.nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}
.nav-more-btn:hover, .nav-more-btn.active { background: var(--accent-light); color: var(--accent); }
.nav-more-btn svg { transition: transform 0.15s ease; }
.nav-more-btn.active svg { transform: rotate(180deg); }

.nav-more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    z-index: 10000;
    animation: fadeInDown 0.15s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-more-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.12s ease;
    white-space: nowrap;
}
.nav-more-menu a:hover { background: var(--accent-light); color: var(--accent); }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex-shrink: 0;
    margin-left: auto;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all 0.15s ease;
}
.icon-btn:hover { background: var(--surface-alt); color: var(--text); }

.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    color: var(--text-muted);
    z-index: 10001;
    position: relative;
    transition: all 0.15s ease;
}
.mobile-toggle:hover { background: var(--surface-alt); }

/* THEME SWITCHER */
.theme-switcher { position: relative; }
.icon-sun, .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: block; }

.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3);
    min-width: 240px;
    z-index: 10000;
    display: none;
}
.theme-menu.open { display: block; }

.theme-option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    text-align: left;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9375rem;
    transition: background 0.15s ease;
}
.theme-option:hover { background: var(--surface-alt); }

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--swatch);
    border: 2px solid transparent;
    transition: all 0.15s ease;
    cursor: pointer;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
}

/* SEARCH BAR */
.search-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-4) 0;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-form { display: flex; gap: var(--space-2); align-items: center; }

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.15s ease;
}
.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-text);
    transition: background 0.15s ease;
}
.search-form button:hover { background: var(--accent-hover); }

.search-close { background: var(--surface-alt) !important; color: var(--text-muted) !important; }

/* BREADCRUMB */
.breadcrumb-wrap { padding: var(--space-4) var(--space-4) 0; }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-muted);
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}
.breadcrumb a:hover { color: var(--accent); }
.bc-sep {
    display: flex;
    align-items: center;
    color: var(--text-subtle);
    margin: 0 2px;
}
.bc-current { color: var(--text); font-weight: 500; }

/* MAIN & CARDS */
.site-main { flex: 1; position: relative; z-index: 1; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    overflow: visible;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-header h1, .card-header h2, .card-header h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
}

.card-header h1 { font-size: 1.375rem; }
.card-header h2 { font-size: 1.125rem; }

.card-action {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
}
.card-action:hover { color: var(--accent-hover); }

/* PAGE CONTENT */
.page-content {
    padding: var(--space-6);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    word-wrap: break-word;
}
.page-content p { margin-bottom: 1em; }
.page-content p:last-child { margin-bottom: 0; }
.page-content h2, .page-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--text);
    font-weight: 700;
}
.page-content h2 { font-size: 1.25rem; }
.page-content h3 { font-size: 1.125rem; }
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content ul, .page-content ol { margin: 1em 0; padding-left: 2em; }
.page-content li { margin-bottom: 0.5em; }
.page-content img { margin: 1em 0; border-radius: var(--radius); }

/* HERO (z-index düşürüldü) */
.hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--accent-text);
    padding: var(--space-12) var(--space-4);
    text-align: center;
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    color: var(--accent-text);
}

.hero-tagline { font-size: 1.0625rem; opacity: 0.9; margin-bottom: var(--space-6); }

.hero-ask {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto var(--space-6);
    background: #fff;
    border-radius: var(--radius-full);
    padding: 6px 6px 6px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.hero-ask input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: var(--text);
    background: transparent;
    min-width: 0;
}
.hero-ask input::placeholder { color: var(--text-subtle); }
.hero-ask button {
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.hero-ask button:hover { background: var(--accent-hover); }

@media (max-width: 640px) {
    .hero-ask { padding: 5px 5px 5px 16px; }
    .hero-ask button { padding: 9px 16px; font-size: 0.875rem; }
}
.hero-stats { display: flex; justify-content: center; gap: var(--space-8); flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-stat strong { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.hero-stat span { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }

@media (max-width: 640px) {
    .hero { padding: var(--space-8) var(--space-4); }
    .hero-title { font-size: 1.5rem; }
    .hero-stats { gap: var(--space-5); }
    .hero-stat strong { font-size: 1.375rem; }
}

/* ÖNE ÇIKANLAR SLIDER */
.hero-slider-wrap { padding: var(--space-5) var(--space-4) 0; }

.hero-slider {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-slider-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    min-height: 260px;
    padding: var(--space-6) var(--space-6) var(--space-5);
    color: #fff;
    text-decoration: none;
}

.hero-slide-cat {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-slide-title {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero-slide-excerpt {
    font-size: 0.875rem;
    opacity: 0.92;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}
.hero-slide-author img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); }

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    z-index: 2;
}
.hero-slider-arrow:hover { background: #fff; }
.hero-slider-arrow.prev { left: 12px; }
.hero-slider-arrow.next { right: 12px; }

.hero-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
}
.hero-slider-dot.active { background: #fff; width: 20px; border-radius: var(--radius-full); }

@media (max-width: 640px) {
    .hero-slide { min-height: 220px; padding: var(--space-5) var(--space-4) var(--space-4); }
    .hero-slide-title { font-size: 1.125rem; }
    .hero-slider-arrow { width: 30px; height: 30px; }
}

/* CATEGORIES GRID */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-3);
    padding: var(--space-4);
}

.category-tile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s ease;
}
.category-tile:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}
.category-icon span { width: 20px; height: 20px; border-radius: 50%; }

.category-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.3;
}
.category-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* THREADS LIST */
.thread-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: background 0.15s ease;
}
.thread-card:last-child { border-bottom: none; }
.thread-card:hover { background: var(--surface-alt); }

.thread-avatar { flex-shrink: 0; padding-top: 2px; }
.thread-avatar img { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-light); }

.thread-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.thread-link { display: contents; }

.thread-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thread-card:hover .thread-title { color: var(--accent); }
a:hover .thread-title { color: var(--accent); }

.thread-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thread-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.thread-meta a { color: var(--text-muted); }
.thread-meta a:hover { color: var(--accent); }
.meta-sep { color: var(--text-subtle); }
.meta-author strong { color: var(--text); font-weight: 600; }
.meta-cat {
    padding: 2px 8px;
    background: var(--accent-light);
    color: var(--accent) !important;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.thread-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex-shrink: 0;
    align-items: flex-end;
    min-width: 70px;
}

/* Avatar/yan kutu olmadan sadece baslik+meta gosteren varyant (orn. profil sayfasi) */
.thread-card.compact {
    grid-template-columns: minmax(0, 1fr);
}

.thread-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    min-width: 48px;
    justify-content: center;
}

@media (max-width: 640px) {
    .thread-card {
        grid-template-columns: 32px minmax(0, 1fr);
        padding: var(--space-4);
        gap: var(--space-2);
    }
    .thread-avatar img { width: 32px; height: 32px; }
    .thread-side {
        grid-column: 2 / 3;
        flex-direction: row;
        align-self: flex-start;
        gap: var(--space-2);
        min-width: 0;
        margin-top: 6px;
    }
    .thread-title { font-size: 0.9375rem; }
    .thread-excerpt { font-size: 0.8125rem; }
}

/* PAGE HEADER */
.page-header {
    padding: var(--space-6) var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.page-title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
}

.cat-color-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.page-desc { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: var(--space-3); line-height: 1.6; }
.page-meta { font-size: 0.875rem; color: var(--text-muted); }
.page-meta strong { color: var(--text); font-weight: 700; }

/* THREAD DETAIL */
.thread-detail-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--border);
}

.thread-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.thread-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: var(--space-5);
}

.thread-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.author-block { display: flex; align-items: center; gap: var(--space-3); }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-light); }
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.author-name:hover { color: var(--accent); }
.author-time { font-size: 0.8125rem; color: var(--text-muted); }
.thread-detail-stats { display: flex; gap: var(--space-4); font-size: 0.875rem; color: var(--text-muted); }

.thread-detail-content {
    padding: var(--space-6);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    word-wrap: break-word;
}

.thread-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: 0 var(--space-6) var(--space-4);
}
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-muted);
    transition: all 0.15s ease;
}
.tag:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.thread-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
    flex-wrap: wrap;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* SHARE MENU */
.share-dropdown {
    position: relative;
    display: inline-block;
    z-index: 100;
}

.share-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 6px;
    z-index: 9999;
    animation: fadeInDown 0.15s ease;
}

.share-menu a, .share-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: background 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover {
    background: var(--accent-light);
    color: var(--accent);
}

/* ACTION BUTTONS */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); }
.action-btn.liked { background: var(--error-light); border-color: var(--error); color: var(--error); }

.like-count {
    background: var(--surface-alt);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}
.action-btn.liked .like-count { background: var(--error); color: white; }

.action-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all 0.15s ease;
}
.action-btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.action-btn-sm.liked { background: var(--error-light); border-color: var(--error); color: var(--error); }

/* POSTS */
.post-item {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: none; }
.post-item:target { background: var(--accent-light); animation: highlight 2s ease; }

@keyframes highlight {
    0%, 100% { background: transparent; }
    30% { background: var(--accent-light); }
}

.post-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.post-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-light);
}

.post-author-name { font-weight: 600; color: var(--text); font-size: 0.9375rem; }
.post-author-name a { color: var(--text); }
.post-author-name a:hover { color: var(--accent); }

.guest-name { color: var(--text); }

.guest-badge {
    display: inline-block;
    padding: 1px 6px;
    background: var(--warning-light);
    color: var(--warning);
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-left: 6px;
    vertical-align: middle;
}

.post-time { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }

.post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    word-wrap: break-word;
    margin-bottom: var(--space-3);
}

.post-actions { display: flex; gap: var(--space-2); }

/* FORMS */
.reply-form { padding: var(--space-5); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-4);
}
.form-group:last-child { margin-bottom: 0; }

.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.required { color: var(--error); }

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
    transition: all 0.15s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-hint { font-size: 0.75rem; color: var(--text-muted); }

.form-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ALERTS */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    margin: var(--space-4) var(--space-5);
    border: 1px solid transparent;
    line-height: 1.5;
}
.alert-error { background: var(--error-light); color: var(--error); border-color: var(--error); }
.alert-success { background: var(--success-light); color: var(--success); border-color: var(--success); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-color: var(--warning); }
.alert-info { background: var(--info-light); color: var(--info); border-color: var(--info); }

/* EMPTY STATE */
.empty-state {
    padding: var(--space-12) var(--space-6);
    text-align: center;
    color: var(--text-muted);
}
.empty-state svg { margin: 0 auto var(--space-4); }
.empty-state h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
}
.empty-state p { font-size: 0.9375rem; }

.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }

/* SIDEBAR */
.popular-list { list-style: none; padding: var(--space-3); }
.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}
.popular-list li:hover { background: var(--surface-alt); }
.popular-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}
.popular-list a { font-size: 0.875rem; color: var(--text); line-height: 1.4; }
.popular-list a:hover { color: var(--accent); }

.recent-threads-list { list-style: none; padding: var(--space-2); }
.recent-threads-list li {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
}
.recent-threads-list li:last-child { border-bottom: none; }
.recent-threads-list li:hover { background: var(--surface-alt); }
.recent-threads-list .recent-avatar { flex-shrink: 0; }
.recent-threads-list .recent-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-light);
}
.recent-threads-list .recent-body { flex: 1; min-width: 0; }
.recent-threads-list .recent-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-threads-list .recent-title:hover { color: var(--accent); }
.recent-threads-list .recent-meta {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.sidebar-list { list-style: none; padding: var(--space-2); }
.sidebar-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: background 0.15s ease;
}
.sidebar-list li:hover { background: var(--surface-alt); }
.sidebar-list li.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.sidebar-list a {
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--space-3);
}
.sidebar-list .count {
    background: var(--surface-alt);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
    flex-shrink: 0;
}

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: var(--space-4);
}
.online-user {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-alt);
    transition: transform 0.15s ease;
}
.online-user:hover { transform: scale(1.1); }
.online-user img { width: 32px; height: 32px; border-radius: 50%; }
.online-guest { color: var(--text-subtle); }

.related-list { list-style: none; padding: var(--space-3); }
.related-list li {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}
.related-list li:hover { background: var(--surface-alt); }
.related-list a {
    display: block;
    color: var(--text);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 4px;
}
.related-list a:hover { color: var(--accent); }
.related-list time { font-size: 0.75rem; color: var(--text-muted); }

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5);
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.page-btn:hover:not(.disabled) { border-color: var(--accent); color: var(--accent); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

.page-numbers { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.page-num:hover { border-color: var(--accent); color: var(--accent); }
.page-num.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); font-weight: 700; }
.page-dots { padding: 0 4px; color: var(--text-muted); }

.load-more-wrap { text-align: center; padding: var(--space-5); }

/* AD SLOTS */
.ad-slot {
    margin: var(--space-4) 0;
    padding: var(--space-3);
    background: var(--surface-alt);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.ad-slot img { margin: 0 auto; }
.ad-label {
    font-size: 0.6875rem;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.ad-header, .ad-footer { max-width: 728px; margin-left: auto; margin-right: auto; }
.ad-sidebar { max-width: 300px; margin-left: auto; margin-right: auto; }

/* FOOTER */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0 var(--space-6);
    margin-top: var(--space-8);
    position: relative;
    z-index: 1;
}
.site-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 60%, transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-7);
    padding-top: var(--space-2);
}
@media (max-width: 968px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-col-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); } .footer-col-brand { grid-column: auto; } }

.footer-title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--space-2); color: var(--text); }
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.footer-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; max-width: 36em; }
.footer-subtitle {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--accent-light);
    display: inline-block;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--accent); }

/* Kategoriler uzun olabildigi icin 2 sutuna yayilir, boylece komsu
   sutunla (Sayfalar) kiyaslandiginda asiri uzun/tek sutunlu gorunmez */
.footer-links-columns {
    display: block;
    columns: 2;
    column-gap: var(--space-5);
}
.footer-links-columns li { break-inside: avoid; margin-bottom: 9px; }

/* Sitemap/RSS gibi teknik linkler ikincil sayilir, daha kucuk/soluk */
.footer-links-utility { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); gap: 6px; }
.footer-links-utility a { font-size: 0.8125rem; opacity: 0.75; }

.footer-bottom {
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
    text-align: center;
}

.footer-stats-inline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-5);
    font-size: 0.8125rem;
    color: var(--text-muted);
}
.footer-stats-inline strong { color: var(--text); font-weight: 700; }

.footer-text { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }
.footer-text a { color: var(--accent); }

.footer-alt { font-size: 0.8125rem; color: var(--text-muted); }
.footer-alt a { color: var(--text-muted); margin: 0 6px; }
.footer-alt a:hover { color: var(--accent); }

/* SCROLL TOP BUTTON */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    border: none;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(var(--accent-rgb), 0.5);
}

@media (max-width: 640px) {
    .scroll-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

/* PROFILE */
.profile-header { display: flex; gap: var(--space-6); padding: var(--space-6); align-items: flex-start; }
.profile-avatar img { width: 96px; height: 96px; border-radius: 50%; background: var(--accent-light); }
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-3); color: var(--text); }
.profile-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.profile-tag { display: inline-block; padding: 4px 12px; background: var(--surface-alt); border-radius: var(--radius-full); font-size: 0.8125rem; color: var(--text-muted); }
.profile-bio { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-3); }
.profile-interests { margin-bottom: var(--space-3); font-size: 0.875rem; color: var(--text-muted); }
.interest-tag { display: inline-block; padding: 2px 10px; background: var(--accent-light); color: var(--accent); border-radius: var(--radius-full); font-size: 0.75rem; margin-left: 4px; }

.profile-stats { display: flex; gap: var(--space-5); flex-wrap: wrap; padding-top: var(--space-4); border-top: 1px solid var(--border); margin-top: var(--space-4); }
.profile-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-stat strong { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.profile-stat span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 640px) {
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .profile-stats { justify-content: center; }
}

.posts-mini-list { padding: var(--space-3); }
.post-mini { padding: var(--space-4); border-bottom: 1px solid var(--border); }
.post-mini:last-child { border-bottom: none; }
.post-mini-thread { display: block; font-weight: 600; color: var(--text); font-size: 0.9375rem; margin-bottom: 6px; }
.post-mini-thread:hover { color: var(--accent); }
.post-mini-content { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 6px; }
.post-mini-time { font-size: 0.75rem; color: var(--text-subtle); }

/* TOAST */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: var(--bg);
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    opacity: 0;
    transition: all 0.25s ease;
    font-size: 0.9375rem;
    max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ERROR PAGES */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: var(--space-4); text-align: center; }
.error-container { max-width: 480px; background: var(--surface); padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.error-code { font-size: 4.5rem; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: var(--space-4); letter-spacing: -0.03em; }
.error-container h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-3); color: var(--text); }
.error-container p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; margin-bottom: var(--space-6); }
.error-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* SEARCH INLINE */
.search-inline { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.search-inline input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
}
.search-inline input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.search-summary { padding: var(--space-4) var(--space-5); font-size: 0.9375rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }

/* RESPONSIVE */
@media (max-width: 480px) {
    .container { padding: 0 var(--space-3); }
    .card { border-radius: var(--radius-sm); }
    .card-header { padding: var(--space-3) var(--space-4); }
    .thread-detail-header,
    .thread-detail-content,
    .reply-form,
    .page-content { padding: var(--space-4); }
    .thread-detail-title { font-size: 1.375rem; }
    .hero-title { font-size: 1.375rem; }
    .page-title { font-size: 1.375rem; }
    .post-item { padding: var(--space-4); }
    .footer-grid { gap: var(--space-5); }
}

/* ============================================================
   MOBILE MENU (968px ve altı) — Z-INDEX EN ÜST
   ============================================================ */
@media (max-width: 968px) {
    .mobile-toggle { 
        display: flex;
        z-index: 10001;
        position: relative;
    }
    
    .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    background: var(--surface);
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.site-nav.open {
    display: block;
    height: calc(100vh - var(--header-height));
    max-height: calc(100vh - var(--header-height));
    background: var(--surface);
    opacity: 1;
    visibility: visible;
}
    
    .site-nav.open { 
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        overflow: visible;
        background: var(--surface);
        padding: var(--space-2) 0;
        list-style: none;
    }
    
    .nav-list li {
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        list-style: none;
        width: 100%;
    }
    
    .nav-list li:last-child { 
        border-bottom: none; 
    }
    
    .nav-list a {
        display: block;
        padding: 16px 20px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text);
        background: var(--surface);
        border-radius: 0;
        white-space: normal;
    }
    
    .nav-list a:hover {
        background: var(--accent-light);
        color: var(--accent);
    }
    
    .nav-more { 
        width: 100%;
        background: var(--surface);
    }
    
    .nav-more-btn {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: 1rem;
        color: var(--text);
        background: var(--surface);
        border-radius: 0;
    }
    
    .nav-more-menu {
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
        animation: none;
        background: var(--surface);
        min-width: auto;
    }
    
    .nav-more-menu a {
        display: block;
        padding: 16px 20px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text);
        background: var(--surface);
        border-radius: 0;
        white-space: normal;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-more-menu a:last-child {
        border-bottom: none;
    }
}

@media print {
    .site-header, .site-footer, .thread-side, .thread-actions,
    .ad-slot, .pagination, .reply-form, .scroll-top { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ccc; }
    body { background: white; color: black; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================================
   KIMLER CEVRIMICI (vBulletin tarzi)
   ============================================================ */
.online-list-vb {
    list-style: none;
    padding: 8px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.online-vb-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}
.online-vb-item:hover {
    background: var(--surface-alt);
}
.online-vb-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
}
.online-vb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.online-vb-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.online-vb-admin .online-vb-name { color: #dc2626; font-weight: 700; }
.online-vb-bot .online-vb-name { color: var(--accent); font-weight: 600; }
.online-vb-bot .online-vb-link:hover .online-vb-name { text-decoration: underline; }
.online-vb-user .online-vb-name { color: #16a34a; font-weight: 600; }
.online-vb-guest .online-vb-name { color: var(--text-muted); font-style: italic; font-weight: 400; }
[data-theme="dark"] .online-vb-admin .online-vb-name { color: #f87171; }
[data-theme="dark"] .online-vb-user .online-vb-name { color: #22c55e; }

/* ============================================================
   ADMIN ACTION BUTONLARI
   ============================================================ */
.admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}

.admin-sep {
    color: var(--text-subtle);
    margin: 0 4px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid;
    font-family: inherit;
}

.admin-btn-delete {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}
.admin-btn-delete:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
}

.admin-btn-lock {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #78350f;
}
.admin-btn-lock:hover {
    background: #ca8a04;
    border-color: #ca8a04;
    color: white;
}

.admin-btn-sm-delete {
    background: #fee2e2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}
.admin-btn-sm-delete:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
}