/* ============================================
   HISZTIKEZELES GYAKORLATI VIDEÓK — Page Overrides
   Extends v2-landing.css + v2-csali.css
   Theme: Warm editorial journey — chaos to calm
   ============================================ */

/* --- Page Accent Colors --- */
:root {
    --v2-hero-gradient: linear-gradient(160deg, #fff8f3 0%, #fde8d8 30%, #fce8ed 60%, #f5f2ed 100%);
    --v2-cta-gradient: linear-gradient(135deg, #1a7f8a 0%, var(--teal-dark) 50%, #166068 100%);
    --v2-cta-hover: linear-gradient(135deg, #1e8f9a 0%, #1a7f8a 50%, #1a6d75 100%);
    --v2-hero-blob1: var(--peach);
    --v2-hero-blob2: var(--pink-light);
    --v2-text-gradient: linear-gradient(135deg, #d47a3f 0%, #c45e2a 40%, var(--teal-dark) 100%);
    --v2-accent-gradient: linear-gradient(90deg, var(--peach) 0%, var(--pink) 100%);
    --v2-icon-gradient: linear-gradient(135deg, var(--peach-light) 0%, var(--pink-light) 100%);
    --v2-deep-dive-bg: linear-gradient(160deg, #fff8f3 0%, #fde8d8 50%, #fce8ed 100%);
    --v2-bridge-bg: linear-gradient(160deg, var(--lavender-light) 0%, var(--pink-light) 40%, var(--cream-warm) 100%);
    --v2-warning-bg: linear-gradient(135deg, var(--peach-light) 0%, rgba(245, 184, 138, 0.3) 100%);
    --v2-warning-color: var(--orange-dark);
    --v2-warning-border: rgba(232, 148, 90, 0.2);
    --v2-sticky-price-color: var(--peach-dark);

    /* Page-specific tokens */
    --hgv-warm: #f5b88a;
    --hgv-warm-light: #fde8d8;
    --hgv-warm-dark: #d47a3f;
    --hgv-coral: #e8945a;
    --hgv-blush: #fce8ed;
    --hgv-rose: #f2c4d0;

    /* Video section accents per video */
    --hgv-v1-accent: #f5b88a;
    --hgv-v2-accent: #e8945a;
    --hgv-v3-accent: #d47a3f;
}

/* ============================================
   SCROLL-REVEAL ANIMATIONS
   ============================================ */
.hgv-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hgv-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hgv-reveal-delay-1 { transition-delay: 0.12s; }
.hgv-reveal-delay-2 { transition-delay: 0.24s; }
.hgv-reveal-delay-3 { transition-delay: 0.36s; }
.hgv-reveal-delay-4 { transition-delay: 0.48s; }

/* ============================================
   HERO ENHANCEMENTS
   Warmer, more emotional hero for tantrum topic
   with floating decorative shapes
   ============================================ */
.v2-hero--centered {
    position: relative;
    overflow: hidden;
}

/* Floating decorative circles — ambient warmth */
.v2-hero--centered::before,
.v2-hero--centered::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.v2-hero--centered::before {
    width: 420px;
    height: 420px;
    top: -80px;
    right: -120px;
    background: radial-gradient(circle, rgba(245, 184, 138, 0.18) 0%, transparent 70%);
    animation: hgv-float-slow 18s ease-in-out infinite;
}

.v2-hero--centered::after {
    width: 320px;
    height: 320px;
    bottom: -60px;
    left: -100px;
    background: radial-gradient(circle, rgba(242, 196, 208, 0.15) 0%, transparent 70%);
    animation: hgv-float-slow 22s ease-in-out infinite reverse;
}

@keyframes hgv-float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.97); }
}

.v2-hero--centered .v2-hero-grid {
    position: relative;
    z-index: 1;
}

.v2-hero--centered .v2-hero-badge {
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    color: var(--hgv-warm-dark);
    border: 1px solid rgba(232, 148, 90, 0.2);
    animation: hgv-badge-entrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hgv-badge-entrance {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.v2-hero--centered .text-gradient {
    background: var(--v2-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero title entrance animation */
.v2-hero--centered .v2-hero-title {
    animation: hgv-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes hgv-title-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.v2-hero--centered .v2-hero-tagline {
    animation: hgv-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.v2-hero--centered .v2-hero-cta {
    animation: hgv-title-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.v2-hero-social-proof .v2-avatar-circle {
    background: linear-gradient(135deg, var(--hgv-warm), var(--hgv-coral));
    color: white;
    font-weight: 700;
}

.v2-hero-trust .trust-item svg {
    color: var(--hgv-coral);
}

/* ============================================
   VIDEO JOURNEY TRACKER
   Visual step indicator connecting the 3 videos
   — enhanced with active-state glow
   ============================================ */
.hgv-journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 100px;
    box-shadow:
        0 8px 32px rgba(232, 148, 90, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hgv-journey-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--teal-dark);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.hgv-journey-step:hover {
    color: var(--hgv-coral);
}

.hgv-journey-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    color: var(--hgv-warm-dark);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hgv-journey-step:hover .step-num {
    background: linear-gradient(135deg, var(--hgv-warm), var(--hgv-coral));
    color: white;
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(232, 148, 90, 0.3);
}

.hgv-journey-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--hgv-warm-light), var(--hgv-rose));
    margin: 0 0.5rem;
    flex-shrink: 0;
    border-radius: 1px;
}

/* ============================================
   METRICS — Warm accent treatment with
   animated gradient top-border reveal
   ============================================ */
.v2-metric-card {
    position: relative;
    overflow: hidden;
}

.v2-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hgv-warm), var(--hgv-coral), var(--hgv-rose));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-metric-card:hover::before {
    transform: scaleX(1);
}

.v2-metric-card:hover {
    box-shadow: 0 12px 40px rgba(232, 148, 90, 0.14),
                0 4px 12px rgba(0, 0, 0, 0.04);
}

.v2-metric-icon {
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    color: var(--hgv-warm-dark);
}

.v2-metric-number {
    background: linear-gradient(135deg, var(--hgv-warm-dark), var(--teal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   VIDEO SECTIONS — Cinematic editorial feel
   with distinct visual identity per video
   ============================================ */

/* Section numbering badge — warm coral pills */
.csali-video-section .v2-section-tag,
.csali-video-section--alt .v2-section-tag {
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    color: var(--hgv-warm-dark);
    border: 1px solid rgba(232, 148, 90, 0.15);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* Section titles — decorative underline accent */
.csali-video-section .v2-section-title,
.csali-video-section--alt .v2-section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.csali-video-section .v2-section-title::after,
.csali-video-section--alt .v2-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hgv-warm), var(--hgv-coral));
}

/* Alternate section — warmer cream with depth */
.csali-video-section--alt {
    background: linear-gradient(180deg, #fdf8f4 0%, #faf3ed 100%);
    position: relative;
}

.csali-video-section--alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 600px 400px at 10% 20%, rgba(245, 184, 138, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 300px at 90% 80%, rgba(242, 196, 208, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Video card — cinematic treatment with glow on hover */
.v2-video-card {
    position: relative;
    transition: box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: var(--v2-card-radius);
}

/* Warm glow ring on hover */
.v2-video-card::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--v2-card-radius) + 3px);
    background: linear-gradient(135deg, var(--hgv-warm), var(--hgv-coral), var(--hgv-rose), var(--hgv-warm));
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.v2-video-card:hover {
    box-shadow: 0 24px 64px rgba(232, 148, 90, 0.18),
                0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.v2-video-card:hover::after {
    opacity: 0.6;
    animation: hgv-glow-rotate 4s linear infinite;
}

@keyframes hgv-glow-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   INSIGHT CARDS — Dramatic wrong/right contrast
   with stronger visual hierarchy
   ============================================ */
.csali-insight-grid > div {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.3s ease;
}

.csali-insight-grid > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 56px rgba(232, 148, 90, 0.14),
                0 6px 16px rgba(0, 0, 0, 0.05);
}

/* Wrong card — red accent with subtle danger wash */
.csali-insight--wrong {
    border-left: 4px solid #E57373;
    position: relative;
}

.csali-insight--wrong::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 115, 115, 0.06) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.csali-insight--wrong h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Right card — green accent with hopeful wash */
.csali-insight--right {
    border-left: 4px solid #81C784;
    position: relative;
}

.csali-insight--right::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 199, 132, 0.06) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.csali-insight--right h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.csali-insight-grid h3 span {
    font-size: 1rem;
}

/* ============================================
   TIP STRIPS — Golden nugget feel with
   animated left accent border
   ============================================ */
.csali-video-tip {
    position: relative;
    border: 1px solid rgba(232, 148, 90, 0.15);
    background: linear-gradient(135deg, rgba(253, 232, 216, 0.5) 0%, rgba(255, 255, 255, 0.7) 100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
}

.csali-video-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--hgv-warm), var(--hgv-coral));
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.csali-video-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(232, 148, 90, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.04);
}

.csali-video-tip:hover::before {
    width: 5px;
}

.csali-video-tip .tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease;
}

.csali-video-tip:hover .tip-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(232, 148, 90, 0.2);
}

.csali-video-tip h4 {
    font-size: 1rem;
    color: var(--hgv-warm-dark);
}

/* ============================================
   DEEP DIVE — Urgency with emotional warmth
   and pulsing ambient glow
   ============================================ */
.v2-deep-dive {
    position: relative;
}

.v2-deep-dive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 184, 138, 0.12) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    animation: hgv-pulse-glow 6s ease-in-out infinite;
}

@keyframes hgv-pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.v2-deep-dive-card {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(232, 148, 90, 0.15);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-deep-dive-card:hover {
    box-shadow: 0 20px 60px rgba(232, 148, 90, 0.12);
    transform: translateY(-2px);
}

.v2-warning {
    background: var(--v2-warning-bg);
    border-left: 4px solid var(--hgv-coral);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    color: var(--v2-warning-color);
    font-weight: 600;
    margin: var(--space-md) 0;
    position: relative;
    overflow: hidden;
}

/* Subtle shimmer on the warning bar */
.v2-warning::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: hgv-shimmer 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hgv-shimmer {
    0%, 100% { left: -100%; }
    50% { left: 150%; }
}

/* ============================================
   GUARANTEE — Warm shield with subtle float
   ============================================ */
.v2-guarantee-card {
    border: 1px solid rgba(232, 148, 90, 0.12);
    transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-guarantee-card:hover {
    box-shadow: 0 16px 48px rgba(232, 148, 90, 0.1);
    transform: translateY(-2px);
}

.v2-guarantee-icon {
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.v2-guarantee-card:hover .v2-guarantee-icon {
    transform: scale(1.1) rotate(-3deg);
}

.v2-guarantee-icon svg {
    color: var(--hgv-coral);
}

.v2-guarantee-highlight {
    background: linear-gradient(135deg, var(--hgv-warm-light), var(--hgv-blush));
    color: var(--hgv-warm-dark);
}

/* ============================================
   FINAL CTA — Rich warm gradient with
   depth and floating accent
   ============================================ */
.v2-final-cta {
    background: linear-gradient(160deg, #14454d 0%, var(--teal-dark) 40%, #1a7f8a 100%);
    position: relative;
    overflow: hidden;
}

.v2-final-cta::before {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(242, 196, 208, 0.08) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 50%;
}

.v2-final-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 184, 138, 0.1) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 50%;
    animation: hgv-float-slow 20s ease-in-out infinite;
}

/* CTA button pulse on the final section */
.v2-final-cta .btn-primary {
    animation: hgv-cta-pulse 3s ease-in-out infinite;
}

@keyframes hgv-cta-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(245, 184, 138, 0.3); }
    50% { box-shadow: 0 8px 36px rgba(245, 184, 138, 0.5); }
}

/* ============================================
   STICKY CTA — Warm accent with blur
   ============================================ */
.v2-sticky-cta {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   PROGRESS BAR — Warm gradient override
   ============================================ */
.v2-progress-bar {
    background: linear-gradient(90deg, var(--hgv-warm) 0%, var(--hgv-coral) 50%, var(--teal) 100%);
}

/* ============================================
   WAVE DIVIDER — Warm tone
   ============================================ */
.v2-wave-hero svg path {
    fill: white;
}

/* ============================================
   SMOOTH SCROLL TARGET OFFSET
   Accounts for sticky nav when jumping to videos
   ============================================ */
#video1, #video2, #video3 {
    scroll-margin-top: 80px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hgv-reveal {
        transform: translateY(20px);
    }

    .hgv-journey {
        padding: var(--space-sm) var(--space-md);
        gap: 0;
        border-radius: var(--radius-lg);
    }

    .hgv-journey-step .step-label {
        display: none;
    }

    .hgv-journey-step .step-num {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .hgv-journey-connector {
        width: 24px;
        margin: 0 0.75rem;
    }

    /* Reduce floating blobs on mobile for perf */
    .v2-hero--centered::before {
        width: 250px;
        height: 250px;
    }

    .v2-hero--centered::after {
        width: 200px;
        height: 200px;
    }

    .csali-insight--wrong h3 span,
    .csali-insight--right h3 span {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hgv-journey {
        max-width: 280px;
    }

    .v2-hero--centered::before,
    .v2-hero--centered::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hgv-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .csali-insight-grid > div,
    .csali-video-tip,
    .v2-video-card,
    .v2-metric-card,
    .v2-deep-dive-card,
    .v2-guarantee-card {
        transition: none;
    }

    .v2-hero--centered::before,
    .v2-hero--centered::after {
        animation: none;
    }

    .v2-deep-dive::after {
        animation: none;
    }

    .v2-warning::after {
        animation: none;
    }

    .v2-final-cta .btn-primary {
        animation: none;
    }

    .v2-final-cta::after {
        animation: none;
    }

    .v2-video-card::after {
        display: none;
    }

    .v2-hero--centered .v2-hero-badge,
    .v2-hero--centered .v2-hero-title,
    .v2-hero--centered .v2-hero-tagline,
    .v2-hero--centered .v2-hero-cta {
        animation: none;
    }
}
