/**
 * Overview Section Styles
 * The Heart of Gold
 */

/* ==================== */
/* Overview Section Container */
/* ==================== */

.overview-section {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top fade for smooth transition from news section - subtle */
.overview-top-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        to bottom,
        var(--color-purple-dark) 0%,
        rgba(20, 2, 59, 0.4) 50%,
        transparent 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Bottom fade for smooth transition to game features - smooth */
.overview-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(5, 0, 16, 0.15) 25%,
        rgba(5, 0, 16, 0.4) 50%,
        rgba(5, 0, 16, 0.7) 75%,
        #050010 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* ==================== */
/* Video Part */
/* ==================== */

.overview-video-part {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-4xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.overview-video-part::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(129, 60, 232, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(196, 30, 92, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--color-purple-dark) 0%, rgba(10, 1, 24, 0.85) 50%, rgba(5, 0, 16, 0.9) 100%);
    z-index: 0;
}

.overview-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, var(--color-purple-dark) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* ==================== */
/* Video Background - LIGHTER OVERLAY */
/* ==================== */

.overview-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.overview-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.overview-video.playing {
    opacity: 1;
}

/* Video Overlay - Nearly invisible for clear video */
.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.video-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Nearly invisible */
    background: 
        linear-gradient(180deg, 
            rgba(23, 4, 38, 0.041) 0%, 
            transparent 5%, 
            transparent 95%,
            rgba(5, 0, 16, 0.048) 100%
        );
}

/* Difuminado del video hacia abajo */
.video-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(22, 4, 38, 0.3) 40%,
        rgba(22, 4, 38, 0.7) 70%,
        #160426 100%
    );
    pointer-events: none;
}

/* ==================== */
/* Overview Content */
/* ==================== */

.overview-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

/* ==================== */
/* Section Header */
/* ==================== */

.overview-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.overview-title-wrapper {
    position: relative;
    display: inline-block;
}

.overview-title {
    font-family: var(--font-pixel);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(196, 30, 92, 0.5), 0 4px 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.overview-title-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(196, 30, 92, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.overview-subtitle {
    font-family: var(--font-pixel);
    font-size: var(--fs-sm);
    color: var(--color-pink-accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.8;
}

/* ==================== */
/* Story Blocks */
/* ==================== */

.overview-story {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.story-block {
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-block.left {
    align-self: flex-start;
    text-align: left;
    max-width: 65%;
    padding-left: var(--space-xl);
}

.story-block.right {
    align-self: flex-end;
    text-align: right;
    max-width: 65%;
    padding-right: var(--space-xl);
}

.story-block.center {
    align-self: center;
    text-align: center;
    max-width: 80%;
}

.story-block::before {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--color-pink-main) 20%, var(--color-pink-main) 80%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.story-block.left::before { left: 0; }
.story-block.right::before { right: 0; }
.story-block.center::before { display: none; }
.story-block.visible::before { opacity: 0.6; }

.story-text {
    font-family: var(--font-pixel-alt);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

.story-text .highlight {
    color: var(--color-pink-accent);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(196, 30, 92, 0.4);
}

.story-text .emphasis {
    color: var(--color-purple-light);
    font-style: italic;
}

.story-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.story-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* Floating Particles */
/* ==================== */

.overview-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(196, 30, 92, 0.4);
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 40%; top: 40%; animation-delay: 3s; animation-duration: 20s; }
.particle:nth-child(6) { left: 90%; top: 50%; animation-delay: 5s; animation-duration: 13s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.6; }
    50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.4; }
    75% { transform: translate(15px, -20px) scale(1.1); opacity: 0.5; }
}
/* ==================== */
/* Divider - Hidden, transitions handled by section fades */
/* ==================== */

.overview-divider {
    display: none;
}

.divider-gradient,
.divider-line,
.divider-glow,
.divider-particles,
.divider-dot {
    display: none;
}

/* ==================== */
/* Features Wrapper */
/* ==================== */

.features-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
}

/* ==================== */
/* Characters Wrapper */
/* ==================== */

.characters-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
}

/* ==================== */
/* Responsive */
/* ==================== */

@media (max-width: 768px) {
    .overview-video-part {
        padding: var(--space-3xl) var(--space-md);
    }
    
    .overview-top-fade {
        height: 150px;
    }
    
    .overview-bottom-fade {
        height: 280px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(5, 0, 16, 0.1) 20%,
            rgba(5, 0, 16, 0.35) 45%,
            rgba(5, 0, 16, 0.65) 70%,
            #050010 100%
        );
    }
    
    .story-block.left,
    .story-block.right {
        max-width: 100%;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
        text-align: center;
    }
    
    .story-block::before {
        display: none;
    }
    
    .overview-video.playing {
        opacity: 0.5;
    }
    
    /* Section height and fades - Mobile */
    .overview-video-part {
        min-height: 120vh;
        min-height: 120dvh;
        padding-top: var(--space-3xl);
        padding-bottom: var(--space-4xl);
    }
    
    .overview-top-fade {
        height: 200px;
    }
    
    .overview-bottom-fade {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .overview-title {
        font-size: 1.8rem;
    }
    
    /* Section height and fades - Small Mobile */
    .overview-video-part {
        min-height: 130vh;
        min-height: 130dvh;
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-3xl);
    }
    
    .overview-top-fade {
        height: 180px;
    }
    
    .overview-bottom-fade {
        height: 300px;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(5, 0, 16, 0.08) 15%,
            rgba(5, 0, 16, 0.3) 40%,
            rgba(5, 0, 16, 0.6) 65%,
            #050010 100%
        );
    }
    
    .story-text {
        font-size: 0.85rem;
    }
    
    .overview-content {
        gap: var(--space-2xl);
    }
    
    .story-block.center {
        max-width: 95%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .overview-video {
        opacity: 0.3;
    }
    
    .overview-video.playing {
        transition: none;
    }
    
    .particle,
    .floating-line {
        animation: none;
        opacity: 0.3;
    }
    
    .story-word {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .overview-title-glow {
        animation: none;
    }
}
