/* PREMIUM DARK & KIRMIZI TEMA - TÜM SORUNLAR ÇÖZÜLDÜ */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --accent-primary: #dc2626;
    --accent-secondary: #b91c1c;
    --accent-glow: rgba(220, 38, 38, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --border-primary: #262626;
    --border-secondary: #404040;
    --success: #22c55e;
    --warning: #eab308;
    --gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    --gradient-hover: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* PREMIUM HEADER - MOBİL UYUMLU */
.premium-header {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    /* Sabitlik kaldırıldı - normal akışa döndü */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 55px; /* Daha ince */
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.logo-badge {
    background: var(--gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* HEADER ARAMA */
.header-search {
    flex: 0 1 350px;
    margin: 0 20px;
}

.header-search-form {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-search-form:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.header-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 14px;
    outline: none;
    font-size: 13px;
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
}

.header-search-btn:hover {
    background: var(--gradient-hover);
}

/* NAVIGATION */
.nav-main {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-premium {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* MOBILE NAV TOGGLE - GÜNCELLENDİ */
.mobile-nav-toggle {
    display: none;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    margin: 12px auto;
    width: 160px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.mobile-nav-toggle:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
}

/* MAIN LAYOUT */
.main-content {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 0;
    min-height: calc(100vh - 60px);
    max-width: 1400px;
    margin: 0 auto;
}

/* SOL SIDEBAR */
.content-left {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    padding: 0;
}

.sidebar-nav {
    position: sticky;
    top: 80px;
    padding: 20px 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 25px;
}

.nav-section-title {
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 6px;
}

.nav-section ul {
    list-style: none;
}

.nav-section li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-section li a:hover,
.nav-section li a.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
}

.category-badge {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

/* SIDEBAR ARAMA */
.sidebar-search {
    padding: 0 20px;
    margin-bottom: 20px;
}

.sidebar-search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-search-input,
.sidebar-search-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 10px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.sidebar-search-input:focus,
.sidebar-search-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.sidebar-search-btn {
    background: var(--gradient);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 13px;
}

.sidebar-search-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
}

/* ANA İÇERİK */
.content-center {
    background: var(--bg-primary);
    padding: 0;
}

/* HERO BANNER - DAHA GÜZEL */
.hero-banner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--accent-primary);
    margin: 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 1;
}

.hero-banner > * {
    position: relative;
    z-index: 2;
}

.hero-banner h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-banner p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-banner .btn-premium {
    display: inline-flex;
    margin: 0 auto;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ARAMA SONUÇLARI */
.search-results-header {
    background: var(--bg-secondary);
    padding: 18px 30px;
    border-bottom: 1px solid var(--border-primary);
}

.search-results-header h3 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

.search-results-header a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-results-header a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* KATEGORİ FİLTRELERİ */
.category-filters {
    display: flex;
    gap: 6px;
    padding: 15px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.category-filter-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* İTİRAF LİSTESİ */
.confessions-list {
    padding: 0;
}

.confessions-list-header {
    padding: 15px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confessions-list-header h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.confession-count {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

/* İTİRAF KARTLARI - TEMA İLE TAM UYUMLU */
.confession-entry {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
    background: var(--bg-primary);
    position: relative;
    margin: 0;
    border-left: 3px solid transparent;
}

.confession-entry:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-left-color: var(--accent-primary);
}

.confession-entry.pinned {
    border-left: 4px solid var(--warning);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(234, 179, 8, 0.02) 100%);
}

.confession-entry:not(:last-child) {
    margin-bottom: 1px;
}

.pinned-badge {
    position: absolute;
    top: 15px;
    right: 30px;
    background: var(--warning);
    color: #000;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(234, 179, 8, 0.3);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.entry-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 13px;
}

.category-tag {
    background: var(--gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid var(--accent-primary);
}

.entry-date {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
}

/* SABİTLEME BUTONLARI */
.pin-form {
    display: inline;
}

.pin-btn {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.pin-btn.unpin {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* İTİRAF İÇERİĞİ - DAHA BELİRGİN */
.confession-content-link {
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
}

.entry-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 8px 0;
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

.confession-content-link:hover .entry-content {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-primary);
}

.entry-stats {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.entry-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.entry-actions {
    display: flex;
    gap: 6px;
}

.btn {
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--accent-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 6px var(--accent-glow);
}

.btn:hover {
    background: var(--gradient-hover);
    color: white;
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* SAYFALAMA */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
}

.page-info {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 12px;
}

/* SAĞ SIDEBAR - GÖRÜNÜR YAPILDI */
.sidebar {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    padding: 0;
    display: block !important; /* Görünür yap */
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
    padding: 20px 0;
    /* height: calc(100vh - 80px); satırını SİL */
    /* overflow-y: auto; satırını SİL */
    /* Yerine: */
}

.sidebar-widget {
    background: var(--bg-primary);
    margin: 0 15px 15px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sidebar-widget h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* İSTATİSTİKLER */
.stats p {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-primary);
    font-weight: 600;
}

.stats p:last-child {
    border-bottom: none;
}

.stats strong {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11px;
}

.stats p span {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 13px;
}

/* LİDERLİK TABLOSU - GÖRÜNÜR YAPILDI */
.top-users ol {
    list-style: none;
    counter-reset: item;
}

.top-users li {
    counter-increment: item;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    background: var(--bg-secondary);
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-primary);
}

.top-users li:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
    border-color: var(--accent-primary);
}

.top-users li::before {
    content: counter(item);
    font-weight: 800;
    color: white;
    background: var(--gradient);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 10px;
    margin-right: 8px;
}

.top-users li strong {
    flex: 1;
    color: var(--text-primary);
    font-weight: 700;
}

.points {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 11px;
}

/* TREND İTİRAFLAR - GÖRÜNÜR YAPILDI */
.popular-confessions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-item {
    display: block;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border: 1px solid var(--border-primary);
}

.popular-item:hover {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-primary);
    transform: translateX(3px);
}

.popular-content {
    color: var(--text-primary);
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}

.popular-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    padding-top: 5px;
    border-top: 1px solid var(--border-primary);
    color: var(--text-muted);
    font-weight: 600;
}

/* NO DATA MESSAGE */
.no-data-message {
    text-align: center;
    padding: 40px 30px;
    color: var(--text-muted);
}

.no-data-message p {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* RESPONSIVE TASARIM - MOBİL DÜZELTMELERİ */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 240px 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .content-left {
        display: none;
        border-right: none;
        border-bottom: 1px solid var(--border-primary);
    }
    
    .content-left.active {
        display: block;
    }
    
    .sidebar {
        display: none;
        border-left: none;
        border-top: 1px solid var(--border-primary);
    }
    
    .sidebar.active {
        display: block;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .header-search {
        display: none;
    }
    
    .nav-main {
        margin-right: 0;
    }
    
    .header-container {
        height: auto;
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo-section {
        order: 1;
    }
    
    .header-actions {
        order: 2;
    }
    
    .nav-main {
        order: 3;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo-badge {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .btn-premium {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .confession-entry {
        padding: 15px 20px;
    }
    
    .entry-header {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .entry-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .entry-stats {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .category-filters {
        padding: 12px 20px;
    }
    
    .hero-banner {
        padding: 20px;
    }
    
    .hero-banner h2 {
        font-size: 20px;
    }
    
    .confessions-list-header {
        padding: 12px 20px;
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .pinned-badge {
        position: static;
        margin-bottom: 6px;
        display: inline-block;
    }
    
    .mobile-nav-toggle {
        width: 140px;
        padding: 8px 12px;
        font-size: 12px;
        margin: 10px auto;
    }
}

@media (max-width: 480px) {
    .nav-main {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .btn-premium {
        width: 100%;
        justify-content: center;
    }
    
    .category-filters {
        justify-content: center;
        padding: 10px 15px;
    }
    
    .category-filter-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .hero-banner h2 {
        font-size: 18px;
    }
    
    .hero-banner p {
        font-size: 13px;
    }
    
    .confession-entry {
        padding: 12px 15px;
    }
    
    .entry-content {
        font-size: 13px;
        padding: 10px;
    }
}