/* ============================================================
   Illuminati Website — Live Chat Widget CSS
   Two independent chat widgets: bottom-left & bottom-right
   ============================================================ */

/* ─── Widget Container ────────────────────────────────────── */
.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}
.chat-widget-right {
    left: auto;
    right: 24px;
    align-items: flex-end;
}

/* ─── Toggle Button ───────────────────────────────────────── */
.chat-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8d143f, #b01a4e);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(141,20,63,0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}
.chat-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(141,20,63,0.6);
}
.chat-toggle-btn i { font-size: 15px; }
.chat-toggle-right {
    background: linear-gradient(135deg, #b8882a, #d4a853) !important;
    box-shadow: 0 4px 20px rgba(212,168,83,0.4) !important;
}
.chat-toggle-right:hover { box-shadow: 0 8px 30px rgba(212,168,83,0.6) !important; }
.chat-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    color: #fff;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

/* ─── Chat Panel ──────────────────────────────────────────── */
.chat-panel {
    width: 320px;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    border: 1px solid rgba(212,168,83,0.25);
    margin-bottom: 12px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-panel-right { /* same panel, just positioned on the right side via widget container */ }

/* ─── Chat Header ─────────────────────────────────────────── */
.chat-header {
    background: linear-gradient(135deg, #8d143f, #6b0f30);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212,168,83,0.2);
}
.chat-panel-right .chat-header {
    background: linear-gradient(135deg, #b8882a, #8a6420);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
}
.chat-avatar-gold { background: rgba(0,0,0,0.2); }
.chat-title {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.chat-status {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-dot {
    width: 7px; height: 7px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.chat-minimize {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}
.chat-minimize:hover { color: #fff; }

/* ─── Messages Area ───────────────────────────────────────── */
.chat-messages {
    height: 260px;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0d0d0d;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(212,168,83,0.3); border-radius: 2px; }
.chat-msg { display: flex; flex-direction: column; }
.admin-msg { align-items: flex-start; }
.user-msg  { align-items: flex-end; }
.msg-bubble {
    max-width: 80%;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.admin-msg .msg-bubble {
    background: #1e1e1e;
    color: #ddd;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.07);
}
.user-msg .msg-bubble {
    background: linear-gradient(135deg, #8d143f, #b01a4e);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-panel-right .user-msg .msg-bubble {
    background: linear-gradient(135deg, #b8882a, #d4a853);
    color: #000;
}
.msg-time {
    font-size: 10px;
    color: #444;
    margin-top: 3px;
    padding: 0 4px;
}
.chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px 0;
}
.chat-typing span {
    width: 6px; height: 6px;
    background: #555;
    border-radius: 50%;
    animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

/* ─── Input Area ──────────────────────────────────────────── */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,168,83,0.2);
    color: #ddd;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input:focus { border-color: rgba(212,168,83,0.5); }
.chat-input::placeholder { color: #444; }
.chat-send-btn {
    background: #8d143f;
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.chat-send-btn:hover { background: #b01a4e; transform: scale(1.1); }
.chat-panel-right .chat-send-btn { background: #b8882a; }
.chat-panel-right .chat-send-btn:hover { background: #d4a853; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .chat-panel { width: 280px; }
    .chat-toggle-btn .chat-btn-label { display: none; }
    .chat-widget { bottom: 16px; left: 16px; }
    .chat-widget-right { left: auto; right: 16px; }
}

