/* ========================================
   SOHBET STİLLERİ (Chat Styles)
   ======================================== */

#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chat-bubble {
    background-color: var(--chat-bubble-bg);
    color: var(--chat-bubble-text);
    position: relative;
    cursor: pointer;
}

#unread-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.2s;
}

#unread-count.visible {
    transform: scale(1);
}

#chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

#chat-window.open {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-message-list {
    scroll-behavior: smooth;
}

.message-bubble {
    max-width: 80%;
}

.message-bubble.is-own {
    background-color: #ca8a04;
}

.message-bubble.is-other {
    background-color: #334155;
}

html.light .message-bubble.is-own {
    background-color: #fde68a;
    color: #422006;
}

html.light .message-bubble.is-other {
    background-color: #e2e8f0;
    color: #1e293b;
}

.mod-btn {
    opacity: 0;
    transition: opacity 0.2s;
}

.message-wrapper:hover .mod-btn {
    opacity: 0.6;
}

.mod-btn:hover {
    opacity: 1;
}

.role-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

.role-admin {
    background-color: #ef4444;
    color: white;
}

.role-moderator {
    background-color: #3b82f6;
    color: white;
}

.user-status-banned {
    color: #f87171;
}

.user-status-muted {
    color: #fbbf24;
}

