/* Mozart's Restaurant - Chatbot Styles */
/* Modular chatbot styling that can be included in any page */

/* Quick Suggestions */
.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 20px;
    margin-bottom: 5px;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.suggestion-chip:hover {
    background: rgba(228, 36, 89, 0.2);
    border-color: rgba(228, 36, 89, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 36, 89, 0.3);
}

/* Error Message Styling */
.error-message {
    background: rgba(220, 38, 38, 0.1) !important;
    border-left: 3px solid rgba(220, 38, 38, 0.6);
}

.error-message .message-content {
    color: rgba(252, 165, 165, 1);
}

/* Enhanced Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 420px;
    max-width: calc(100vw - 50px);
    height: 650px;
    max-height: calc(100vh - 140px);
    background: rgba(10, 10, 20, 0.95);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Chatbot Header */
.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(228, 36, 89, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chatbot-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e42459, #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(228, 36, 89, 0.4);
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.chatbot-status {
    font-size: 0.8rem;
    color: #e42459;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chatbot-status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #e42459;
    border-radius: 50%;
    box-shadow: 0 0 10px #e42459;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

.chatbot-header-actions {
    display: flex;
    gap: 10px;
}

.chatbot-clear,
.chatbot-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-clear:hover,
.chatbot-close:hover {
    background: rgba(228, 36, 89, 0.1);
    border-color: rgba(228, 36, 89, 0.3);
    color: #e42459;
}

/* Chatbot Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Message Styles */
.message {
    max-width: 85%;
    animation: messageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    align-self: flex-end;
}

.bot-message {
    align-self: flex-start;
}

.message-content {
    padding: 14px 20px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.user-message .message-content {
    background: linear-gradient(135deg, #e42459, #a855f7);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(228, 36, 89, 0.2);
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.message-timestamp {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    display: block;
}

.user-message .message-timestamp {
    text-align: right;
}

.message-content strong {
    color: #fbbf24;
}

/* Chat Image Grid */
.chat-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.chat-image-thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-image-thumb:hover {
    transform: scale(1.05);
}

/* Chat Actions */
.chat-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.chat-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.chat-btn:hover {
    background: rgba(228, 36, 89, 0.1);
    border-color: #e42459;
    color: #e42459;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #e42459;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

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

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

/* Chatbot Input */
.chatbot-input {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 20px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chatbot-input input:focus {
    outline: none;
    border-color: rgba(228, 36, 89, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-input button {
    background: linear-gradient(135deg, #e42459, #a855f7);
    border: none;
    border-radius: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(228, 36, 89, 0.3);
}

.chatbot-input button:hover {
    transform: scale(1.05) translateY(-2px);
}

/* Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e42459, #a855f7);
    border: none;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(228, 36, 89, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1500;
    color: white;
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.chatbot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fbbf24;
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 10px;
    border: 3px solid #0a0a14;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 30px);
        height: calc(100vh - 100px);
        bottom: 20px;
        right: 15px;
    }
}