/* ==========================================================================
   EGAME.AZ - CLUB COMPONENT STYLES (PREMIUM VIP VERSION)
   ========================================================================== */

/* --- 1. ƏSAS LAYOUT --- */
.egc-layout {
    display: grid;
    grid-template-columns: 220px 1fr 250px;
    gap: 15px;
    height: calc(100vh - 160px);
}

.egc-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* --- 2. XÜSUSİ SCROLLBAR (PREMIUM GÖRÜNÜŞ ÜÇÜN) --- */
.egc-chat-box::-webkit-scrollbar,
.egc-card::-webkit-scrollbar {
    width: 6px;
}
.egc-chat-box::-webkit-scrollbar-track,
.egc-card::-webkit-scrollbar-track {
    background: transparent;
}
.egc-chat-box::-webkit-scrollbar-thumb,
.egc-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.egc-chat-box::-webkit-scrollbar-thumb:hover,
.egc-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.3); /* Accent rənginə uyğun hover */
}

/* --- 3. OTAQLAR SİYAHISI --- */
.egc-room-item {
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 6px;
    color: #eee;
}

.egc-room-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px); /* Hover edəndə yüngül sağa sürüşmə */
}

.egc-room-item.egc-active {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* --- 4. ÇAT SAHƏSİ --- */
.egc-chat-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5); /* Dərinlik effekti */
}

.egc-chat-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.egc-chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

/* --- 5. MESAJ BUBBLE (XÜBABLARI) --- */
.egc-msg-row {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
}

.egc-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

.egc-msg-bubble {
    padding: 10px 14px;
    max-width: 85%;
    transition: 0.2s;
}

.egc-msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 4px;
}

.egc-msg-user { font-size: 11px; font-weight: 800; }
.egc-msg-time { font-size: 9px; }
.egc-msg-text { margin: 0; font-size: 13px; line-height: 1.5; word-break: break-word; }

/* --- 6. İNPUT VƏ DÜYMƏ (ANTI-SPAM DƏSTƏYİ İLƏ) --- */
.egc-input-wrap {
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    align-items: center;
}

.egc-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    color: #fff;
    outline: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.egc-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.egc-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.egc-send-btn {
    background: var(--accent);
    color: #000;
    border: none;
    font-weight: 800;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    transition: 0.2s;
    height: 42px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.egc-send-btn:hover:not(:disabled) {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.egc-send-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* --- 7. ONLAYN ÜZVLƏR SİYAHISI --- */
.egc-online-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
    transition: 0.2s;
    cursor: default;
}

.egc-online-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.egc-online-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    border: 1px solid #111;
}

/* --- 8. ANİMASİYALAR (VIP EFEKTLƏR) --- */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-enter {
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}






/* ==========================================================================
   EGAME.AZ - KLUBLAR/OTAQLAR (CLUB) MOBİL UYĞUNLAŞDIRMASI (RESPONSIVE)
   ========================================================================== */

/* --- 1. PLANŞETLƏR VƏ KİÇİK EKRANLAR (Max: 1024px) --- */
@media screen and (max-width: 1024px) {
    .egc-layout {
        /* Planşetdə 3 sütun sığmayacağı üçün Onlayn panelini gizlədib 2 sütun edirik */
        grid-template-columns: 200px 1fr !important; 
    }
    .egc-layout > .egc-card:nth-child(3) {
        display: none !important; 
    }
}

/* --- 2. MOBİL TELEFONLAR (Max: 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Əsas Qəlib - 100% Hündürlük Kilidi */
    .egc-layout {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100dvh - 90px) !important;
        gap: 10px !important;
        overflow: hidden !important;
    }

    /* 2. SOL PANEL (Otaqlar) -> Üstə, horizontal sürüşən menyu olur */
    .egc-layout > .egc-card:nth-child(1) {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 10px !important;
        flex-shrink: 0 !important;
        gap: 8px !important;
        border-radius: 12px !important;
        /* Scroll çubuğunu gizlədirik ki təmiz qalsın */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .egc-layout > .egc-card:nth-child(1)::-webkit-scrollbar { display: none; }

    /* Otaq düymələri mobildə oval (pill) formaya keçir */
    .egc-room-item {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 8px 16px !important;
        border-radius: 20px !important; 
    }

    /* 3. ORTA PANEL (Çat Sahəsi) - Daşmanın qarşısı alınır */
    .egc-chat-area {
        flex: 1 !important;
        height: 100% !important;
        min-height: 0 !important; /* VACİB: Flexbox daşmasının qarşısını alır */
        border-radius: 12px !important;
    }

    .egc-chat-header {
        padding: 12px 15px !important;
    }

    /* Mesajların sürüşdüyü ərazi */
    .egc-chat-box {
        padding: 15px 10px !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }

    /* Mesaj Baloncukları */
    .egc-msg-bubble {
        max-width: 90% !important; /* Mobildə daha çox yer tutsun */
        font-size: 13px !important;
    }

    /* 4. İNPUT PANELİ - EKRANIN ALTINA BƏRKİDİLİR */
    .egc-input-wrap {
        padding: 10px !important;
        flex-shrink: 0 !important; /* İNPUT ƏSLA AŞAĞI QAÇA BİLMƏZ */
        gap: 8px !important;
    }

    .egc-input {
        padding: 12px 15px !important;
        font-size: 14px !important;
        border-radius: 20px !important; /* Mobildə oval input daha qəşəngdir */
    }

    /* Göndər Düyməsi mobildə yığcam dairəvi formaya keçir */
    .egc-send-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border-radius: 50% !important; 
    }
    
    /* Düymənin içindəki "GÖNDƏR" yazısını gizlədirik, yalnız OX ikonu qalsın */
    .egc-send-btn span:not(.material-icons) {
        display: none !important;
    }

    /* 5. SAĞ PANEL (Onlayn İstifadəçilər) */
    .egc-layout > .egc-card:nth-child(3) {
        display: none !important; /* Mobildə yer tutmasın deyə tamamilə ləğv edilir */
    }
}