/* Extracted from index.html <style> tag (lines 68-838) */
/* All CSS styles for NARA website - includes fonts, animations, components, and modals */

/* Custom Fonts */
@font-face {
    font-family: 'Isidora Alt';
    src: url('../fonts/IsidoraAltSemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
body {
    background-color: #050505;
    color: #f8fafc;
    overflow-x: hidden;
}

/* NARA Brand Typography */
.font-nara {
    font-family: 'Isidora Alt', sans-serif;
    font-weight: 400;
}

/* Montserrat for Titles */
.font-title {
    font-family: 'Montserrat', sans-serif;
}

/* Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* APPLE VISION OS STYLE GLASSMORPHISM */
.glass-apple {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

/* Typography */
.text-balance {
    text-wrap: balance;
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hero CTA - Storyteller button: fixed width prevents layout shift on hover */
.hero-cta-storyteller {
    min-width: 220px;
    justify-content: center;
}

.hero-cta-storyteller:hover {
    letter-spacing: 0.2em;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Nav link underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Alchemy Section */
.alchemy-container {
    position: relative;
}

.alchemy-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
    width: 2px;
    left: 24px;
    top: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
}

@media (min-width: 768px) {
    .alchemy-line {
        width: auto;
        height: 2px;
        left: 0;
        right: 0;
        top: 40px;
        bottom: auto;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    }
}

.alchemy-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.alchemy-icon-wrapper {
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.alchemy-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
}

.alchemy-item:hover .alchemy-icon-wrapper::after {
    opacity: 0.2;
}

.alchemy-item:hover .alchemy-icon-wrapper {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Poster card hover - Glassmorphism overlay */
.poster-card .poster-overlay {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.poster-card:hover .poster-overlay {
    transform: translateY(0);
}
.poster-card:hover .poster-image {
    transform: scale(1.1);
}
.poster-image {
    transition: transform 0.7s ease;
}

/* Storyteller card */
.storyteller-card img {
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.storyteller-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Storyteller Carousel Container */
#storyteller-carousel {
    position: relative;
    min-height: 520px;
}

/* Storyteller Slides */
.storyteller-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.storyteller-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.storyteller-slide.exit {
    opacity: 0;
    transform: translateX(-100px);
}

/* Storyteller card quote - fixed height to prevent layout shifts */
.storyteller-card .text-slate-600 {
    min-height: 40px;
}

/* Testimonial Slides */
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.testimonial-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.testimonial-slide.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* Testimonial dots */
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.testimonial-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
.testimonial-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* FAQ */
.faq-simple .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

@media (min-width: 768px) {
    .faq-simple:hover .faq-answer {
        max-height: 200px;
        opacity: 1;
    }
}

.faq-simple.open .faq-answer {
    max-height: 200px;
    opacity: 1;
}

/* Simulator */
.sim-step {
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.sim-step.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    position: absolute;
}
.sim-step.active {
    opacity: 1;
    transform: translateY(0);
}

.choice-btn {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.choice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Rating dots - for glassmorphism overlay */
.rating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.rating-dot.filled {
    background-color: #fff;
}
.rating-dot.empty {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Spots Badge - Loss Aversion */
.spots-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.spots-badge .spots-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Low spots state: 1-2 places (red, urgency) */
.spots-badge.spots-low {
    background: rgba(239, 68, 68, 0.3);
    color: rgb(254, 202, 202);
    border: 1px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    animation: spots-pulse 2s ease-in-out infinite;
}

@keyframes spots-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
    }
    50% {
        opacity: 0.9;
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

/* Experience card */
.experience-card {
    transition: transform 0.4s ease;
}
.experience-card:hover {
    transform: translateY(-10px);
}
.experience-card:hover .experience-image {
    transform: scale(1.1);
}
.experience-image {
    transition: transform 0.6s ease;
}

/* Filter button states */
.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

body.modal-open {
    overflow: hidden;
}

/* Reservation Coming Soon Modal */
.reservation-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overscroll-behavior: contain;
}

.reservation-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.reservation-modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(20, 20, 25, 0.98) 0%, rgba(10, 10, 15, 0.99) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.reservation-modal-overlay.active .reservation-modal-container {
    transform: scale(1) translateY(0);
}

.reservation-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.reservation-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.reservation-modal-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reservation-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-modal-icon i {
    font-size: 1.75rem;
    color: white;
}

.reservation-modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.reservation-modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.reservation-modal-body {
    padding: 1.5rem 2rem 2rem;
}

.reservation-modal-text {
    color: #d1d5db;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.reservation-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reservation-modal-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.reservation-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.reservation-modal-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.reservation-modal-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: black;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reservation-modal-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.reservation-modal-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

.reservation-modal-success {
    text-align: center;
    padding: 1rem 0;
}

.reservation-modal-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-modal-success-icon i {
    font-size: 2.5rem;
    color: #22c55e;
}

.reservation-modal-success h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
}

.reservation-modal-success p {
    color: #d1d5db;
    line-height: 1.6;
}

/* Skip Link - Accessibility */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Below-fold performance: skip rendering until near viewport */
#catalog,
#storytellers,
#faq,
.section-below-fold {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
