/* ELBİSTAN İTİRAF - ULTIMATE GOLD DARK EDITION (FULL + FIX) */

:root {
    /* --- RENK PALETİ --- */
    --bg-body: #0f172a;       /* Zifiri Koyu Arka Plan */
    --bg-card: #1e293b;       /* Kart Rengi */
    --bg-input: #0f172a;      /* Input İçi */
    --bg-header: rgba(15, 23, 42, 0.95); /* Yarı saydam header */
    
    /* GOLD & NEON */
    --gold-neon: #ffd700;     /* Ana Altın Rengi */
    --gold-glow: rgba(255, 215, 0, 0.4); /* Altın Parlama */
    --primary-btn: #6366f1;   /* Buton Rengi (İndigo) */
    
    /* YAZI */
    --text-main: #f8fafc;     /* Beyaz */
    --text-sub: #94a3b8;      /* Gri */
    
    /* KENARLIK & GÖLGE */
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px; /* Geniş ekranlar için sınır */
    margin: 0 auto;
    padding: 0;
}

/* --- HEADER (ÜST MENÜ) --- */
.site-header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* İnce Gold Çizgi */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* LOGO */
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-highlight {
    color: var(--gold-neon);
    text-shadow: 0 0 15px var(--gold-glow);
    margin-left: 6px;
}

/* MENÜ LİNKLERİ */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--gold-neon);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* Header Butonları (Giriş/Kayıt) */
.btn-header-login {
    background: transparent;
    border: 1px solid var(--primary-btn);
    color: var(--primary-btn) !important;
    padding: 6px 16px;
    border-radius: 8px;
}

.btn-header-register {
    background: var(--primary-btn);
    color: white !important;
    padding: 7px 18px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* --- GİRİŞ & KAYIT KUTUSU (AUTH BOX - ESKİ HALİNE DÖNDÜ) --- */
.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px; /* Kutuyu sınırlar */
    margin: 80px auto; /* Sayfanın ortasına iter */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5); /* Derin gölge */
    text-align: center;
}

.auth-box h1 {
    color: var(--gold-neon);
    font-size: 26px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Inputlar */
.auth-box input[type="text"], 
.auth-box input[type="password"], 
.auth-box input[type="email"] {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 10px;
    color: white;
    margin-bottom: 15px;
    font-size: 15px;
    transition: 0.3s;
}

.auth-box input:focus {
    border-color: var(--gold-neon);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
    outline: none;
}

.auth-box .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 10px;
}

.auth-box p {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-sub);
}

.auth-box a {
    color: var(--gold-neon);
    font-weight: 700;
    text-decoration: none;
}

/* --- HOŞGELDİN BANNER (SADECE ÇERÇEVE MODU) --- */
.welcome-banner {
    background: rgba(255, 215, 0, 0.02); /* Çok şeffaf sarı */
    border: 2px solid var(--gold-neon); /* SADECE KENARLIK */
    box-shadow: 0 0 20px var(--gold-glow), inset 0 0 20px rgba(255, 215, 0, 0.1);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.welcome-banner h2 {
    color: var(--gold-neon);
    font-size: 28px;
    margin-bottom: 12px;
    text-shadow: 0 0 10px var(--gold-glow);
    text-transform: uppercase;
    font-weight: 800;
}

.welcome-banner p {
    color: var(--text-main);
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.welcome-banner .btn {
    background: var(--gold-neon);
    color: #000;
    font-weight: 800;
    padding: 12px 35px;
    border-radius: 50px;
    box-shadow: 0 0 20px var(--gold-glow);
    display: inline-block;
}

.welcome-banner .btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* --- SAYFA DÜZENİ (LAYOUT) --- */
.main-content {
    display: grid;
    /* Mobilde tek kolon */
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* --- İTİRAF KARTLARI --- */
.confessions-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.confessions-list-header h3 {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
}

.confession-entry {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s;
}

.confession-entry:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.3);
}

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

.entry-author {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}

.entry-date {
    color: var(--text-sub);
    font-size: 12px;
}

/* NEON EMOJI ÇERÇEVESİ */
.neon-frame {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--gold-neon);
    box-shadow: 0 0 10px var(--gold-glow), inset 0 0 5px rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.05);
    margin-right: 12px;
    font-size: 20px;
}

.entry-content {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.confession-content-link {
    text-decoration: none;
    display: block;
}

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

.entry-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-sub);
}

/* Butonlar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-btn);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: 0.2s;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Geri Dön Butonu */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* --- YORUMLAR (DÜZELTİLDİ - OKUNABİLİR KARTLAR) --- */
.comments-section {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.comments-section h3 {
    color: var(--gold-neon);
    margin-bottom: 20px;
    font-size: 18px;
}

.comment-form textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    color: white;
    min-height: 100px;
    margin-bottom: 15px;
    font-size: 14px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--gold-neon);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.comment-card {
    background: #252f45; /* Yorum kartı rengi - Biraz daha açık lacivert */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 15px; /* Kartlar arası boşluk */
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
    font-size: 13px;
}

.comment-author {
    color: var(--gold-neon);
    font-weight: 700;
    display: flex;
    align-items: center;
}

.comment-date {
    color: var(--text-sub);
    font-size: 11px;
}

.comment-content {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

/* --- YAN SIDEBAR & RESPONSIVE AYARLARI --- */
/* Mobilde yan menüleri gizle */
.content-left, .sidebar {
    display: none;
}

/* Masaüstü (Geniş Ekran) Ayarları */
@media (min-width: 992px) {
    .main-content {
        /* 3 Kolonlu Yapı: Sol Menü | İçerik | Sağ Sidebar */
        grid-template-columns: 220px 1fr 280px;
    }
    
    .content-left, .sidebar {
        display: block; /* Yanları göster */
    }

    /* Sol Menü Stili */
    .sidebar-nav {
        position: sticky;
        top: 80px;
    }
    
    .nav-section { margin-bottom: 25px; }
    .nav-section-title {
        font-size: 11px;
        font-weight: 700;
        color: var(--text-sub);
        text-transform: uppercase;
        margin-bottom: 10px;
        padding-left: 10px;
    }
    
    .nav-section ul { list-style: none; }
    .nav-section a {
        display: block;
        padding: 10px 15px;
        color: var(--text-main);
        text-decoration: none;
        font-size: 14px;
        border-radius: 8px;
        transition: 0.2s;
    }
    
    .nav-section a:hover, .nav-section a.active {
        background: rgba(255, 255, 255, 0.05);
        color: var(--gold-neon);
    }
    
    /* Sağ Sidebar Stili */
    .sidebar-widget {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar-widget h3 {
        color: var(--gold-neon);
        font-size: 16px;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    /* Popüler İtiraflar */
    .popular-item {
        display: block;
        text-decoration: none;
        padding: 10px;
        border-radius: 8px;
        transition: 0.2s;
        margin-bottom: 8px;
    }
    .popular-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    .popular-content {
        font-size: 13px;
        color: var(--text-main);
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .popular-meta {
        font-size: 11px;
        color: var(--text-sub);
        display: flex;
        justify-content: space-between;
    }
}

/* Mobil İyileştirmeleri */
@media (max-width: 600px) {
    .header-content { padding: 0 15px; }
    .logo h1 { font-size: 18px; }
    .main-nav ul { gap: 10px; }
    
    /* Mobilde giriş/kayıt butonlarını küçült */
    .btn-header-login, .btn-header-register {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* Giriş kutusunu mobilde tam genişlik yap */
    .auth-box {
        margin: 40px auto;
        padding: 25px;
    }
}

/* --- LIVE CHAT WIDGET (GOLD NEON) --- */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Yuvarlak Chat Butonu */
#chat-toggle-btn {
    background: var(--bg-card);
    color: var(--gold-neon);
    border: 2px solid var(--gold-neon);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 0 15px var(--gold-glow);
    transition: all 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#chat-toggle-btn:hover {
    background: var(--gold-neon);
    color: #000;
    transform: scale(1.05);
}

/* Chat Penceresi */
#chat-box {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    height: 450px;
    background: var(--bg-card);
    border: 1px solid var(--gold-neon);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Başlık Kısmı */
.chat-header {
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 15px;
    color: var(--gold-neon);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.chat-header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* Mesaj Alanı */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mesaj Baloncukları */
.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    position: relative;
    word-wrap: break-word;
}

/* Benim Mesajım */
.message.me {
    align-self: flex-end;
    background: rgba(255, 215, 0, 0.15); /* Hafif Gold */
    border: 1px solid var(--gold-neon);
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* Başkasının Mesajı */
.message.other {
    align-self: flex-start;
    background: #334155;
    color: #fff;
    border-bottom-left-radius: 2px;
}

.msg-user {
    font-size: 10px;
    color: var(--gold-neon);
    font-weight: 700;
    margin-bottom: 2px;
}

.msg-time {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-align: right;
    margin-top: 4px;
}

/* Input Alanı */
.chat-input-area {
    padding: 10px;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-form {
    display: flex;
    gap: 5px;
}

#chat-input {
    flex: 1;
    background: var(--bg-body);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
}

#chat-input:focus {
    outline: none;
    border-color: var(--gold-neon);
}

.chat-input-area button {
    background: var(--gold-neon);
    border: none;
    color: #000;
    padding: 0 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.login-warning {
    text-align: center;
    font-size: 12px;
    color: var(--text-sub);
}

.login-warning a {
    color: var(--gold-neon);
    text-decoration: none;
    font-weight: bold;
}
/* ZORUNLU GÖRÜNÜRLÜK AYARI */
#chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    display: block !important;
}

#chat-toggle-btn {
    display: flex !important;
    background: #1e293b !important;
    color: #ffd700 !important;
    border: 2px solid #ffd700 !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

