/* ===========================================
   Main Styles — Soelya
   =========================================== */

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background ambiance */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    transition: opacity 0.8s ease, top 0.8s ease, width 0.8s ease;
}

/* In chat mode: ambient glow follows top and gets more subtle */
body.chat-active::before {
    top: -50%;
    width: 1000px;
    opacity: 0.25;
}

/* Secondary accent glow — appears on chat mode */
body::after {
    content: '';
    position: fixed;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(90, 63, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

body.chat-active::after {
    opacity: 1;
}

/* ---- Main ---- */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

body.chat-active .main {
    padding-bottom: 80px; /* espace pour l'input fixe en mode chat */
}

/* ---- Hero ---- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
    padding-top: calc(var(--header-height) + var(--space-8));
    transition: opacity 0.3s ease;
}

.hero--hidden {
    display: none;
}

.hero__container {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.hero__branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__logo {
    height: 48px;
    width: auto;
    filter: brightness(1.1);
}

.hero__tagline {
    font-size: var(--font-size-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    text-align: center;
    letter-spacing: -0.01em;
}

/* ---- Response Section ---- */
.response {
    padding: 0 var(--space-6) var(--space-16);
}

.response__container {
    max-width: 720px;
    margin: 0 auto;
}

.response__content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text-primary);
    animation: fadeInUp 0.4s var(--transition-base);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
