/**
 * Novara LEGEND - Cinematic Storytelling Styles
 * Apple / Bloomberg / NYT-grade visual storytelling
 */

/* === STORY HERO === */
.novara-story-hero {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 0 48px;
}

.novara-story-hero--fullscreen { min-height: 100vh; }
.novara-story-hero--large      { min-height: 75vh; }
.novara-story-hero--medium     { min-height: 55vh; }

.novara-story-hero__bg {
    position: absolute;
    inset: -10% 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 1;
}

.novara-story-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,calc(var(--story-overlay) * 0.7)) 0%,
        rgba(0,0,0,var(--story-overlay)) 100%);
    z-index: 2;
}

.novara-story-hero__content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    padding: 64px 32px;
    color: white;
}

.novara-story-hero__content--center { text-align: center; }
.novara-story-hero__content--left   { text-align: left; }
.novara-story-hero__content--right  { text-align: right; }

.novara-story-hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.novara-story-hero__subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    line-height: 1.5;
    margin: 0 0 32px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.novara-story-hero__scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    pointer-events: none;
}

.novara-story-hero__scroll-hint span {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: novara-scroll-hint 2s ease-in-out infinite;
}

@keyframes novara-scroll-hint {
    0%, 20% { transform: translate(-50%, 0); opacity: 1; }
    100%    { transform: translate(-50%, 16px); opacity: 0; }
}

/* === REVEAL ANIMATIONS === */
[data-novara-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-novara-reveal="up"]    { transform: translateY(40px); }
[data-novara-reveal="down"]  { transform: translateY(-40px); }
[data-novara-reveal="left"]  { transform: translateX(40px); }
[data-novara-reveal="right"] { transform: translateX(-40px); }
[data-novara-reveal="zoom"]  { transform: scale(0.92); }
[data-novara-reveal="fade"]  { transform: none; }

[data-novara-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

/* === ANIMATED COUNTERS === */
.novara-story-counter {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(230,57,70,0.05), rgba(230,57,70,0));
    border-radius: 20px;
    border: 1px solid rgba(230,57,70,0.1);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.novara-story-counter:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(230,57,70,0.15);
}

.novara-story-counter__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.novara-story-counter__value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--counter-color, var(--novara-crimson, #E63946));
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.novara-story-counter__label {
    font-size: 0.95rem;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === TIMELINE === */
.novara-story-timeline {
    position: relative;
    max-width: 800px;
    margin: 64px auto;
    padding: 0 32px;
}

.novara-story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--novara-crimson, #E63946), transparent);
    transform: translateX(-50%);
}

.novara-story-timeline__item {
    position: relative;
    width: 50%;
    padding: 24px;
    margin: 32px 0;
}

.novara-story-timeline__item:nth-child(odd)  { margin-left: 0; }
.novara-story-timeline__item:nth-child(even) { margin-left: 50%; }

.novara-story-timeline__item::before {
    content: '';
    position: absolute;
    top: 32px;
    width: 16px;
    height: 16px;
    background: var(--novara-crimson, #E63946);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.2);
    z-index: 2;
}

.novara-story-timeline__item:nth-child(odd)::before  { right: -8px; }
.novara-story-timeline__item:nth-child(even)::before { left: -8px; }

/* === PARALLAX === */
.novara-story-parallax {
    position: relative;
    width: 100%;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 64px 0;
}

.novara-story-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.novara-story-parallax__content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 64px 32px;
    max-width: 900px;
}

/* === PULL QUOTE === */
.novara-story-pullquote {
    position: relative;
    max-width: 760px;
    margin: 64px auto;
    padding: 48px 64px;
    background: linear-gradient(135deg, #fef3f4 0%, #fff 100%);
    border-radius: 24px;
    border-left: 6px solid var(--novara-crimson, #E63946);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    line-height: 1.5;
    font-style: italic;
    color: #1a1a1a;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.novara-story-pullquote__mark {
    position: absolute;
    top: -16px;
    left: 32px;
    font-size: 8rem;
    line-height: 1;
    color: var(--novara-crimson, #E63946);
    opacity: 0.3;
    font-family: 'Playfair Display', Georgia, serif;
}

.novara-story-pullquote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.95rem;
    font-style: normal;
    color: #6b7280;
    font-weight: 600;
    font-family: inherit;
}

/* === DARK MODE === */
[data-theme="dark"] .novara-story-pullquote {
    background: linear-gradient(135deg, rgba(230,57,70,0.08) 0%, rgba(20,20,25,1) 100%);
    color: #e5e7eb;
}

[data-theme="dark"] .novara-story-counter {
    background: linear-gradient(135deg, rgba(230,57,70,0.1), rgba(255,255,255,0.02));
    border-color: rgba(230,57,70,0.2);
}

/* === MOBILE === */
@media (max-width: 768px) {
    .novara-story-timeline::before { left: 16px; }
    .novara-story-timeline__item,
    .novara-story-timeline__item:nth-child(odd),
    .novara-story-timeline__item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 48px;
    }
    .novara-story-timeline__item::before,
    .novara-story-timeline__item:nth-child(odd)::before,
    .novara-story-timeline__item:nth-child(even)::before {
        left: 8px;
        right: auto;
    }
    .novara-story-parallax {
        background-attachment: scroll;
    }
    .novara-story-pullquote {
        padding: 32px 24px;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    [data-novara-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .novara-story-hero__bg {
        transform: none !important;
    }
}
