:root {
    --bg-body: #020617;
    --bg-panel: #0f172a;
    --bg-card: #1e293b;
    --primary: #f59e0b;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
    --border: #334155;
    --danger: #ef4444;
    --success: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; text-decoration: none; list-style: none; outline: none; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    height: 100vh;
    display: flex; flex-direction: column;
}

/* FORMATLAMA STİLLERİ */
.formatted-content b { color: #f59e0b; font-weight: 800; }
.formatted-content ul { padding-left: 20px; list-style-type: disc; margin: 10px 0; }
.formatted-content li { margin-bottom: 5px; }
.bullet-point { display: block; padding-left: 15px; position: relative; margin-top: 5px; }
.bullet-point::before { content: "•"; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

/* ROL RENKLERİ VE PARLAMA */
.role-minor { 
    color: #fcd34d !important; 
    border-color: rgba(253, 224, 71, 0.3) !important; 
    text-shadow: 0 0 4px rgba(253, 224, 71, 0.4); 
} 
.role-media { 
    color: #4ade80 !important; 
    border-color: rgba(74, 222, 128, 0.3) !important; 
    text-shadow: 0 0 4px rgba(74, 222, 128, 0.4); 
} 
.role-major { 
    color: #60a5fa !important; 
    border-color: rgba(96, 165, 250, 0.3) !important; 
    text-shadow: 0 0 4px rgba(96, 165, 250, 0.4); 
} 
.role-prens { 
    color: #2dd4bf !important; 
    border-color: rgba(45, 212, 191, 0.3) !important; 
    text-shadow: 0 0 4px rgba(45, 212, 191, 0.4); 
} 
.role-yonetici { 
    color: #ff003c !important; 
    border-color: rgba(255, 0, 60, 0.3) !important; 
    text-shadow: 0 0 6px rgba(255, 0, 60, 0.5); 
} 

.user-name {
    color: white !important;
    text-shadow: none !important;
}

/* KATEGORİ ETİKETİ */
.category-tag { 
    background: rgba(255, 255, 255, 0.05); 
    color: #86efac !important; 
    padding: 2px 10px; 
    border-radius: 6px; 
    font-size: 0.65rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    border: 1px solid rgba(134, 239, 172, 0.3);
    text-shadow: 0 0 5px rgba(134, 239, 172, 0.3);
    margin-left: 15px; 
    display: inline-block;
    vertical-align: middle;
}

.notification-dot {
    width: 10px; height: 10px; background: #ef4444; border-radius: 50%;
    position: absolute; top: 18px; right: 15px;
    box-shadow: 0 0 5px #ef4444;
    display: none; 
    animation: pulseDot 3s infinite;
}
@keyframes pulseDot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.notif-bell { font-size:1.5rem; color:white; cursor:pointer; position:relative; }
.nav-badge {
    position:absolute; top:-5px; right:-8px;
    background: #ef4444; color:white;
    font-size:0.6rem; font-weight:bold;
    min-width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius:50%;
    box-shadow: 0 0 5px #ef4444;
    border: 2px solid var(--bg-panel);
}

.bg-decoration {
    position: fixed;
    font-size: 20rem;
    color: var(--primary);
    opacity: 0.03; 
    z-index: -1;
    pointer-events: none;
}
.left-dec { top: 20%; left: -50px; transform: rotate(15deg); }
.right-dec { bottom: 10%; right: -50px; transform: rotate(-25deg); }
.bottom-dec { bottom: -100px; left: 40%; transform: rotate(0deg); font-size: 15rem; }

.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    height: 70px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}

.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.mobile-menu-trigger { display: none; color: #94a3b8; font-size: 0.9rem; margin-top: 5px; }

.search-bar { background: var(--bg-card); border: 1px solid var(--border); padding: 10px 20px; border-radius: 20px; width: 400px; color: white; display: flex; align-items: center; gap: 10px; }
.search-bar input { background: transparent; border: none; color: white; width: 100%; font-family: inherit; }
.user-actions { display: flex; align-items: center; gap: 20px; }
.profile-pic-nav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); cursor: pointer; }

.mobile-search-icon { display: none; }
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 60px;
    background: var(--bg-panel); border-top: 1px solid var(--border);
    display: none; justify-content: space-around; align-items: center;
    z-index: 1000; box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
}
.mobile-bottom-nav div { font-size: 1.4rem; color: #94a3b8; }
.mobile-bottom-nav div.active { color: var(--primary); }
.mobile-fab {
    background: var(--primary); width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: black !important; box-shadow: 0 0 10px var(--primary);
    transform: translateY(-20px); border: 3px solid var(--bg-panel);
}

.mobile-sidebar {
    position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
    background: var(--bg-panel); z-index: 2100;
    transition: left 0.3s ease;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    padding: 20px;
}
.mobile-sidebar.active { left: 0; }
.mobile-sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 15px;
    color: white; font-weight: bold;
}
.mobile-sidebar-content { overflow-y: auto; }

.layout {
    display: grid; grid-template-columns: 280px 1fr 300px; gap: 30px;
    max-width: 1400px; width: 100%; margin: 0 auto; padding: 20px;
    flex-grow: 1; overflow: hidden;
}

.sidebar-left { overflow-y: auto; padding-right: 10px; z-index: 10; } 
.radar-btn {
    background: linear-gradient(135deg, #7c3aed, #4c1d95); color: white; padding: 15px;
    border-radius: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px;
    cursor: pointer; box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3); margin-bottom: 30px;
    transition: transform 0.2s;
}
.radar-btn:active { transform: scale(0.95); }
.radar-btn i { animation: pulse 2s infinite; }

.menu-list div {
    display: flex; align-items: center; gap: 15px; padding: 15px;
    border-radius: 12px; color: var(--text-sub); font-weight: 600; cursor: pointer; transition: 0.2s; margin-bottom: 5px;
    border: 1px solid transparent;
}
.menu-list div:hover { background: var(--bg-card); color: white; }

.menu-list div.active { 
    background: rgba(245, 158, 11, 0.1); 
    color: var(--primary); 
    border: 2px solid var(--primary); 
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.menu-item-admin { display:flex; align-items:center; gap:15px; padding:15px; border-radius:12px; font-weight:bold; font-size:0.9rem; }
.menu-item-admin:hover { background:#1e293b; }

.main-content { overflow-y: auto; padding-right: 10px; position: relative; scroll-behavior: smooth; }
.main-content::-webkit-scrollbar { width: 8px; }
.main-content::-webkit-scrollbar-track { background: var(--bg-body); }
.main-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.view-section { display: none; animation: slideIn 0.3s; } 
#feedView { display: block; } 

.feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.create-topic-btn { background: var(--primary); color: #000; padding: 10px 25px; border-radius: 20px; font-weight: 700; border: none; cursor: pointer; transition: 0.2s; }
.create-topic-btn:active { transform: scale(0.95); }

.topic-card {
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px; margin-bottom: 20px;
    cursor: pointer; transition: 0.2s; animation: fadeIn 0.4s; position: relative;
    z-index: 1;
}
.topic-card:hover { border-color: var(--primary); transform: translateY(-2px); }

/* SABİTLENMİŞ POST TASARIMI */
.pinned-post-special {
    border: 2px solid #f59e0b;
    background: linear-gradient(145deg, #1e293b, #451a03);
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
    z-index: 1;
}
.pinned-badge-special {
    position: absolute; top: 0; left: 0;
    background: #f59e0b; color: black;
    font-weight: 900; font-size: 0.7rem;
    padding: 5px 10px; border-bottom-right-radius: 10px;
    border-top-left-radius: 14px;
    z-index: 2;
}

.pinned-post {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, #1e293b, #0f172a);
    position: relative;
    overflow: hidden;
    cursor: default !important;
}
.pinned-badge {
    position: absolute; top: 0; right: 0;
    background: var(--primary); color: #000;
    font-weight: 900; font-size: 0.7rem;
    padding: 5px 10px; border-bottom-left-radius: 10px;
    z-index: 2;
}

/* YORUM VE BUTON */
.comment {
    display: flex; gap: 0; margin-bottom: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; position: relative;
    transition: all 0.3s ease;
}

.solution-comment {
    border: 2px solid #10b981;
    background: linear-gradient(145deg, #022c22, #064e3b);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.solution-label {
    position: absolute; top:0; right:0; background:#10b981; color:white;
    font-size:0.7rem; font-weight:bold; padding:3px 10px;
    border-bottom-left-radius:10px; z-index:5;
}

.candidate-comment {
    border: 2px solid #f59e0b;
    background: linear-gradient(145deg, #451a03, #1e293b);
}

.comment-sidebar {
    width: 180px; background: rgba(15, 23, 42, 0.6);
    padding: 20px 10px; display: flex; flex-direction: column;
    align-items: center; text-align: center; border-right: 1px solid var(--border);
    flex-shrink: 0;
}
.c-avatar-box { position: relative; margin-bottom: 10px; }
.c-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); cursor: pointer; }
.c-username { font-weight: 800; color: var(--text-main); font-size: 0.95rem; margin-bottom: 2px; cursor: pointer; }
.title-under-name { font-size: 0.75rem; color: #94a3b8; margin-bottom: 5px; font-weight: 500; } 
.c-role { font-size: 0.7rem; color: var(--primary); font-weight: bold; text-transform: uppercase; margin-bottom: 5px; border: 1px solid var(--primary); padding: 2px 8px; border-radius: 10px; }
.c-badge { font-size: 0.7rem; color: #cbd5e1; font-style: italic; margin-bottom: 10px; }
.c-stats {
    margin-top: 10px; width: 100%;
    display: flex; flex-direction: column; gap: 5px;
    font-size: 0.7rem; color: #cbd5e1;
}
.c-stat-row { display: flex; justify-content: space-between; background: rgba(0,0,0,0.2); padding: 4px 8px; border-radius: 5px; }

.comment-main { flex-grow: 1; padding: 15px; display: flex; flex-direction: column; }
.comment-date { 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 8px; margin-bottom: 10px; 
    font-size: 0.75rem; color: #64748b; 
}
.action-btns { display:flex; gap:12px; align-items:center; flex-wrap: wrap; }
.delete-btn, .edit-btn, .like-btn, .reply-btn, .solve-btn, .report-btn, .pin-btn {
    background: transparent; border: none; font-size: 0.85rem; cursor: pointer; color: #94a3b8; transition:0.2s; display: flex; align-items: center; gap: 4px; font-weight: bold;
}
.delete-btn:hover { color: #ef4444; }
.edit-btn:hover { color: #3b82f6; }
.reply-btn:hover { color: #f59e0b; }
.like-btn:hover { color: #f43f5e; }
.like-btn.liked { color: #f43f5e; }
.solve-btn:hover { color: #10b981; }
.report-btn:hover { color: #f59e0b; }
.pin-btn:hover { color: #f59e0b; }
.comment-body { color: #e2e8f0; line-height: 1.5; font-size: 0.95rem; min-height: 60px; }

/* ANKET STİLLERİ */
.poll-container { margin-top:15px; background:#0f172a; padding:15px; border-radius:10px; border:1px solid #334155; }
.poll-option { 
    padding:10px; margin-bottom:5px; background:#1e293b; border-radius:5px; cursor:pointer; 
    position:relative; overflow:hidden; border:1px solid #334155; 
}
.poll-option:hover { border-color:var(--primary); }
.poll-bar {
    position:absolute; top:0; left:0; height:100%; background:rgba(245, 158, 11, 0.2); 
    width:0%; transition:width 0.5s ease; z-index:1;
}
.poll-text { position:relative; z-index:2; display:flex; justify-content:space-between; font-size:0.9rem; }
.poll-check { display:inline-block; width:15px; }

/* PAGINATION */
.pagination-area { 
    display: flex; justify-content: center; gap: 8px; 
    margin: 15px 0; flex-wrap:wrap; 
}
.page-btn { 
    background: var(--bg-card); border: 1px solid var(--border); 
    color: var(--text-sub); 
    width: 35px; height: 35px; border-radius: 8px; 
    cursor: pointer; font-weight: bold; 
    display: flex; align-items: center; justify-content: center; 
    transition: 0.2s; font-size: 0.9rem; 
}
.page-btn:hover { border-color: var(--primary); color: white; }
.page-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }

.profile-grid { display: grid; grid-template-columns: 280px 1fr 280px; gap: 20px; height: 100%; }
.profile-left, .profile-right { display: flex; flex-direction: column; }
.profile-center { overflow-y: auto; }

.profile-comments-box { flex-grow: 1; overflow-y: auto; background: rgba(0,0,0,0.2); border-radius: 10px; padding: 10px; border: 1px solid var(--border); margin-bottom: 10px; }

.topic-meta { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-sub); margin-bottom: 10px; }
.back-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--text-sub); cursor: pointer; margin-bottom: 15px; font-weight: 600; }
.mini-profile { background: var(--bg-panel); border: 1px solid var(--border); padding: 20px; border-radius: 16px; text-align: center; margin-bottom: 20px; }
.big-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); margin: 0 auto 15px; }
.xp-container { background: #334155; height: 10px; border-radius: 5px; margin: 10px 0; position: relative; overflow: hidden; }
.xp-fill { background: linear-gradient(90deg, #f59e0b, #ef4444); height: 100%; width: 0%; transition: width 0.5s; }
.xp-text { font-size: 0.75rem; color: var(--text-sub); display: flex; justify-content: space-between; margin-bottom: 15px; }
.role-badge { display: inline-block; background: rgba(245, 158, 11, 0.1); color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; margin-bottom: 10px; border: 1px solid var(--primary); text-transform: uppercase; }
.badge-display { font-size: 0.85rem; color: #fff; margin-bottom: 15px; font-weight: 500; letter-spacing: 0.5px; }
.user-posts-list { margin-top: 20px; text-align: left; border-top: 1px solid var(--border); padding-top: 20px; }
.mini-post-item { 
    background: linear-gradient(145deg, #1e293b, #0f172a); 
    padding: 15px; 
    border-radius: 12px; 
    margin-bottom: 12px; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    border-left: 3px solid transparent; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mini-post-item:hover { 
    border-left-color: var(--primary); 
    background: #263344; 
    transform: translateX(5px); 
}
.mini-post-title { 
    font-weight: 600; 
    font-size: 0.9rem; 
    color: #e2e8f0; 
    margin-bottom: 0;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    max-width: 200px; 
}
.mini-post-date { 
    font-size: 0.7rem; 
    color: #64748b; 
    min-width: 60px;
    text-align: right;
}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; display: none; align-items: center; justify-content: center; backdrop-filter: blur(5px); }

#reportModal, #notificationModal, #fullScreenImageModal { z-index: 2005 !important; }

.modal-box { background: #020617; width: 90%; max-width: 600px; border-radius: 20px; padding: 25px; border: 1px solid var(--primary); position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 15px; color: white; cursor: pointer; font-size: 1.2rem; z-index: 10; }
.form-input { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: white; padding: 12px; border-radius: 8px; margin-top: 5px; margin-bottom: 15px; }
.badge-selector { width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: white; padding: 12px; border-radius: 8px; margin-bottom: 15px; cursor: pointer; }
.badge-selector option:disabled { color: #64748b; }

.file-upload { 
    border: 2px dashed var(--border); padding: 20px; text-align: center; border-radius: 10px; cursor: pointer; color: var(--text-sub); position: relative; transition: 0.2s; display: block; margin-top: 15px; margin-bottom: 20px; box-sizing: border-box;
}
.file-upload:hover { border-color: var(--primary); color: white; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.stat-box { background: var(--bg-card); padding: 10px; border-radius: 10px; }
.stat-num { font-size: 1.2rem; font-weight: 900; color: white; }
.stat-label { font-size: 0.7rem; color: var(--text-sub); }
#scanOverlay { position: absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); display:none; flex-direction:column; align-items:center; justify-content:center; z-index:10; border-radius:10px; }
.scan-line { width:100%; height:2px; background:#ef4444; box-shadow:0 0 10px #ef4444; animation:scanMove 1s infinite; }
@keyframes scanMove { 0% {transform:translateY(-50px);} 100% {transform:translateY(50px);} }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.image-slider { position: relative; width: 100%; height: 250px; margin-top: 15px; border-radius: 10px; overflow: hidden; display: none; background: #000; }
.image-slider.active { display: block; }
.slider-img { width: 100%; height: 100%; object-fit: contain; display: none; animation: fadeEffect 0.5s; background:#000; cursor: zoom-in; }
.slider-img.show { display: block; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: white; border: none; padding: 10px 15px; cursor: pointer; font-size: 1.2rem; border-radius: 5px; opacity: 0; transition: opacity 0.3s; z-index: 5; }
.image-slider:hover .slider-btn { opacity: 1; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }
.slider-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; z-index: 5; }
@keyframes fadeEffect { from {opacity: 0.4} to {opacity: 1} }

@media (max-width: 1200px) {
    .profile-grid { grid-template-columns: 1fr; }
    .layout { grid-template-columns: 1fr; padding-bottom: 70px; padding-left: 10px; padding-right: 10px; }
    .sidebar-left, .sidebar-right { display: none; }
    .navbar .search-bar { display: none; }
    .mobile-search-icon { display: block; }
    .mobile-menu-trigger { display: block; }
    .desktop-only { display: none !important; }
    .mobile-bottom-nav { display: flex; }
    .mobile-top-actions { display: flex !important; }

    /* MOBİL İÇİN YORUM VE POST DÜZENİ */
    .comment { 
        flex-direction: row !important; 
        align-items: stretch;
    }
    .comment-sidebar { 
        width: 90px !important; 
        padding: 10px 2px !important;
        border-right: 1px solid var(--border) !important; 
        border-bottom: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 5px !important;
    }
    .c-avatar { width: 45px !important; height: 45px !important; }
    .c-username { font-size: 0.75rem !important; overflow: hidden; text-overflow: ellipsis; width: 100%; }
    .title-under-name { font-size: 0.65rem !important; }
    .c-role { font-size: 0.6rem !important; padding: 1px 4px !important; }
    .c-stats { display: none !important; } 
    .c-badge { display: none !important; }

    .comment-main {
        padding: 10px !important;
    }
    /* MOBİLDE BUTONLARI DÜZENLE */
    .action-btns button {
        margin-right: 5px;
        margin-bottom: 5px;
    }
    .friends-panel { bottom: 65px; height: 60vh; right: 5px; width: 200px; }
}

.notification-item {
    background: #1e293b; padding:10px; border-radius:10px; 
    border:1px solid #334155; cursor:pointer; 
    transition:0.2s; font-size:0.9rem;
}
.notification-item:hover { border-color: #f59e0b; }
.notification-item.unread { border-left: 3px solid #ef4444; }

.reply-preview-container {
    background: #0f172a; border-left: 3px solid #f59e0b;
    padding: 10px; margin-bottom: 10px; border-radius: 5px;
    animation: fadeIn 0.3s;
}

.quoted-block { 
    background: rgba(15, 23, 42, 0.5); border-left: 3px solid var(--primary); 
    padding: 8px 12px; margin-bottom: 10px; border-radius: 0 8px 8px 0; 
    font-size: 0.8rem; color: #94a3b8; margin-top: 5px;
}
.quoted-user { color: var(--primary); font-weight: bold; margin-bottom: 3px; display: block; font-size: 0.75rem; }

.admin-list-container { max-height: 200px; overflow-y: auto; margin-top: 10px; }
.admin-user-item { background: #1e293b; padding: 10px; margin-bottom: 5px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #334155; }
.admin-action-btn { background: transparent; border: 1px solid #ef4444; color: #ef4444; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; transition: 0.2s; }
.admin-action-btn:hover { background: #ef4444; color: white; }
#editContentInput { width: 100%; min-height: 150px; background: var(--bg-card); color: white; border: 1px solid var(--border); padding: 10px; border-radius: 8px; font-family: inherit; }

.dm-user-item { 
    padding: 15px; border-bottom: 1px solid var(--border); cursor: pointer; 
    display: flex; align-items: center; gap: 15px; transition: 0.2s; 
}
.dm-user-item:hover { background: #1e293b; }
.dm-user-item img { border: 2px solid var(--primary); }

.dm-unread-glow {
    position: relative;
    background: rgba(239, 68, 68, 0.1);
}
.dm-unread-glow::after {
    content: ''; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 12px; height: 12px; background: #ef4444; border-radius: 50%;
    box-shadow: 0 0 10px #ef4444; animation: pulseDot 2s infinite;
}

.message-bubble { 
    padding: 10px 15px; border-radius: 12px; max-width: 75%; 
    font-size: 0.9rem; line-height: 1.4; word-wrap: break-word; 
    margin-bottom: 15px; position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex; flex-direction: column; gap: 5px;
}
.msg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px; }
.msg-avatar { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }
.msg-name { font-weight: bold; font-size: 0.75rem; color: #fbbf24; }
.msg-actions { 
    display: none; 
    position: absolute; top: -10px; right: 0; 
    background: #0f172a; border: 1px solid #334155; 
    padding: 3px; border-radius: 5px; gap: 5px; 
}
.message-bubble:hover .msg-actions, .message-bubble:active .msg-actions { display: flex; }
.msg-btn { font-size: 0.7rem; color: #cbd5e1; cursor: pointer; padding: 2px 5px; }
.msg-btn:hover { color: var(--primary); }
.msg-time { align-self: flex-end; font-size: 0.65rem; opacity: 0.7; margin-top: 2px; display: flex; align-items: center; gap: 5px;}

/* DM TİK RENKLERİ - WHATSAPP TARZI */
.tick-sent { color: #94a3b8; } /* Gri */
.tick-seen { 
    color: #3b82f6 !important; /* Mavi */
    text-shadow: none; 
} 

.msg-me { 
    background: linear-gradient(135deg, #b45309, #78350f); 
    color: white; align-self: flex-end; border-bottom-right-radius: 2px; 
}
.msg-other { 
    background: #334155; color: white; align-self: flex-start; 
    border-bottom-left-radius: 2px; 
}

.dm-reply-preview { 
    background: rgba(0,0,0,0.2); border-left: 2px solid #ccc; 
    padding: 4px; font-size: 0.7rem; color: #ddd; margin-bottom: 4px; border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.friends-panel {
    position: fixed; bottom: 0; right: 20px; width: 250px;
    background: var(--bg-panel); border: 1px solid var(--border); border-bottom: none;
    border-radius: 12px 12px 0 0; z-index: 1000;
    display: flex; flex-direction: column;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}
.fp-header {
    background: var(--primary); color: black; font-weight: bold; padding: 10px 15px;
    border-radius: 12px 12px 0 0; display: flex; justify-content: space-between; align-items: center;
}
.fp-content {
    height: 300px; overflow-y: auto; background: var(--bg-card); padding: 10px;
    display: flex; flex-direction: column; gap: 5px;
}
.friend-item {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer;
    transition: 0.2s;
}
.friend-item:hover { background: rgba(255,255,255,0.1); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-online { background: #10b981; box-shadow: 0 0 5px #10b981; }
.status-offline { background: #64748b; }

.blocked-placeholder {
    background: #0f172a; border: 1px dashed #64748b; padding: 15px; margin-bottom: 15px; border-radius: 10px;
    text-align: center; color: #94a3b8; font-size: 0.9rem;
}

#fullScreenImage.zoomed {
    transform: scale(2.5);
    cursor: zoom-out;
}