/* ====================================
   TORRID - Chatbot Styles
==================================== */

.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    width: 60px;
    height: 60px;
    background-color: #D4AF37;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: #B8962E;
}

.chatbot-toggle i {
    color: #0B0B0B;
    font-size: 24px;
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #1A1A1A;
    border: 2px solid #D4AF37;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

/* Chatbot Header */
.chatbot-header {
    background-color: #0B0B0B;
    padding: 20px;
    border-bottom: 1px solid #D4AF37;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background-color: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-avatar i {
    color: #0B0B0B;
    font-size: 20px;
}

.chatbot-title h4 {
    color: #D4AF37;
    font-size: 16px;
    margin-bottom: 2px;
}

.chatbot-title p {
    color: #B8962E;
    font-size: 10px;
}

.chatbot-close {
    background: none;
    border: none;
    color: #F8F8F8;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.chatbot-close:hover {
    color: #D4AF37;
}

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #1A1A1A;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.message.bot .message-avatar {
    background-color: #D4AF37;
    color: #0B0B0B;
}

.message.user .message-avatar {
    background-color: #B8962E;
    color: #0B0B0B;
}

.message-content {
    background-color: #0B0B0B;
    padding: 12px;
    border-radius: 10px;
    position: relative;
}

.message.bot .message-content {
    border-bottom-left-radius: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.message.user .message-content {
    background-color: #D4AF37;
    color: #0B0B0B;
    border-bottom-right-radius: 0;
}

.message-content p {
    font-size: 13px;
    line-height: 1.5;
}

.message-time {
    font-size: 9px;
    color: #B8962E;
    margin-top: 5px;
    display: block;
}

.message.user .message-time {
    color: #0B0B0B;
    opacity: 0.7;
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
    background-color: #0B0B0B;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.quick-reply-btn {
    padding: 8px 15px;
    background-color: transparent;
    border: 1px solid #D4AF37;
    color: #F8F8F8;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.quick-reply-btn:hover {
    background-color: #D4AF37;
    color: #0B0B0B;
}

/* Chatbot Input */
.chatbot-input {
    padding: 15px;
    background-color: #0B0B0B;
    border-top: 1px solid #D4AF37;
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    background-color: #1A1A1A;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #F8F8F8;
    font-size: 13px;
    outline: none;
    border-radius: 5px;
}

.chatbot-input input:focus {
    border-color: #D4AF37;
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    background-color: #D4AF37;
    border: none;
    color: #0B0B0B;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.chatbot-input button:hover {
    background-color: #B8962E;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 12px;
    background-color: #0B0B0B;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #D4AF37;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(212, 175, 55, 0.6);
    }
    100% {
        box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #1A1A1A;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .chatbot-window {
        width: 300px;
        height: 450px;
        right: 0;
        bottom: 70px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    }
}