/* Noah - AI Assistant Mascot Styles */

/* Floating Mascot Button */
.noah-mascot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.noah-mascot:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 30px rgba(30, 60, 114, 0.6);
}

.noah-mascot.active {
    transform: scale(0) rotate(180deg);
    opacity: 0;
}

.noah-mascot-emoji {
    font-size: 35px;
    animation: noah-float 2s ease-in-out infinite;
}

@keyframes noah-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Notification Badge */
.noah-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ffc107;
    color: #1e3c72;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    animation: noah-pulse 2s infinite;
}

@keyframes noah-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Chat Window */
.noah-chat-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.noah-chat-container.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Chat Header */
.noah-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.noah-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.noah-info {
    flex: 1;
}

.noah-name {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.noah-status {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.noah-status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: noah-blink 2s infinite;
}

@keyframes noah-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.noah-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.noah-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Chat Messages */
.noah-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noah-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    animation: noah-message-pop 0.3s ease;
}

@keyframes noah-message-pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.noah-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.noah-message.assistant {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Typing Indicator */
.noah-typing {
    display: flex;
    gap: 4px;
    padding: 15px 20px;
    align-self: flex-start;
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.noah-typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: noah-typing-bounce 1.4s infinite ease-in-out both;
}

.noah-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.noah-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes noah-typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Input */
.noah-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.noah-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.noah-input:focus {
    border-color: #1e3c72;
}

.noah-send-btn {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.noah-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

.noah-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: scale(1);
}

/* Quick Actions */
.noah-quick-actions {
    padding: 10px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.noah-quick-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e3c72;
}

.noah-quick-btn:hover {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* Welcome Message */
.noah-welcome {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    border-radius: 15px;
    margin-bottom: 10px;
}

.noah-welcome-emoji {
    font-size: 40px;
    margin-bottom: 10px;
}

.noah-welcome-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Suggestion Card */
.noah-suggestion {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}

.noah-suggestion-title {
    font-weight: 600;
    color: #f57c00;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .noah-chat-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .noah-mascot {
        bottom: 20px;
        right: 20px;
    }
}

/* Animation for mascot entrance */
@keyframes noah-entrance {
    0% { transform: scale(0) rotate(-180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.noah-mascot {
    animation: noah-entrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
