/* AI Chatbot Styles for Yono's 360 Photobooth */

.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
}

/* Chat Toggle Button */
.chat-toggle {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 215, 0, 0.5);
    max-width: 280px;
}

.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    border-color: #ffd700;
}

.chat-toggle i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.chat-badge {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Window */
.chat-window {
    display: none;
    flex-direction: column;
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-info h4 {
    color: #ffd700;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-header-info span {
    color: #ccc;
    font-size: 0.8rem;
}

.chat-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #000;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    line-height: 1.4;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a1a;
    font-weight: 500;
}

.chat-message.bot .message-content {
    background: #2a2a2a;
    color: #ccc;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 5px;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    display: flex;
    padding: 15px 20px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    background: #2a2a2a;
    color: #ccc;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

#chat-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

#chat-input::placeholder {
    color: #666;
}

.chat-send {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.chat-send:active {
    transform: scale(0.95);
}

/* Chat Footer */
.chat-footer {
    padding: 10px 20px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

.chat-footer a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.chat-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-window {
        width: calc(100vw - 30px);
        height: 70vh;
        max-width: 350px;
    }
    
    .chat-toggle {
        max-width: 200px;
        padding: 10px 15px;
    }
    
    .chat-badge {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 20px);
        height: 75vh;
        bottom: 10px;
        right: 10px;
    }
    
    .chatbot-widget {
        bottom: 10px;
        right: 10px;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}