/* ============================================
   YUNOBOT PAGE - MINIMALIST COFFEE MUG THEME
   ============================================ */

/* Import Component Styles */
@import 'components/coffee-mug.css';
@import 'components/minimal-navbar.css';

/* CSS Variables - Match Other Pages */
:root {
    --landing-primary: #2d3436;
    --landing-secondary: #636e72;
    --landing-accent: #4A90E2;
    --landing-accent-light: #6BB6FF;
    --landing-accent-dark: #2E5C8A;
    --landing-bg-dark: #0f0f23;
    --landing-bg-medium: #1a1a2e;
    --landing-bg-light: #16213e;
    --landing-text-primary: #dfe6e9;
    --landing-text-secondary: #b2bec3;
    --landing-border: rgba(74, 144, 226, 0.2);
    --landing-glow: rgba(74, 144, 226, 0.4);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-space: 'Space Grotesk', 'Inter', sans-serif;
    --about-mug-raise: 22px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.yunobot-page-body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, 
        #0a0a1a 0%, 
        #0f0f23 25%, 
        #1a1a2e 50%, 
        #16213e 75%, 
        #0f0f23 100%);
    background-attachment: fixed;
    color: var(--landing-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle animated gradient overlay for depth */
body.yunobot-page-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(107, 182, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(46, 92, 138, 0.08) 0%, transparent 60%);
    z-index: 1;
    animation: gradientShift 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Page Container */
.yunobot-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
}

/* Coffee Mug - Shift Right on YunoBot Page */
.yunobot-page-container .coffee-mug-container {
    transform: translateX(1.5rem) translateY(0);
}

.yunobot-page-container .coffee-mug-container.is-raised {
    transform: translateX(1.5rem) translateY(calc(-1 * var(--about-mug-raise, 22px)));
}

/* Shining Border for Coffee Cup on YunoBot Page */
.yunobot-page-container .coffee-mug-image {
    filter:
        drop-shadow(0 0 1px rgba(107, 182, 255, 0.4))
        drop-shadow(0 0 2px rgba(107, 182, 255, 0.3))
        drop-shadow(0 0 4px rgba(74, 144, 226, 0.25))
        drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 32px rgba(107, 182, 255, 0.25))
        drop-shadow(0 0 48px rgba(74, 144, 226, 0.15));
    animation: borderShine 3s ease-in-out infinite;
    transition: filter 0.4s ease;
}

@keyframes borderShine {
    0%, 100% {
        filter:
            drop-shadow(0 0 1px rgba(107, 182, 255, 0.4))
            drop-shadow(0 0 2px rgba(107, 182, 255, 0.3))
            drop-shadow(0 0 4px rgba(74, 144, 226, 0.25))
            drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 32px rgba(107, 182, 255, 0.25))
            drop-shadow(0 0 48px rgba(74, 144, 226, 0.15));
    }
    50% {
        filter:
            drop-shadow(0 0 2px rgba(107, 182, 255, 0.5))
            drop-shadow(0 0 3px rgba(107, 182, 255, 0.4))
            drop-shadow(0 0 6px rgba(74, 144, 226, 0.35))
            drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 32px rgba(107, 182, 255, 0.25))
            drop-shadow(0 0 48px rgba(74, 144, 226, 0.15));
    }
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--landing-text-primary);
    text-align: center;
    margin-top: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInTitle 0.6s ease-out 2.6s forwards;
    letter-spacing: -0.02em;
    font-family: var(--font-space);
    text-shadow: 0 0 20px rgba(107, 182, 255, 0.3);
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Container */
.chat-container {
    width: 100%;
    max-width: 800px;
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(74, 144, 226, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 70vh;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
    min-height: 300px;
    max-height: 500px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--landing-accent);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--landing-accent-light);
}

.chat-message {
    margin-bottom: 1.5rem;
    animation: fadeInMessage 0.3s ease-out;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.message-content {
    max-width: 75%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: var(--font-primary);
}

.bot-message .message-content {
    text-align: center;
}

.user-message .message-content {
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid var(--landing-accent);
    color: var(--landing-text-primary);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.bot-message .message-content {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid var(--landing-border);
    color: var(--landing-text-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.message-content p {
    margin: 0;
    color: inherit;
}

/* Example Questions */
.example-questions {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
}

.example-questions.hidden {
    display: none;
}

.example-questions-label {
    font-size: 0.9rem;
    color: var(--landing-text-secondary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.example-questions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.example-question-chip {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: rgba(74, 144, 226, 0.15);
    border: 1px solid var(--landing-accent);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--landing-accent-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    line-height: 1.4;
}

.example-question-chip:hover {
    background: rgba(74, 144, 226, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    color: var(--landing-text-primary);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--landing-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.chat-input::placeholder {
    color: var(--landing-text-secondary);
    opacity: 0.6;
}

.chat-send-button {
    width: 48px;
    height: 48px;
    background: rgba(74, 144, 226, 0.2);
    border: 1px solid var(--landing-accent);
    border-radius: 12px;
    color: var(--landing-accent-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-send-button:hover {
    background: rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.chat-send-button:active {
    transform: translateY(0);
}

.chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--landing-accent-light);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
        margin-top: 1.5rem;
    }
    
    .yunobot-page-container {
        padding: 1.5rem 1rem;
    }
    
    .chat-container {
        padding: 1.5rem;
        max-height: 65vh;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chat-messages {
        min-height: 250px;
        max-height: 400px;
    }
    
    .example-questions {
        margin-top: 1.25rem;
        margin-bottom: 1.25rem;
        padding: 1.25rem;
    }
    
    .example-questions-label {
        margin-bottom: 0.875rem;
    }
    
    .example-questions-list {
        gap: 0.625rem;
    }
    
    .example-question-chip {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    .chat-container {
        padding: 1rem;
    }
    
    .message-content {
        max-width: 90%;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-input {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .chat-send-button {
        width: 44px;
        height: 44px;
    }
    
    .example-questions {
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .example-questions-label {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .example-questions-list {
        gap: 0.5rem;
    }
    
    .example-question-chip {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
}

