/* ==========================================================================
   1. DEĞİŞKENLER, TEMA VE TEMEL SIFIRLAMA
   ========================================================================== */

:root,
html[data-theme="light"] {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --header-height: 62px;
    --bottom-nav-height: 64px;
}

html[data-theme="dark"] {
    --bg: #0b1120;
    --surface: #1e293b;
    --surface-alt: #162032;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.15);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --bg: #0b1120;
        --surface: #1e293b;
        --surface-alt: #162032;
        --text: #f1f5f9;
        --text-muted: #94a3b8;
        --border: #334155;
        --primary: #3b82f6;
        --primary-hover: #60a5fa;
        --primary-soft: rgba(59, 130, 246, 0.15);
        --shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   2. ÜST BAŞLIK (HEADER) VE NAVİGASYON
   ========================================================================== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-logo i {
    color: var(--primary);
    font-size: 1.25rem;
}

.header-search {
    flex: 1;
    max-width: 310px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 0.45rem 0.9rem 0.45rem 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 0.88rem;
}
.header-search i {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   3. BUTONLAR VE ROZETLER (BADGES)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.48rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.86rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-hover); color: #ffffff; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface-alt); border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-success { background: var(--success); color: #ffffff; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.79rem; }

.btn-fav {
    background: #64748b;
    color: #ffffff !important;
}
.btn-fav.active {
    background: #ec4899 !important;
    border-color: #db2777 !important;
}

.btn-like {
    padding: 0.3rem 0.75rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}
.btn-like.liked {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.14rem 0.55rem;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
}
.badge-pin { background: #fef3c7; color: #b45309; }
.badge-lock { background: #fee2e2; color: #b91c1c; }
.badge-cat { background: var(--primary-soft); color: var(--primary); }
.badge-prefix { color: #ffffff; font-weight: 700; }
.badge-support-solved { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-support-unsolved { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.badge-support-pending { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }

/* ==========================================================================
   4. ANA DÜZEN, YAN MENÜ (SIDEBAR) VE GENEL KARTLAR
   ========================================================================== */

.main-wrapper {
    flex: 1;
    padding: 1.5rem 0 2rem;
}
.forum-layout {
    display: grid;
    grid-template-columns: 255px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.sidebar-title {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.7rem;
    padding: 0 0.4rem;
}
.cat-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.cat-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.52rem 0.65rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 0.91rem;
}
.cat-nav-link:hover, .cat-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary);
}
.cat-nav-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cat-count {
    font-size: 0.74rem;
    background: var(--surface-alt);
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.card-header {
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.card-title {
    font-size: 1.08rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-body {
    padding: 1.25rem;
}

.announcement-card {
    padding: 0.95rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.announcement-card.type-warning { border-left-color: var(--warning); }
.announcement-card.type-danger { border-left-color: var(--danger); }
.announcement-card.type-success { border-left-color: var(--success); }

/* ==========================================================================
   5. KONU LİSTESİ (ANA SAYFA VE KATEGORİ GÖRÜNÜMÜ)
   ========================================================================== */

.thread-list {
    display: flex;
    flex-direction: column;
}
.thread-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s ease;
}
.thread-item:last-child {
    border-bottom: none;
}
.thread-item:hover {
    background: var(--surface-alt);
}

.thread-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}
.thread-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thread-main {
    flex: 1;
    min-width: 0;
}
.thread-title-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.22rem;
}
.thread-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}
.thread-link:hover {
    color: var(--primary);
}
.thread-excerpt {
    font-size: 0.86rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.thread-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.thread-stats {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.83rem;
    align-self: center;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-weight: 600;
}

/* ==========================================================================
   6. KONU VE MESAJ ALANI (THREAD VIEW)
   ========================================================================== */

.thread-wrapper,
.thread-view-wrapper {
    max-width: 1060px;
    margin: 0 auto;
}

/* Başlık ve Sayaç Şeridi (0 • 36) */
.thread-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.thread-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.thread-counter-badge {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Breadcrumb */
.thread-breadcrumb {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}
.thread-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.thread-breadcrumb a:hover {
    color: var(--primary);
}
.thread-breadcrumb .bc-sep {
    opacity: 0.5;
}
.thread-breadcrumb .bc-current {
    color: var(--text);
    font-weight: 600;
}

/* Açılır Moderasyon Çubuğu */
.thread-mod-toolbar {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
}
.mod-toolbar-select {
    width: auto;
    padding: 0.28rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 500;
}
.mod-dropdown-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.mod-main-select {
    font-weight: 700;
    color: var(--primary);
    border-color: var(--primary);
    background: var(--surface);
}
.mod-action-sub {
    align-items: center;
    gap: 0.35rem;
    animation: fadeIn 0.15s ease-in;
}
.mod-action-sub form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.mod-toolbar-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.mod-toolbar-right .btn.active {
    background: var(--primary);
    color: #ffffff !important;
}

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

/* Üst Eylemler */
.thread-top-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0.75rem 0 1.25rem;
}

/* Mesaj Kartı */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Koyu Üst Bar (#No ve A/A+ Punto Kontrolleri) */
.post-header {
    background: #394050;
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
}
.post-header a {
    color: #cbd5e1;
}
.post-header .tool-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    padding: 0.12rem 0.45rem !important;
    font-size: 0.74rem !important;
    border-radius: 3px !important;
    cursor: pointer;
}
.post-header .tool-btn:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}
/* 2 Sütunlu Mesaj Izgarası (Geniş Ekran) */
.post-layout-grid {
    display: grid;
    grid-template-columns: 215px 1fr;
    min-height: 0;
}

/* Sol Profil Sütunu */
.post-author-row {
    padding: 1.25rem 0.9rem;
    background: var(--surface-alt);
    border-right: 1px solid var(--border);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}
.post-author-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    width: 100%;
}
.post-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.post-avatar-wrap img,
.post-avatar-wrap .avatar-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.post-avatar-wrap .avatar-initial {
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 700;
}
.online-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
}
.offline-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #94a3b8;
    border: 2px solid #ffffff;
    border-radius: 50%;
}
.post-author-meta {
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.post-author-meta .author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    word-break: break-word;
    text-align: center;
}

/* Sol Profil Sütunundaki Mini İstatistik Tablosu */
.post-mini-stats {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    font-size: 0.76rem;
    width: 100%;
    line-height: 1.5;
}
.mini-stat-line {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
.mini-stat-line span:first-child {
    color: var(--text-muted);
}
.mini-stat-line span:last-child {
    font-weight: 700;
    color: var(--text);
}

/* Sağ Mesaj İçerik Sütunu */
.post-content-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
}
.post-content-column .post-body {
    flex: 1;
}
/* ==========================================================================
   7. EN İYİ CEVAP (SADECE MESAJ ALANINI KAPSAYAN TEMİZ VURGU)
   ========================================================================== */

.post-body.is-best-answer-body {
    border-left: 4px solid #16a34a !important;
    background: rgba(22, 163, 74, 0.05);
}
html[data-theme="dark"] .post-body.is-best-answer-body {
    background: rgba(22, 163, 74, 0.08);
}
.best-answer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}
html[data-theme="dark"] .best-answer-badge {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.3);
}

/* ==========================================================================
   8. MESAJ İÇERİĞİ, LİSTELER VE REAKSİYON ŞERİDİ
   ========================================================================== */

.post-body {
    padding: 1.5rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    overflow-wrap: break-word;
}
.post-body p {
    margin-bottom: 0.95rem;
}
.post-body p:last-child {
    margin-bottom: 0;
}
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
    margin: 1.35rem 0 0.65rem;
    font-weight: 700;
    color: var(--text);
}
.post-body ul {
    list-style-type: disc !important;
    margin: 0.85rem 0 1rem 1.85rem !important;
    padding-left: 0.5rem !important;
}
.post-body ol {
    list-style-type: decimal !important;
    margin: 0.85rem 0 1rem 1.85rem !important;
    padding-left: 0.5rem !important;
}
.post-body li {
    margin-bottom: 0.5rem !important;
    line-height: 1.65 !important;
}
.post-body blockquote:not(.twitter-tweet) {
    border-left: 4px solid var(--primary);
    background: var(--surface-alt);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0.85rem 0;
    color: var(--text-muted);
}

/* Reaksiyon (Beğeni / Rep) ve Paylaşım */
.post-reaction-bar {
    padding: 0.65rem 1.25rem;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
}
.reaction-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.reaction-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.share-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 0.88rem;
}

/* Alt Aksiyon Butonları */
.post-action-footer {
    padding: 0.6rem 1.25rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   9. EDİTÖR ARAÇ ÇUBUĞU, GÖMÜLÜ İÇERİK (EMBED) VE DOSYA EKLERİ
   ========================================================================== */

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.5rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    align-items: center;
}
.editor-toolbar + textarea.form-control {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.tool-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.32rem 0.58rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.12s ease;
}
.tool-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.emoji-picker-bar {
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: none;
}
.emoji-picker-bar.open {
    display: flex;
}
.emoji-btn {
    background: transparent;
    border: 1px solid transparent;
    font-size: 1.2rem;
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
    cursor: pointer;
}
.emoji-btn:hover {
    background: var(--surface-alt);
    border-color: var(--border);
}

.preview-box {
    display: none;
    margin-top: 0.85rem;
    padding: 1rem 1.25rem;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
}
.preview-box.open {
    display: block;
}

.bb-spoiler {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    margin: 0.75rem 0;
    overflow: hidden;
}
.bb-spoiler summary {
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--primary);
}
.bb-spoiler-body {
    padding: 0.75rem 0.9rem;
    border-top: 1px solid var(--border);
}

.md-code {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.86rem;
    margin: 0.85rem 0;
}
.md-inline-code {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.86em;
}
.md-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 0.75rem auto;
}

.math-block {
    margin: 1rem 0;
    padding: 0.75rem;
    overflow-x: auto;
    text-align: center;
}

/* Auto-Embed */
.embed-center-wrap {
    width: 100%;
    max-width: 680px;
    margin: 1.25rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.embed-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}
@supports not (aspect-ratio: 16 / 9) {
    .embed-responsive { padding-bottom: 56.25%; height: 0; }
}
.embed-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.embed-caption {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
.embed-x-wrap {
    max-width: 550px;
    width: 100%;
    margin: 1.25rem auto;
    display: flex;
    justify-content: center;
}
.embed-x-wrap .twitter-tweet {
    margin: 0 auto !important;
    width: 100% !important;
}
.embed-media {
    width: 100%;
    display: flex;
    justify-content: center;
}
.embed-media video, .embed-media audio {
    max-width: 100%;
    border-radius: var(--radius-sm);
}
/* Yeni Platform Embed Stilleri (Shorts, Instagram, TikTok, Facebook, Spotify, SoundCloud) */
.embed-responsive.embed-shorts {
    max-width: 340px;
    aspect-ratio: 9 / 16;
    margin: 0 auto;
}
.embed-ig-wrap {
    max-width: 480px;
    width: 100%;
}
.embed-instagram-frame {
    width: 100%;
    min-height: 540px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.embed-tiktok-wrap {
    max-width: 340px;
    width: 100%;
}
.embed-tiktok-frame {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    border: 0;
}
.embed-threads-wrap {
    max-width: 520px;
    width: 100%;
}
.embed-fb-wrap {
    max-width: 500px;
    width: 100%;
}
.embed-fb-frame {
    width: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 8px;
}
.embed-spotify-wrap {
    max-width: 680px;
    width: 100%;
}
.embed-soundcloud-wrap {
    max-width: 680px;
    width: 100%;
}
.embed-soundcloud-frame {
    border-radius: var(--radius-sm);
    border: 0;
}
/* Dosya Ekleri & Misafir Kısıtlaması */
.attachments-box {
    margin: 0 1.25rem 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--surface-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}
.attachments-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.attachment-item:last-child {
    border-bottom: none;
}

.guest-restriction-box {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.restriction-icon {
    font-size: 1.5rem;
    color: var(--primary);
}
.restriction-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

/* ==========================================================================
   10. FORMLAR, BİLDİRİMLER (ALERT), SAYFALAMA VE YARDIMCILAR
   ========================================================================== */

.form-group {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}
.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.94rem;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}
textarea.form-control {
    min-height: 150px;
    resize: vertical;
}
.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid transparent;
}
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.alert-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    z-index: 190;
    transition: transform 0.15s ease;
}
.back-to-top.visible {
    display: flex;
}
.back-to-top:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

/* ==========================================================================
   11. KONUYU OKUYANLAR, REKLAMLAR VE 7 KATMANLI MEGA FOOTER
   ========================================================================== */

/* 1. Konuyu Okuyanlar */
.thread-readers-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 1.25rem 0;
    box-shadow: var(--shadow);
}
.thread-readers-header {
    background: #474b59;
    color: #ffffff;
    padding: 0.65rem 1.15rem;
    font-size: 0.86rem;
    font-weight: 700;
}
.thread-readers-body {
    padding: 0.8rem 1.15rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.thread-readers-body a {
    font-weight: 600;
}

/* 2. Sponsor / Reklam Alanı */
.promo-ads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.1rem 0;
}
.promo-ad-item {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0f172a;
    height: 92px;
    transition: transform 0.15s ease;
}
.promo-ad-item:hover {
    transform: translateY(-2px);
}
.promo-ad-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3. Rastgele Bilgi & Sosyal Medya */
.info-social-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1rem;
    margin: 1.1rem 0 1.5rem;
}
.random-fact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.random-fact-mascot {
    width: 88px;
    min-height: 88px;
    background: var(--surface-alt);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.35rem;
    flex-shrink: 0;
}
.random-fact-text {
    padding: 0.85rem 1.1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.social-follow-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    gap: 1rem;
    box-shadow: var(--shadow);
}
.social-follow-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    white-space: nowrap;
}
.social-follow-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.social-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1rem;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.social-icon-box:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 4, 5, 6, 7. Kurumsal Footer */
.corporate-footer-wrap {
    background: #272a33;
    color: #cbd5e1;
    margin-top: auto;
    border-top: 1px solid #383c47;
    font-size: 0.85rem;
}
.corp-footer-section {
    padding: 1.35rem 0;
    border-bottom: 1px solid #353945;
}

.corp-stats-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr;
    gap: 0.85rem;
}
.corp-stat-box {
    background: #323642;
    border-radius: 6px;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 58px;
}
.corp-stat-icon {
    width: 52px;
    height: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    background: #3b404e;
    flex-shrink: 0;
}
.corp-stat-icon.active-blue {
    background: #1d9bf0;
}
.corp-stat-info {
    padding: 0.5rem 0.85rem;
    line-height: 1.35;
}
.corp-stat-label {
    font-size: 0.78rem;
    color: #94a3b8;
    display: block;
}
.corp-stat-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}
.corp-stat-val a {
    color: #ffffff;
}

.corp-legal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.corp-legal-left {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    flex: 1;
    min-width: 280px;
}
.corp-legal-badge {
    width: 68px;
    height: 68px;
    background: #323642;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.corp-legal-content h4 {
    color: #f1f5f9;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.corp-legal-content p {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
}
.corp-legal-content a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}
.corp-legal-sponsor {
    text-align: right;
}
.corp-sponsor-brand {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}
.corp-sponsor-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

.corp-emails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}
.corp-email-pill {
    background: #323642;
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.corp-email-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
}
.corp-email-addr {
    color: #ffffff !important;
    font-weight: 700;
}

.corp-bottom-bar {
    padding: 1.15rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: #94a3b8;
}
.corp-bottom-bar strong {
    color: #ffffff;
}
.corp-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex-wrap: wrap;
}
.corp-bottom-links a {
    color: #94a3b8;
    font-weight: 500;
}
.corp-bottom-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   12. PROFİL SAYFASI VE İÇ LİNKLEME SEKMELERİ
   ========================================================================== */

.profile-page-wrapper {
    max-width: 1060px;
    margin: 0 auto;
}

.profile-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}
.profile-hero-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.profile-avatar-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.profile-avatar-box {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}
.profile-avatar-box img,
.profile-avatar-box .profile-avatar-letter {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}
.profile-avatar-letter {
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
}
.profile-user-titles h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.35rem 0;
    color: var(--text);
}
.profile-social-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
}
.profile-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}
.profile-social-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.profile-stat-pill {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    text-align: center;
}
.profile-stat-pill .p-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    display: block;
}
.profile-stat-pill .p-stat-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-tab-header {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
}
.profile-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.profile-tab-btn:hover {
    color: var(--primary);
}
.profile-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.profile-tab-btn .tab-count {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.1rem 0.45rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.profile-list-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease;
}
.profile-list-item:hover {
    border-color: var(--primary);
}
.profile-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
}
.profile-item-title-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}
.profile-item-title-link:hover {
    color: var(--primary);
    text-decoration: underline;
}
.profile-item-cat-link {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
}
.profile-item-cat-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.profile-item-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0.4rem 0 0.65rem 0;
}
.profile-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border);
}

/* ==========================================================================
   13. ÜYELİK SÖZLEŞMESİ POPUP (MODAL)
   ========================================================================== */

.ff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.ff-modal-overlay.open {
    display: flex;
}
.ff-modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 8px);
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35);
    animation: ffModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes ffModalPop {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ff-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-alt);
}
.ff-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ff-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s ease;
}
.ff-modal-close-btn:hover {
    color: var(--danger);
}
.ff-modal-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text);
    scroll-behavior: smooth;
}
.ff-modal-body h1, .ff-modal-body h2, .ff-modal-body h3 {
    margin: 1.2rem 0 0.5rem;
    color: var(--text);
    font-weight: 700;
}
.ff-modal-body hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}
.ff-modal-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ff-modal-scroll-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ==========================================================================
   14. YÖNETİM PANELİ VE RESPONSIVE (DUYARLI) MEDYA KURALLARI
   ========================================================================== */

.admin-grid {
    display: grid;
    grid-template-columns: 235px 1fr;
    gap: 1.5rem;
}
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}
.stat-card-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th, .data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.admin-mobile-nav-box {
    display: none;
}
.mobile-cat-chips {
    display: none;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
}
.mobile-cat-chips::-webkit-scrollbar {
    display: none;
}
.mobile-bottom-nav {
    display: none;
}

/* 920px Altı */
@media (max-width: 920px) {
    .promo-ads-grid,
    .info-social-row,
    .corp-stats-grid,
    .corp-emails-grid {
        grid-template-columns: 1fr;
    }
    .corp-legal-sponsor {
        text-align: left;
    }
    .corp-sponsor-brand {
        justify-content: flex-start;
    }
}

/* 860px Altı (Admin ve Forum Sütun Esnemesi) */
@media (max-width: 860px) {
    .desktop-sidebar {
        display: none !important;
    }
    .admin-mobile-nav-box {
        display: block !important;
    }
    .admin-grid {
        display: block !important;
    }
    .mobile-cat-chips {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        white-space: normal !important;
        gap: 0.4rem !important;
        margin-bottom: 0.85rem !important;
    }
    .mobile-cat-chips .btn {
        flex-shrink: 0 !important;
        font-size: 0.8rem !important;
        padding: 0.35rem 0.65rem !important;
        border-radius: 20px !important;
    }
    .stat-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
}
/* 820px Altı (Mobil Alt Bar ve Forum Düzeni) */
@media (max-width: 820px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    }
    .post-layout-grid {
        display: block;
    }
    .post-author-row {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0.85rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }
    .post-author-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: auto;
        gap: 0.85rem;
    }
    .post-avatar-wrap {
        width: 48px;
        height: 48px;
    }
    .post-author-meta {
        align-items: flex-start;
    }
    .post-mini-stats {
        width: auto;
        min-width: 180px;
    }
    .forum-layout, .stats-center-grid {
        grid-template-columns: 1fr;
    }
    .header-search, .desktop-only {
        display: none !important;
    }
    .main-wrapper {
        padding: 0.85rem 0 1.25rem;
    }
    .container {
        padding: 0 0.65rem;
    }
    .thread-item {
        padding: 0.85rem 0.9rem;
    }
    .thread-stats {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.75rem;
    }
    .back-to-top {
        bottom: calc(var(--bottom-nav-height) + 1rem);
        right: 1rem;
    }
    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-nav-height);
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
        z-index: 200;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .mob-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 600;
    }
    .mob-nav-item i {
        font-size: 1.15rem;
    }
    .mob-nav-item.active, .mob-nav-item:hover {
        color: var(--primary);
    }
    .mob-nav-fab {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: var(--primary);
        color: #fff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
        margin: 0 auto;
    }
}

/* 768px Altı (Moderasyon Çubuğu) */
@media (max-width: 768px) {
    .thread-mod-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .mod-dropdown-wrap,
    .mod-action-sub,
    .mod-action-sub form {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .mod-toolbar-select {
        width: 100% !important;
        max-width: 100% !important;
    }
    .mod-toolbar-right {
        margin-left: 0;
        justify-content: flex-end;
        padding-top: 0.35rem;
        border-top: 1px dashed var(--border);
    }
}
/* ==========================================================================
   FAVORİYE EKLENEN KONULARIN DİZİNDE AÇIK MAVİ VURGULANMASI
   ========================================================================== */
.thread-item.is-favorited-thread {
    background: #eff6ff !important;
    border-left: 3px solid #3b82f6 !important;
}
.thread-item.is-favorited-thread:hover {
    background: #dbeafe !important;
}

html[data-theme="dark"] .thread-item.is-favorited-thread {
    background: rgba(59, 130, 246, 0.15) !important;
    border-left: 3px solid #60a5fa !important;
}
html[data-theme="dark"] .thread-item.is-favorited-thread:hover {
    background: rgba(59, 130, 246, 0.22) !important;
}

/* ==========================================================================
   MESAJ DÜZENLEME NOTU
   ========================================================================== */
.post-edit-notice {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-right: auto;
    user-select: none;
    padding: 0.2rem 0;
}
.post-edit-notice i {
    color: var(--primary, #2563eb);
    font-size: 0.82rem;
}
.post-edit-notice strong {
    color: var(--text, #1e293b);
    font-weight: 600;
}
.post-edit-notice .edit-notice-sep {
    opacity: 0.5;
}
.post-edit-notice .edit-notice-reason {
    color: var(--text, #1e293b);
}
.post-edit-notice .edit-notice-reason em {
    font-style: italic;
    color: var(--text-muted, #64748b);
}
.edit-reason-field-wrap {
    margin-top: 0.85rem;
}
.edit-reason-field-wrap label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   KOD KOPYALAMA BUTONU
   ========================================================================== */
.code-block-wrapper {
    position: relative;
    margin: 0.85rem 0;
}
.code-block-wrapper .md-code {
    margin: 0;
}
.code-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.25rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
}
.code-copy-btn:hover {
    background: rgba(37, 99, 235, 0.85);
    color: #ffffff;
    border-color: rgba(37, 99, 235, 1);
}
.code-copy-btn.copied {
    background: rgba(22, 163, 74, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(22, 163, 74, 1) !important;
}
/* ==========================================================================
   MESAJ METİN BOYUTLANDIRICI (A- / A / A+)
   ========================================================================== */
.post-font-resizer {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    margin-right: 0.5rem;
}
.post-font-resizer .tool-btn {
    padding: 0.15rem 0.45rem !important;
    font-size: 0.75rem !important;
}
/* ==========================================================================
   GÜVENLİ HARİCİ BAĞLANTI YÖNETİCİSİ & ÇIKIŞ UYARISI
   ========================================================================== */
.external-link-icon {
    font-size: 0.72em;
    margin-left: 0.25rem;
    opacity: 0.65;
    display: inline-block;
    vertical-align: baseline;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
a:hover .external-link-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}
#flatRedirectModal .ff-modal-card {
    max-width: 490px;
}
#flatRedirectTargetUrl {
    background: var(--surface-alt, #f8fafc);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--border, #e2e8f0);
    word-break: break-all;
    font-family: ui-monospace, monospace;
    font-size: 0.84rem;
    color: var(--primary, #2563eb);
    margin: 0.65rem 0;
    max-height: 90px;
    overflow-y: auto;
}

/* ==========================================================================
   BİLDİRİM BALONU (TOAST), SON MESAJ İKONU & @MENTION ARAYÜZÜ
   ========================================================================== */
.stat-last-link {
    color: var(--text-muted);
    transition: all 0.15s ease;
}
.stat-last-link:hover {
    color: #ffffff !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.ff-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    padding: 0.65rem 1.15rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10050;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.ff-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.mention-autocomplete-box {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 170px;
    max-width: 260px;
    z-index: 1000;
    overflow: hidden;
    display: none;
}
.mention-item {
    padding: 0.45rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.1s ease;
}
.mention-item:hover, .mention-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ==========================================================================
   ANKET (POLL) BİLEŞENİ VE OY KULLANMA STİLLERİ
   ========================================================================== */
.poll-creator-details {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    overflow: hidden;
}
.poll-creator-details summary {
    padding: 0.65rem 0.95rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.poll-creator-body {
    padding: 0.85rem 0.95rem;
    border-top: 1px dashed var(--border);
    background: var(--surface);
}

.poll-card {
    border-left: 4px solid var(--primary) !important;
    margin-bottom: 1.25rem;
}
.poll-header {
    background: var(--surface-alt);
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.poll-header-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.poll-header-title i {
    color: var(--primary);
}
.poll-body {
    padding: 1.1rem 1.25rem;
}

.poll-vote-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.poll-vote-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.12s ease;
}
.poll-vote-label:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}
.poll-vote-label input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.poll-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.poll-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.poll-result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 600;
}
.poll-result-text {
    color: var(--text);
}
.poll-result-stats {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.poll-result-stats strong {
    color: var(--primary);
}
.poll-progress-wrap {
    height: 10px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.poll-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    transition: width 0.4s ease;
}
/* Onaylı Rozet */
.author-name, .profile-user-titles h1 {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: -2px; /* Ad ile rozet arasındaki mesafe */
}

.verified-badge {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    transform: translateY(1px); /* Dikeyde milimetrik olarak tam merkeze hizalama */
}

.verified-badge svg {
    width: 0.95em;
    height: 0.95em;
}