/* MODO Mimarlık Futuristic Header-Integrated Chatbot CSS */

/* Main Header Transitions */
#main-header {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform-origin: top center;
}

/* Expanded Header State */
#main-header.header-expanded {
    height: 540px !important;
    border-radius: 32px !important;
    border-color: rgba(235, 115, 45, 0.4) !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(235, 115, 45, 0.15) !important;
}

/* Expanded Chat Content Area */
#header-chat-content {
    opacity: 0;
    pointer-events: none;
    height: 0;
    transition: opacity 0.3s ease, height 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.5s ease;
}

#main-header.header-expanded #header-chat-content {
    opacity: 1 !important;
    pointer-events: auto !important;
    height: 430px !important;
    margin-top: 10px !important;
}

/* Messages Log Area */
.modo-chatbot-messages {
    flex-grow: 1;
    padding: 10px 5px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(235, 115, 45, 0.2) transparent;
}

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

.modo-chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.modo-chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(235, 115, 45, 0.2);
    border-radius: 2px;
}

/* Message Bubbles */
.modo-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: modo-fade-in-up 0.3s ease-out forwards;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.modo-chat-msg.bot {
    align-self: flex-start;
}

.modo-chat-msg.user {
    align-self: flex-end;
}

.modo-chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.modo-chat-msg.bot .modo-chat-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    border-bottom-left-radius: 4px;
}

.modo-chat-msg.user .modo-chat-bubble {
    background: rgba(235, 115, 45, 0.15);
    border: 1px solid rgba(235, 115, 45, 0.3);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.modo-chat-time {
    font-size: 9px;
    color: #606060;
    margin-top: 3px;
    padding: 0 4px;
}

.modo-chat-msg.user .modo-chat-time {
    align-self: flex-end;
}

/* Typing Indicator */
.modo-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 6px;
    align-items: center;
    justify-content: center;
}

.modo-typing-dot {
    width: 5px;
    height: 5px;
    background-color: #eb732d;
    border-radius: 50%;
    opacity: 0.4;
    animation: modo-typing-bounce 1.4s infinite ease-in-out;
}

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

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

/* Action Buttons / Menus */
.modo-chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
}

.modo-chat-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5e5e5;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    outline: none;
    text-decoration: none;
}

.modo-chat-action-btn:hover {
    background: rgba(235, 115, 45, 0.08);
    border-color: rgba(235, 115, 45, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.modo-chat-action-btn i {
    color: #eb732d;
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.25s;
}

.modo-chat-action-btn:hover i {
    transform: translateX(3px);
}

/* Chat Input Styling */
.modo-chatbot-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    transition: all 0.3s !important;
}

.modo-chatbot-input:focus {
    border-color: rgba(235, 115, 45, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 10px rgba(235, 115, 45, 0.1) !important;
}

.modo-chatbot-send-btn {
    background: #eb732d !important;
    border: none !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 0 20px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.25s !important;
}

.modo-chatbot-send-btn:hover {
    background: #f08b51 !important;
    box-shadow: 0 0 12px rgba(235, 115, 45, 0.3) !important;
}

/* Animations */
@keyframes modo-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modo-typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
    }
    40% {
        transform: scale(1.2) translateY(-3px);
    }
}

/* Notification dot animation for trigger */
#header-chat-trigger::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 6px #10b981;
    animation: modo-pulse-green 2s infinite;
}

@keyframes modo-pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
