/**
 * Hero Interactive Styles - Thiasos Group (Redpill Style)
 * @version 2.0.0
 * Minimalist, Premium, Black & White
 */

/* ========================================
   Variables
   ======================================== */

:root {
    /* Colors */
    --h-black: #000000;
    --h-white: #ffffff;
    --h-grey-light: #f5f5f5;
    --h-grey-medium: #e0e0e0;
    --h-grey-text: #666666;

    /* Spacing */
    --dist-xs: 8px;
    --dist-sm: 16px;
    --dist-md: 24px;
    --dist-lg: 40px;
    --dist-xl: 80px;

    /* Typography */
    --font-stack: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ========================================
   Hero Section Container
   ======================================== */

.hero-interactive {
    position: relative;
    width: 100%;
    min-height: 90vh;
    /* Full screen feel */
    background-color: var(--h-white);
    color: var(--h-black);
    font-family: var(--font-stack);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
}

.hero-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--dist-lg) var(--dist-md);
    padding-bottom: 120px;
    /* Space for bottom nav */
    text-align: center;
    z-index: 10;
    position: relative;
    /* For colibri positioning */
}




/* ========================================
   Dynamic Content Zone (Middle)
   ======================================== */

.hero-heading {
    margin-bottom: var(--dist-lg);
    opacity: 1;
    transition: opacity 0.5s var(--ease-out);
}

.hero-heading.faded {
    opacity: 0.3;
    /* Fade out when answer shows? Or hide completely */
}

/* Big Titles */
.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--dist-md);
    color: var(--h-black);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 400;
    color: var(--h-grey-text);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.5;
}

.hero-welcome-text {
    margin-top: 150px;
}

/* AI Response Area within the flow */
.ai-response-container {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* The loading spinner - Minimalist */
.response-loading {
    margin: var(--dist-lg) 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--h-black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Idle State / Placeholder */
.response-placeholder {
    font-family: var(--font-stack);
    font-size: clamp(16px, 1.5vw, 18px);
    /* Same as answer-text */
    font-weight: 300;
    color: var(--h-grey-text);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Spacing increased */
}

.response-placeholder.hidden {
    display: none;
}

.typing-cursor {
    width: 10px;
    height: 18px;
    /* Rectangular block */
    background-color: var(--h-black);
    /* Or brand color #79183d */
    border-radius: 0;
    /* Square/Rectangle */
    display: inline-block;
    animation: blinkCursor 1.0s step-end infinite;
    /* Retro blinking */
    margin-right: 10px;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* The Answer Text */
.answer-text {
    font-family: var(--font-stack);
    /* Ensure consistency */
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    /* Better readability */
    font-weight: 300;
    /* Lighter, more premium feel */
    color: var(--h-black);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

.answer-text h1,
.answer-text h2,
.answer-text h3 {
    font-family: var(--font-stack);
    color: var(--h-black);
    margin-top: var(--dist-md);
    margin-bottom: var(--dist-sm);
    line-height: 1.2;
}

.answer-text h1 {
    font-size: clamp(24px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.answer-text h2 {
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.answer-text h3 {
    font-size: clamp(18px, 1.8vw, 20px);
    font-weight: 600;
}

.answer-text p {
    margin-bottom: 8px;
    /* Tighter paragraphs */
}

.answer-text strong {
    font-weight: 600;
    color: #79183d;
    /* Use brand color for emphasis */
}

.answer-text ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    /* Tighter lists */
}

.answer-text li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 0;
    /* Removed spacing between items */
    font-size: inherit;
}

.answer-text li p {
    margin: 0;
    /* Remove P margin inside lists */
}

.answer-text li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #79183d;
    /* Brand color bullet */
    font-weight: bold;
}

/* Question Echo (Small label above answer) */
.question-echo {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--h-grey-text);
    margin-bottom: var(--dist-md);
    display: inline-block;
    border-bottom: 1px solid var(--h-grey-medium);
    padding-bottom: 4px;
}

/* Response Actions (Continue, etc) - Minimalist Buttons */
/* Response Actions (Continue, etc) - Minimalist Buttons */
.response-actions {
    margin-top: var(--dist-lg);
    display: flex;
    gap: var(--dist-sm);
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-out;
}

.response-actions.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Increase specificity with #hero-interactive parent or similar if needed */

.hero-interactive .response-actions .btn-secondary,
.hero-interactive .response-actions .btn-ghost {
    padding: 12px 28px !important;
    border-radius: 50px !important;
    /* Pill */
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

/* Primary Action: Brand Color - Force Override */
.hero-interactive .response-actions .btn-secondary {
    background: #79183d !important;
    background-color: #79183d !important;
    border: 1px solid #79183d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(121, 24, 61, 0.2) !important;
    opacity: 1 !important;
}

.hero-interactive .response-actions .btn-secondary:hover {
    background: #5c122e !important;
    background-color: #5c122e !important;
    border-color: #5c122e !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(121, 24, 61, 0.3) !important;
    color: #ffffff !important;
}

/* Secondary Action: Ghost style */
.hero-interactive .response-actions .btn-ghost {
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid var(--h-grey-medium) !important;
    color: var(--h-grey-text) !important;
    box-shadow: none !important;
}

.hero-interactive .response-actions .btn-ghost:hover {
    border-color: #79183d !important;
    color: #79183d !important;
    background: rgba(121, 24, 61, 0.03) !important;
}

/* ========================================
   Interaction Dock (Floating Bottom)
   ======================================== */

.interaction-dock-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 var(--dist-md);
    z-index: 50;
    pointer-events: none;
    /* Let clicks pass through outside dock */
}

.interaction-dock {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 900px;
    width: 100%;
    pointer-events: auto;
    /* Re-enable pointer events */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.interaction-dock:hover {
    transform: translateY(-2px);
    /* box-shadow removed as per user request */
}

/* Scroll Area for Tags */
.dock-scroll-area {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px;
    flex: 1;
    scrollbar-width: none;
    /* Firefox */
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, black 10px, black 90%, transparent);
    /* scroll-behavior removed - conflicts with JS auto-scroll animation */
}

.dock-scroll-area::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.dock-scroll-btn {
    background: #fff;
    /* Ensure background is white as per potential design need */
    border: 1px solid #eee;
    /* Subtle border */
    color: var(--h-black);
    cursor: pointer;
    width: 36px;
    /* Fixed width */
    height: 36px;
    /* Fixed height */
    padding: 0;
    /* Reset padding to rely on flex center */
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Slight lift */
}

.dock-scroll-btn:hover {
    border-color: #79183d;
    color: #79183d;
    background: #fff;
    box-shadow: 0 2px 8px rgba(121, 24, 61, 0.2);
}

/* Unified Tag Style */
.nav-tag {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--h-black);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    opacity: 0.7;
}

.nav-tag:hover {
    background: rgba(121, 24, 61, 0.05);
    color: #79183d;
    opacity: 1;
}

.nav-tag.active {
    background: rgba(121, 24, 61, 0.1);
    color: #79183d;
    border-color: rgba(121, 24, 61, 0.2);
    opacity: 1;
    font-weight: 600;
}

.nav-icon {
    margin-right: 8px;
    font-style: normal;
}

/* Input Wrapper in Dock */
.dock-input-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    /* Light visible border */
    border-radius: 14px;
    padding: 4px;
    flex: 0 0 auto;
    width: 350px;
    /* Wider input */
    transition: all 0.3s ease;
}

.dock-input-wrapper:focus-within {
    border-color: #79183d;
    box-shadow: 0 0 0 3px rgba(121, 24, 61, 0.1);
}

.custom-inputdock {
    border: none !important;
    /* Force remove default borders */
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 10px 16px;
    flex: 1;
    font-size: 14px;
    color: var(--h-black);
    width: 100%;
}

.custom-inputdock:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Blinking Placeholder */
.custom-inputdock::placeholder {
    color: #999;
    opacity: 1;
    animation: blinkPlaceholder 3s infinite;
}

@keyframes blinkPlaceholder {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Send Button (Brand Color) */
.btn-send-dock {
    background: #79183d;
    color: white;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-dock:hover {
    background: #5e122f;
    /* Darker shade */
    transform: scale(1.05);
}

.btn-send-dock:active {
    transform: scale(0.95);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-bottom-nav {
        padding-bottom: 20px;
    }

    /* Safe area */
    .answer-text {
        font-size: 18px;
    }

    /* Reduced spacing for mobile */
    .hero-welcome-text {
        margin-top: 60px;
    }

    .hero-container {
        padding-bottom: 220px;
    }

    .hero-heading {
        margin-bottom: 24px;
    }

    /* Mobile Dock Adjustments */
    .interaction-dock {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
    }

    .dock-scroll-btn {
        display: none !important;
        /* Hide arrows on touch devices */
    }

    .dock-scroll-area {
        width: 100%;
        padding-bottom: 8px;
        /* Easier to scroll */
        justify-content: flex-start;
        /* Align tags to start */
    }

    .dock-input-wrapper {
        width: 100%;
        /* Full width on mobile */
    }
}

/* Animations */
.fade-in-text {
    animation: fadeInText 0.5s ease-out forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* ========================================
   Easter Egg - Off-Topic Mini Game
   ======================================== */

.easter-egg-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.egg-topic {
    background: linear-gradient(135deg, #79183d 0%, #a02050 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: eggPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(121, 24, 61, 0.3);
}

.egg-topic:nth-child(1) {
    animation-delay: 0s;
}

.egg-topic:nth-child(2) {
    animation-delay: 0.2s;
}

.egg-topic:nth-child(3) {
    animation-delay: 0.4s;
}

.egg-topic:nth-child(4) {
    animation-delay: 0.6s;
}

.egg-topic:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 8px 25px rgba(121, 24, 61, 0.4);
    animation: none;
}

.egg-topic:active {
    transform: scale(0.95);
}

@keyframes eggPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}