
/* 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;
}
