
/* Floating Chat Widget Styles */

#rgr-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chat-button {
    width: 65px;
    height: 65px;
    background: var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: var(--transition);
    color: #000;
    font-size: 1.8rem;
}

.chat-button:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 15px;
    display: none; /* Toggle via JS */
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: slideUp 0.3s ease-out;
}

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

.chat-header {
    background: var(--gold-soft-gradient);
    padding: 1.5rem;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}

.chat-close {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(rgba(10,10,10,0.95), rgba(10,10,10,0.95)), url('https://www.transparenttextures.com/patterns/dark-matter.png');
}

.message {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-bot {
    background: var(--bg-accent);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message-user {
    background: var(--gold-soft);
    color: var(--gold-primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid var(--border-gold);
}

.chat-input-area {
    padding: 1rem;
    background: var(--bg-dark-gray);
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-black);
    border: 1px solid var(--glass-border);
    padding: 0.7rem;
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-size: 0.85rem;
}

.chat-input-area button {
    background: var(--gold-primary);
    border: none;
    padding: 0 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* =============================================
   CHAT WIDGET MOBILE RESPONSIVE
============================================= */
@media (max-width: 600px) {
    #rgr-chat-widget { bottom: 15px; right: 15px; }

    .chat-window {
        width: calc(100vw - 30px);
        right: 0;
        bottom: 75px;
        height: 420px;
    }

    .chat-button { width: 55px; height: 55px; font-size: 1.5rem; }
}
