/* ===== TAILWIND CDN BASE + CUSTOM THEME ===== */

/* Light Theme (default) */
:root {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8fafc;
    --bg-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #eef2ff;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --sidebar-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1a2332;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-light: #1e1b4b;
    --danger: #f87171;
    --success: #4ade80;
    --warning: #fbbf24;
    --sidebar-bg: #1e293b;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Base */
html {
    height: 100%;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    transition: background 0.2s, color 0.2s;
    display: flex;
    flex-direction: column;
}

/* Sticky footer: main içerik esneyerek footer'ı aşağı iter */
main {
    flex: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Layout */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.2s;
}

.card-hover:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

[data-theme="dark"] .navbar {
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Site Logo */
.site-logo {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Desktop Nav Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    position: relative;
    text-decoration: none;
}

.nav-link i {
    font-size: 15px;
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-link-active {
    color: var(--accent) !important;
    background: var(--accent-light);
}

.nav-link-active i {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover { opacity: 0.9; }

/* Form elements */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Forum specific */
.forum-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

.forum-stats {
    text-align: center;
    min-width: 80px;
}
.forum-stats .num { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.forum-stats .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }

/* Topic row */
.topic-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.topic-row:hover { background: var(--bg-hover); }
.topic-row:last-child { border-bottom: none; }

.topic-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--accent-light);
    color: var(--accent);
    flex-shrink: 0;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-pinned { background: #fef3c7; color: #d97706; }
.badge-locked { background: #fee2e2; color: #dc2626; }
.badge-admin { background: #eef2ff; color: #4f46e5; }
.badge-mod { background: #f0fdf4; color: #16a34a; }
.badge-user { background: var(--bg-hover); color: var(--text-secondary); }
.badge-banned { background: #fef2f2; color: #dc2626; }
.badge-active { background: #f0fdf4; color: #16a34a; }

[data-theme="dark"] .badge-pinned { background: #451a03; color: #fbbf24; }
[data-theme="dark"] .badge-locked { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .badge-admin { background: #1e1b4b; color: #818cf8; }
[data-theme="dark"] .badge-mod { background: #052e16; color: #4ade80; }
[data-theme="dark"] .badge-banned { background: #450a0a; color: #fca5a5; }
[data-theme="dark"] .badge-active { background: #052e16; color: #4ade80; }

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-hover);
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 120px; height: 120px; }

/* Sidebar widget */
.widget {
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.widget-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-body { padding: 12px 16px; }
.widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.widget-item:last-child { border-bottom: none; }

/* Post content */
.post-content {
    line-height: 1.7;
    font-size: 15px;
}
.post-content p { margin-bottom: 12px; }
.post-content img { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 16px;
    margin: 12px 0;
    background: var(--bg-tertiary);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}
.post-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Fira Code', monospace;
}
.post-content pre {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content ul, .post-content ol { padding-left: 24px; margin: 8px 0; }

/* Theme toggle button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}
.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* Mobile menu (hidden on desktop) */
.mobile-menu { display: none; }
.mobile-menu-overlay { display: none; }

/* Online indicator */
.online-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid var(--bg-secondary);
    position: absolute;
    bottom: 0;
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-container { padding: 0 12px; }
    .forum-stats { display: none; }
    .desktop-nav { display: none !important; }
    .mobile-nav-toggle { display: block; }
    .topic-row { padding: 12px; }
    .forum-icon { width: 40px; height: 40px; font-size: 18px; }
    
    /* Mobile: sidebar içeriğin altında gösterilir */
    .sidebar-column { display: block !important; width: 100% !important; }
    .sidebar-column.active { display: block !important; width: 100% !important; position: static; z-index: auto; overflow: visible; padding: 0; }
    .sidebar-overlay, .sidebar-overlay.active { display: none !important; }
    main > .forum-container > .flex { flex-direction: column; }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border);
        z-index: 300;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    }
    .mobile-menu.open { 
        transform: translateX(0);
    }
    .mobile-menu-overlay { display: none; }
    .mobile-menu-overlay.open { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 299; animation: fadeIn 0.2s ease-out; }
}

@media (max-width: 480px) {
    .topic-row { flex-wrap: wrap; }
    .forum-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .btn { padding: 6px 12px; font-size: 13px; }
}

/* User Info Column (Topic Page) */
.user-info {
    text-align: center;
    padding: 20px 16px;
}

.user-info-avatar {
    margin-bottom: 12px;
}

.user-info-avatar .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    object-fit: cover;
}

[data-theme="dark"] .user-info-avatar .avatar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.user-info-username {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.15s;
}

.user-info-username:hover {
    color: var(--accent);
}

.user-info-username.user-banned {
    text-decoration: line-through;
    color: var(--danger);
}

/* Topic/Post banned user row */
.topic-row.user-banned-row {
    opacity: 0.75;
}
.topic-row.user-banned-row .topic-title {
    text-decoration: line-through;
    color: var(--danger);
}

/* Inline banned badge */
.banned-strike {
    text-decoration: line-through;
}

.user-info .badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.user-info-stats {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 0 4px;
}

.user-stat-label {
    color: var(--text-muted);
}

.user-stat-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Online Users */
.online-users {
    line-height: 1.8;
}

.online-users a {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.15s;
}

.online-users a:hover {
    color: var(--accent);
}

/* Ad containers */
.ad-container {
    text-align: center;
    overflow: hidden;
    clear: both;
}
.ad-container iframe,
.ad-container ins,
.ad-container img {
    max-width: 100%;
    vertical-align: middle;
}
.ad-container > div,
.ad-container > ins {
    margin: 0 auto;
}

/* Profile Comments */
.profile-comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.profile-comment-body {
    flex: 1;
    min-width: 0;
}

.profile-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.profile-comment-author:hover {
    color: var(--accent);
}

.profile-comment-time {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-comment-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-break: break-word;
}

.profile-comment-actions {
    margin-top: 8px;
}

.profile-comment-pending {
    background: var(--bg-tertiary);
    border: 1px dashed var(--warning);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.profile-comment-input {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.profile-comment-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease-out; }

/* Toast notifications */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 10px; color: white; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: fadeIn 0.3s; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--accent); }

/* Loading spinner */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* User menu dropdown */
.user-menu { position: relative; }
.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    display: none;
    z-index: 200;
    overflow: hidden;
}
.user-menu-dropdown.show { display: block; }
.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.15s;
}
.user-menu-dropdown a:hover { background: var(--bg-hover); }
.user-menu-dropdown .divider { border-top: 1px solid var(--border); margin: 4px 0; }

/* TinyMCE sabit yükseklik */
.tinymce-editor {
    height: 400px !important;
    resize: vertical;
}
.tox-tinymce {
    min-height: 400px !important;
    transition: none !important;
}
.tox-tinymce .tox-edit-area {
    min-height: 340px !important;
}
.tox-tinymce-aux {
    z-index: 9999 !important;
}

/* Post action buttons (düzenle, alıntı yap, hızlı cevap) */
.post-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.post-action-btn:hover {
    color: var(--accent);
    background: var(--accent-light);
    border-color: var(--accent);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.15);
}
.post-action-btn i {
    font-size: 13px;
}

/* Quote block in topic content */
.post-content blockquote {
    border-left: 3px solid var(--accent);
    background: var(--bg-tertiary);
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.post-content blockquote strong {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 4px;
}

/* Category colors */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== ÖZEL MESAJLAŞMA STİLLERİ ===== */

/* Conversation list */
.conv-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.conv-row:hover { background: var(--bg-hover); }
.conv-row:last-child { border-bottom: none; }
.conv-row-unread { background: var(--accent-light); }
.conv-row-unread:hover { background: var(--accent-light); filter: brightness(0.97); }

.conv-avatar {
    flex-shrink: 0;
    position: relative;
}

.conv-body {
    flex: 1;
    min-width: 0;
}

.conv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.conv-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.conv-time {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.conv-subject {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-last-message {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.conv-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.conv-delete {
    padding: 6px;
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    transition: all 0.15s;
    opacity: 0;
}
.conv-row:hover .conv-delete { opacity: 1; }
.conv-delete:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

/* Chat messages */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: fadeIn 0.2s ease-out;
}

.chat-message-sent {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-received {
    align-self: flex-start;
}

.chat-message-avatar {
    flex-shrink: 0;
    align-self: flex-end;
}

.chat-message-avatar .avatar {
    width: 28px;
    height: 28px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    position: relative;
}

.chat-message-sent .chat-bubble {
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message-received .chat-bubble {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-bubble .chat-bubble-time {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-message-sent .chat-bubble .chat-bubble-time {
    color: rgba(255,255,255,0.75);
}

.chat-message-received .chat-bubble .chat-bubble-time {
    color: var(--text-muted);
}

/* Chat input area */
.chat-input-area {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    background: var(--bg-secondary);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input-row textarea {
    flex: 1;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    padding: 10px 14px;
    border-radius: 12px;
}

.chat-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.15s;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Empty state */
.empty-state {
    padding: 48px 16px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state p {
    font-size: 14px;
}

/* ===== BİLDİRİM SİSTEMİ STİLLERİ ===== */

/* Notification Bell */
.notif-menu {
    position: relative;
}

.notif-trigger {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    position: relative;
}
.notif-trigger:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239,68,68,0.3);
}

/* Notification Dropdown */
.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    width: 380px;
    max-width: 90vw;
    display: none;
    z-index: 300;
    overflow: hidden;
}
.notif-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
}

.notif-dropdown-header button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s;
}
.notif-dropdown-header button:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-loading {
    padding: 24px;
    text-align: center;
}

.notif-empty {
    padding: 40px 24px;
    text-align: center;
}

/* Notification Items (dropdown) */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.notif-item:hover {
    background: var(--bg-hover);
}
.notif-item:last-child {
    border-bottom: none;
}

.notif-item-read {
    opacity: 0.65;
}

.notif-item-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.notif-item-avatar .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.notif-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 6px;
}

.notif-dropdown-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    border-top: 1px solid var(--border);
    background: var(--bg-tertiary);
    text-decoration: none;
    transition: background 0.15s;
}
.notif-dropdown-footer:hover {
    background: var(--bg-hover);
}

/* Notification Page Items */
.notif-page-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.notif-page-item:hover {
    background: var(--bg-hover);
}
.notif-page-item:last-child {
    border-bottom: none;
}

.notif-page-item-read {
    opacity: 0.6;
}

.notif-page-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notif-page-item-body {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.notif-page-item-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.notif-page-item-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notif-page-item-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 8px;
    box-shadow: 0 0 0 2px var(--bg-secondary);
}

/* Notification Page Item Wrapper */
.notif-page-item-wrap {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}
.notif-page-item-wrap:last-child {
    border-bottom: none;
}

.notif-page-item-wrap .notif-page-item {
    border-bottom: none;
}

/* Delete button positioned inside the flex row */
.notif-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    flex-shrink: 0;
    align-self: center;
    opacity: 0;
    margin-left: 4px;
}
.notif-page-item:hover .notif-delete-btn {
    opacity: 1;
}
.notif-delete-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* ===== Ban Modal ===== */
.ban-modal-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.ban-modal-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.ban-modal-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
}
.ban-modal-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Ban süresi kalan bilgisi */
.ban-expires-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
