/* ==========================================================================
   Ferdi. Forum & Resource Manager - XenForo v2.3 & TRXF Stilleri
   Açık Mod: #0f578a (Koyu Mavi) / Koyu Mod: #0a1c29 (Gece Mavisi)
   ========================================================================== */

:root {
    --xf-header-light: #0f578a;
    --xf-header-dark: #0a1c29;
    --xf-accent: #2563eb;
    --xf-orange: #f2994a;
    --xf-gold: #f59e0b;
    --xf-purple: #8b5cf6;
    --xf-green: #10b981;
}

/* Light Theme Variables */
html:not(.dark) {
    --xf-bg: #f4f6f9;
    --xf-surface: #ffffff;
    --xf-surface-alt: #f8fafc;
    --xf-border: #e2e8f0;
    --xf-border-strong: #cbd5e1;
    --xf-text: #1e293b;
    --xf-text-muted: #64748b;
    --xf-node-hover: #f1f5f9;
    --xf-header-bg: #0f578a;
    --xf-nav-bg: #0c4a75;
    --xf-subnav-bg: #093c60;
}

/* Dark Theme Variables */
html.dark {
    --xf-bg: #0d151d;
    --xf-surface: #141f2b;
    --xf-surface-alt: #1a2838;
    --xf-border: #223547;
    --xf-border-strong: #2d455d;
    --xf-text: #f1f5f9;
    --xf-text-muted: #94a3b8;
    --xf-node-hover: #1e2e40;
    --xf-header-bg: #0a1c29;
    --xf-nav-bg: #081622;
    --xf-subnav-bg: #050e16;
}

body {
    background-color: var(--xf-bg);
    color: var(--xf-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* XenForo Üst Navigasyon & Çubuk Stilleri */
.xf-top-notice {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.xf-header {
    background-color: var(--xf-header-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.xf-nav-bar {
    background-color: var(--xf-nav-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.xf-subnav-bar {
    background-color: var(--xf-subnav-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* XenForo Aktif Sekme Vurgusu */
.xf-nav-link {
    position: relative;
    transition: all 0.2s ease;
}

.xf-nav-link.active {
    background-color: var(--xf-subnav-bg);
    color: #ffffff !important;
    font-weight: 600;
}

.xf-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--xf-subnav-bg);
}

/* XenForo Kart Yapıları */
.xf-block {
    background-color: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.xf-block-header {
    background: linear-gradient(180deg, var(--xf-surface-alt) 0%, var(--xf-surface) 100%);
    border-bottom: 1px solid var(--xf-border);
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--xf-text);
}

/* Canlı İstatistikler Sekme Yapısı */
.xf-tab-btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--xf-text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.xf-tab-btn:hover {
    color: var(--xf-text);
}

.xf-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.08);
}

/* XenForo Forum Satırları (Nodes) */
.xf-node-row {
    border-bottom: 1px solid var(--xf-border);
    transition: background-color 0.15s ease;
}

.xf-node-row:hover {
    background-color: var(--xf-node-hover);
}

.xf-node-row:last-child {
    border-bottom: none;
}

/* Vitrin Kartları (Banner Slider) */
.xf-showcase-card {
    background: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xf-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Yıldız Derecelendirme (Star Rating) */
.xf-stars {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

/* Özel Kod Bloğu Vurgulama */
.xf-code-block {
    background-color: #0b131e;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.825rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* XenForo Sağ Sidebar Widget'ları */
.xf-widget {
    background-color: var(--xf-surface);
    border: 1px solid var(--xf-border);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.xf-widget-title {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--xf-border);
    background-color: var(--xf-surface-alt);
    color: var(--xf-text-muted);
}

/* İnce Kaydırma Çubuğu */
.xf-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.xf-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.xf-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}
.xf-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}
