:root {
    --p: #ffb300; /* Primary */
    --brand-p: #ffb300;
    --p-glow: rgba(255, 179, 0, 0.3);
    --bg-body: #0a0b10;
    --bg-card: #141621;
    --bg-elev: #1c1f2e;
    --border: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --text-dim: #a0a6b5;
    --text-muted: #6b7280;
    --radius: 12px;
    --transition: all 0.25s ease;
}

/* 1. RESET & BASE */
html, body { 
    margin: 0; 
    padding: 0; 
    min-height: 100%; /* vh yerine % kullanarak mobil uyumsuzluğu önle */
}

body { 
    background: var(--bg-body); 
    color: var(--text); 
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative; /* Sabitleyicileri iptal et */
    display: block !important; /* Flexbox çakışmalarını önle */
}

.content-wrapper { 
    width: 100%;
    position: relative;
    display: block;
    min-height: 1px; /* Boş olsa bile alan kaplasın */
}

/* 2. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; font-weight: 800; }
.f-page-title { font-size: 1.75rem; font-weight: 800; color: #fff; margin-bottom: 1rem; line-height: 1.2; }
.f-section-title { 
    font-size: 1.25rem; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin: 0;
}
.f-section-title i { color: var(--p); text-shadow: 0 0 10px var(--p-glow); }

.f-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

/* 3. COMPONENTS: SURFACES */
.f-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.f-card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.f-card-body { padding: 24px; }

/* 4. COMPONENTS: ITEMS (LISTS) */
.f-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.f-item:last-child { border-bottom: none; }
.f-item:hover { background: rgba(255, 255, 255, 0.02); padding-left: 30px; }

.f-icon-box {
    width: 44px; height: 44px;
    background: var(--bg-elev);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--p);
    margin-right: 16px;
    transition: var(--transition);
}
.f-item:hover .f-icon-box { border-color: var(--p); transform: scale(1.05); }

/* 5. COMPONENTS: UI ELEMENTS */
.f-btn {
    background: linear-gradient(135deg, var(--p) 0%, #ff8f00 100%);
    color: #000 !important;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.f-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px var(--p-glow); }

.btn-gold {
    background: var(--p);
    color: #000 !important;
    border: none;
    transition: var(--transition);
}
.btn-gold:hover { background: #ffca2c; transform: translateY(-1px); box-shadow: 0 4px 12px var(--p-glow); }

.f-input {
    background: var(--bg-elev) !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
}
.f-input:focus { border-color: var(--p) !important; box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1) !important; }

.f-badge {
    background: rgba(255, 179, 0, 0.1);
    color: var(--p);
    border: 1px solid rgba(255, 179, 0, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* 6. NAVBAR */
.navbar {
    background: rgba(10, 11, 16, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
}
.navbar-brand { font-size: 1.6rem; letter-spacing: -0.5px; }
.brand-accent { color: var(--p); }

/* SEARCH BOX */
.nav-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 15px 8px 40px;
    color: #fff;
    font-size: 0.9rem;
    width: 200px;
    transition: var(--transition);
}
.nav-search-input:focus {
    width: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--p);
    outline: none;
    box-shadow: 0 0 15px var(--p-glow);
}
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}
.nav-search-input:focus + .search-icon { color: var(--p); }

.f-footer-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 320px;
    margin-top: 20px;
    opacity: 0.8;
}
.social-link { color: #fff; opacity: 0.6; transition: var(--transition); }
.social-link:hover { color: var(--p); opacity: 1; transform: translateY(-3px); }

/* 7. FOOTER (TOTAL NATURAL FLOW) */
.footer {
    position: relative !important;
    display: block !important;
    background: #050608;
    border-top: 1px solid var(--border);
    padding: 20px 0 10px;
    margin-top: 100px;
    width: 100% !important;
    clear: both !important;
    bottom: auto !important;
}
.f-footer-brand { font-size: 1.5rem; margin-bottom: 15px; }
.f-footer-link { color: var(--text-dim); text-decoration: none; display: block; margin-bottom: 10px; transition: var(--transition); }
.f-footer-link:hover { color: var(--p); transform: translateX(5px); }
.f-footer-desc { 
    color: var(--text-dim) !important; 
    line-height: 1.8; 
    max-width: 320px !important; 
    font-size: 0.95rem; 
    display: block !important; 
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

/* 8. TOPIC/POST SYSTEM */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-card { 
    display: flex; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.post-card:hover { border-color: rgba(255, 179, 0, 0.2); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }

.post-user { 
    width: 200px; 
    padding: 30px 20px; 
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--border); 
    text-align: center; 
    display: flex;
    flex-direction: column;
    align-items: center;
}
.post-content { 
    flex: 1; 
    padding: 30px; 
    background: transparent;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.topic-body { word-wrap: break-word; overflow-wrap: break-word; }
.topic-body img, .post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.f-img-lightbox { cursor: zoom-in; display: inline-block; width: 100%; }
.lb-overlay { z-index: 10001 !important; }
.lb-container { z-index: 10002 !important; }
.lb-outerContainer { z-index: 10002 !important; }
.lb-dataContainer { z-index: 10002 !important; }

/* 11. GUEST CONTENT FILTER */
.content-blurred {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.topic-body-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 150px; /* İçerik çok kısaysa bile bir alan kalsın */
    transition: all 0.5s ease;
}

.topic-body-wrapper.is-blurred {
    min-height: 450px; /* Misafirler için panelin ferah durması için */
    display: flex;
    flex-direction: column;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(26, 28, 41, 0.4) 0%, rgba(13, 15, 25, 0.98) 100%);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
}

.blur-content {
    max-width: 650px;

    background: rgba(30, 33, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 5rem 4rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.8);
    backdrop-filter: blur(25px);
    text-align: center;
    animation: blurScaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes blurScaleIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.blur-content h4 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.blur-content p {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.blur-btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.blur-btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.blur-btn-primary {
    background: var(--brand-p);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 184, 0, 0.2);
}

.blur-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 184, 0, 0.3);
}

.blur-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blur-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.avatar-lg { 
    width: 64px; height: 64px; 
    border-radius: 16px; 
    background: linear-gradient(135deg, var(--p) 0%, #ff8f00 100%); 
    margin: 0 auto 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.8rem; 
    color: #000; 
    font-weight: 900; 
    box-shadow: 0 4px 15px var(--p-glow);
}

/* UTILS */
.text-dim { color: var(--text-dim); }
.text-p { color: var(--p); }
.small-caps { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

/* 9. QUILL DARK MODE FIXES */
.ql-toolbar.ql-snow {
    background: #252836;
    border-color: var(--border) !important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.ql-container.ql-snow {
    border-color: var(--border) !important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.ql-snow .ql-stroke { stroke: var(--text-dim) !important; }
.ql-snow .ql-fill { fill: var(--text-dim) !important; }
.ql-snow .ql-picker { color: var(--text-dim) !important; }
.ql-editor { color: var(--text); font-size: 1rem; }
.ql-editor img { max-width: 100%; height: auto; }
.ql-editor.ql-blank::before { color: var(--text-muted) !important; font-style: normal; }

/* 11. MESSAGES SYSTEM */
.nav-pills .nav-link { color: var(--text-dim); border-radius: 8px; font-weight: 600; transition: var(--transition); }
.nav-pills .nav-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-pills .nav-link.active { background: var(--p) !important; color: #000 !important; }
.border-dashed { border-style: dashed !important; border-width: 2px !important; }

/* 12. QUOTE SYSTEM */
.f-quote, 
.topic-body blockquote, 
.post-content blockquote,
.ql-editor blockquote {
    background: rgba(255, 255, 255, 0.05) !important;
    border-left: 4px solid var(--p) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
    padding: 2px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    color: var(--text-dim) !important;
    position: relative !important;
    font-size: 0.92rem !important;
    backdrop-filter: blur(5px) !important;
    border-top: none !important;
    border-bottom: none !important;
    display: block !important;
    min-height: 20px;
    font-style: normal !important;
}

/* İlk Blok (Bubble Başlangıcı) */
.topic-body blockquote:not(blockquote + blockquote), 
.post-content blockquote:not(blockquote + blockquote),
.ql-editor blockquote:not(blockquote + blockquote) {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 12px !important;
}

/* Son Blok (Bubble Bitişi) */
.topic-body blockquote:not(:has(+ blockquote)), 
.post-content blockquote:not(:has(+ blockquote)),
.ql-editor blockquote:not(:has(+ blockquote)) {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 12px !important;
}

/* Alıntı İçeriği Vurguları */
.topic-body blockquote strong, .post-content blockquote strong, .ql-editor blockquote strong {
    color: var(--text-p) !important;
    display: inline-block;
    margin-bottom: 5px;
}
.topic-body blockquote em, .post-content blockquote em, .ql-editor blockquote em {
    display: block;
    opacity: 0.8;
}
.f-quote strong {
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    display: block;
}
.f-quote em {
    font-style: italic;
    opacity: 0.85;
    line-height: 1.4;
    display: block;
}
.f-quote .user-name-link {
    color: var(--p);
    font-weight: 700;
}
.f-quote .user-name-link:hover {
    text-decoration: underline;
}
.f-quote::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(90deg, rgba(255, 179, 0, 0.05) 0%, transparent 100%);
    pointer-events: none;
}


/* TRANSFERRED FROM _BonusTable.cshtml */
.bonus-card {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}
.bonus-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}
.bonus-logo {
    width: 65px;
    height: 35px;
    object-fit: contain;
    background: rgba(0,0,0,0.2);
    padding: 2px;
}
.extra-small { 
    font-size: 0.6rem; 
    padding: 2px 5px; 
    letter-spacing: 0.5px;
}

