:root {
    /* vB teması ikonları — inline SVG (FontAwesome bağımlılığı yok, CSP uyumlu) */
    --fc-ico-comments: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>');
    --fc-ico-comment: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>');
    --fc-ico-folder: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/></svg>');
}

/* ============================================================
   Poensis — IceMaster teması (modern flat forum görünümü)
   Konum: public_html/templates/icemaster/theme.css
   style.css'in ÜSTÜNE biner; sadece görünümü değiştirir.
   Renkler tema değişkenlerinden gelir (dark/white otomatik).
   ============================================================ */

/* --- Kategori: belirgin vB başlık çubuğu --- */
.fc-category {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}

.fc-cat-head {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
    position: relative;
}
/* Kategori başlığı sol ucunda ince açık şerit — vB vurgusu */
.fc-cat-head::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(255,255,255,.5);
}
.fc-cat-head h2 {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: .01em !important;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.fc-cat-toggle {
    color: rgba(255,255,255,.85);
    cursor: pointer;
    font-size: 13px;
    order: 2;
    margin-left: auto;
}

.fc-cat-body { padding: 0; }

/* --- Forum satırı: tablo hissi, ince ayraçlar --- */
.fc-forum-row {
    display: grid;
    grid-template-columns: 44px 1fr 130px 200px;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    transition: background .12s;
}
.fc-forum-row:last-child { border-bottom: 0; }
.fc-forum-row {
    position: relative;
    border-left: 3px solid transparent;
}
.fc-forum-row:hover {
    background: var(--surface-2);
    border-left-color: var(--accent);
}

/* --- Sol ikon: yuvarlak, FontAwesome yorum baloncuğu --- */
.fc-forum-icon .fc-icon-circle {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 800;
    font-size: 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.fc-forum-icon .fc-icon-circle::before {
    content: "";
    width: 18px; height: 18px;
    background: currentColor;
    -webkit-mask: var(--fc-ico-comments) center/contain no-repeat;
            mask: var(--fc-ico-comments) center/contain no-repeat;
}
/* Okunmamış vurgusu için nokta */
.fc-forum-icon .fc-icon-circle::after {
    content: "";
    position: absolute;
    right: -2px; bottom: -2px;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--surface);
}

/* --- Forum adı + açıklama --- */
.fc-forum-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color .12s;
}
.fc-forum-title:hover { color: var(--accent-dark); text-decoration: underline; }
.fc-forum-desc {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.45;
}

/* --- Alt forumlar: satır içi, ayraçlı --- */
.fc-subforums {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    align-items: center;
}
.fc-subforum {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    padding: 2px 9px;
    position: relative;
}
.fc-subforum::before {
    content: "";
    display: inline-block;
    width: 11px; height: 11px;
    margin-right: 5px;
    vertical-align: -1px;
    background: currentColor;
    opacity: .55;
    -webkit-mask: var(--fc-ico-folder) center/contain no-repeat;
            mask: var(--fc-ico-folder) center/contain no-repeat;
}
.fc-subforum:hover { color: var(--accent); }

/* --- Konu/mesaj sayaçları: ortalı sütun --- */
.fc-forum-stats {
    display: grid;
    grid-template-columns: auto auto;   /* sayı | etiket */
    grid-auto-rows: min-content;
    column-gap: 6px;
    row-gap: 2px;
    justify-content: center;
    align-content: center;
    line-height: 1.3;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    padding: 0 10px;
}
/* Sayılar sağa, etiketler sola hizalı — "0 Konu" / "0 Mesaj" satırları */
.fc-forum-stats .fc-stat-num {
    font-size: 14px; font-weight: 700; color: var(--text);
    text-align: right;
}
.fc-forum-stats .fc-stat-label {
    font-size: 11.5px; color: var(--muted);
    text-transform: none; letter-spacing: 0;
    text-align: left; align-self: center;
}

/* --- Son mesaj sütunu --- */
.fc-forum-last { font-size: 12.5px; line-height: 1.4; }
.fc-last-title {
    display: block;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-last-title:hover { color: var(--accent); }
.fc-last-title::before {
    content: "";
    display: inline-block;
    width: 12px; height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
    background: var(--muted);
    -webkit-mask: var(--fc-ico-comment) center/contain no-repeat;
            mask: var(--fc-ico-comment) center/contain no-repeat;
}
.fc-last-meta { color: var(--muted); font-size: 11.5px; }
.fc-last-meta a { color: var(--accent); text-decoration: none; }
.fc-last-empty { color: var(--muted); font-style: italic; font-size: 12px; }

/* --- Kategori başlık satırı (sütun etiketleri) --- */
.fc-category::before {
    content: none;
}

/* --- Mobil: sayaç ve son mesajı gizle/sıkıştır --- */
@media (max-width: 720px) {
    .fc-forum-row { grid-template-columns: 40px 1fr; }
    .fc-forum-stats, .fc-forum-last { display: none; }
}

/* --- Genel vB dokunuşu: butonlar biraz daha köşeli-flat --- */
.btn-primary {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* ============================================================
   IceMaster düzeni: sol ve sağ menüleri kaldır, tam genişlik
   Klasik forum görünümü — üstte yatay menü, altta forum tablosu
   ============================================================ */

/* Layout'u tek sütun yap — sol sidebar sütunu kalkar */
.fc-layout { grid-template-columns: 1fr !important; }
.fc-content { min-width: 0; }

/* Sağ "Gündem" sütunu gizle, forum listesi tam genişlik */
.fc-home-trend { display: none !important; }
.fc-home-layout { grid-template-columns: 1fr !important; }

/* --- Sidebar'ı ÜST YATAY MENÜYE çevir (vB navbar) --- */
/* Sidebar artık sabit değil, içeriğin üstünde yatay bir şerit */
.fc-sidebar {
    position: static !important;
    flex-direction: row !important;
    width: 100%;
    margin-bottom: 16px;
    gap: 0 !important;
    grid-column: 1 / -1;   /* tek sütun grid'de tam genişlik */
}
/* Ana navigasyonu yatay çubuk yap */
.fc-sidenav {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px !important;
    width: 100%;
    padding: 6px 8px !important;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.fc-sidenav .fc-sidelink {
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 600;
    padding: 8px 12px !important;
    border-radius: 7px;
    white-space: nowrap;
}
.fc-sidenav .fc-sidelink:hover { background: rgba(255,255,255,.15) !important; }
.fc-sidenav .fc-sidelink.active { background: rgba(255,255,255,.22) !important; color: #fff !important; }
.fc-sidenav .fc-sideicon { color: rgba(255,255,255,.85) !important; }
.fc-sidenav .fc-side-sep { display: none; }   /* dikey ayraçlar yatayda gereksiz */
.fc-sidenav .fc-side-badge { background: #fff; color: var(--accent); }

/* Sidebar'ın alt kutuları (online yöneticiler, istatistik, reklam) gizle */
.fc-sidebar .fc-side-cats,
.fc-sidebar .fc-ad-sidebar { display: none !important; }

/* Mobilde menü yine dikey/taşabilir */
@media (max-width: 720px) {
    .fc-sidenav { overflow-x: auto; flex-wrap: nowrap; }
}

/* --- "Merhaba Ziyaretçi 👋" karşılama bloğunu gizle (vB'de yok) --- */
.fc-welcome { display: none !important; }

/* ============================================================
   IceMaster header (iki satır) — yalnızca bu tema
   Üst: logo + arama + aksiyonlar | Alt: yatay menü çubuğu
   ============================================================ */

/* --- Üst bar: köşeleri yumuşat, tam genişlik --- */
.fc-topbar {
    border-radius: 12px !important;
    padding: 14px 20px !important;
    margin-bottom: 0 !important;
    box-shadow: var(--shadow-sm) !important;
    gap: 18px !important;
}

/* Marka yazısı biraz daha oturaklı */
.fc-topbar .fc-brand-mark {
    background: linear-gradient(140deg, var(--accent), var(--accent-dark)) !important;
    border-radius: 10px !important;
}
.fc-topbar .fc-brand-text { font-size: 21px !important; }

/* Arama kutusu geniş, hafif zeminli */
.fc-topsearch {
    background: var(--surface-2) !important;
    border-radius: 10px !important;
    border: 1px solid var(--border) !important;
}

/* --- Menü çubuğu: üst bara bitişik gradient sekme çubuğu --- */
/* Sidebar sarmalayıcı üst barla arasında boşluk kalmasın */
.fc-sidebar {
    margin-top: 10px !important;
    margin-bottom: 18px !important;
}
/* IceMaster imzası: gradient dolgulu koyu sekme çubuğu */
.fc-sidenav {
    background: linear-gradient(180deg, var(--accent), var(--accent-dark)) !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 5px 6px !important;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
/* Sekme linkleri: beyaz metin, yumuşak hover kutusu */
.fc-sidenav .fc-sidelink {
    color: rgba(255,255,255,.92) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    transition: background .14s, color .14s !important;
}
.fc-sidenav .fc-sidelink:hover {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}
/* Aktif sekme: beyaz dolgulu "hap", accent metin — vB'nin seçili sekmesi */
.fc-sidenav .fc-sidelink.active {
    background: var(--surface) !important;
    color: var(--accent) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.18) !important;
}
.fc-sidenav .fc-sideicon { color: rgba(255,255,255,.8) !important; }
.fc-sidenav .fc-sidelink:hover .fc-sideicon { color: #fff !important; }
.fc-sidenav .fc-sidelink.active .fc-sideicon { color: var(--accent) !important; }
.fc-sidenav .fc-side-badge { background: #fff !important; color: var(--accent) !important; }

/* Premium: altın sarısı — çubukta gerçekten parlasın */
.fc-sidenav .fc-sidelink-premium { color: #ffe08a !important; }
.fc-sidenav .fc-sidelink-premium .fc-sideicon { color: #ffd54a !important; }
.fc-sidenav .fc-sidelink-premium:hover { background: rgba(255,215,74,.18) !important; }
.fc-sidenav .fc-sidelink-premium.active { color: #b8860b !important; }
.fc-sidenav .fc-sidelink-premium.active .fc-sideicon { color: #b8860b !important; }

/* ============================================================
   Üst menüyü sadeleştir (R10 gibi): konu akışında/sağ ikonlarda
   zaten olan öğeleri menüden çıkar.
   ============================================================ */
/* IceMaster menüsü SADE: yalnızca Anasayfa + Blog kalır.
   Diğer her şey (Etiketler, Kaynaklar, Gruplar, Ticaret Puanları,
   Üyeler, Premium, kişisel öğeler) sağ üst AVATAR menüsüne taşındı. */
.fc-sidenav .fc-sidelink[data-nav="feed"],
.fc-sidenav .fc-sidelink[data-nav="unans"],
.fc-sidenav .fc-sidelink[data-nav="pm"],
.fc-sidenav .fc-sidelink[data-nav="subs"],
.fc-sidenav .fc-sidelink[data-nav="invites"],
.fc-sidenav .fc-sidelink[data-nav="tags"],
.fc-sidenav .fc-sidelink[data-nav="res"],
.fc-sidenav .fc-sidelink[data-nav="groups"],
.fc-sidenav .fc-sidelink[data-nav="trade"],
.fc-sidenav .fc-sidelink[data-nav="members"],
.fc-sidenav .fc-sidelink[data-nav="premium"] {
    display: none !important;
}
