/**
 * ===================================
 * HOME HERO SECTION - CINEMATOGRÁFICO
 * ===================================
 * 
 * CSS épico para Hero Section (Netflix Slideshow)
 * Efeitos: Video background, Neon titles, Glass morphism, 3D transforms
 * 
 * @package Nuntius Theme
 * @version 2.0.0 EPIC
 */

/* ===== VARIÁVEIS ===== */
:root {
    --hero-topbar-height: 60px; /* Altura da topbar para compensação */
    --hero-topbar-height-expanded: 80px; /* Altura expandida da topbar */
    --hero-overlap: 100px; /* Sobreposição adicional para ficar bem atrás */
}

/* ===== SEÇÃO PRINCIPAL ===== */
.home-hero-epic {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    margin-left: calc(-50vw + 50%);
    margin-top: calc(-1 * (var(--hero-topbar-height) + var(--hero-overlap))); /* Sobe bem mais para ficar atrás */
    padding-top: var(--hero-topbar-height); /* Mantém só o espaçamento necessário */
    overflow: hidden;
    background: #0a0a0f;
    z-index: 1; /* Fica abaixo da topbar (z-index: 1000) */
    transition: margin-top 0.3s ease, padding-top 0.3s ease;
}

/* Ajuste quando a topbar estiver expandida (hover) */
.nuntius-topbar:hover ~ main .home-hero-epic,
.nuntius-topbar:hover ~ .home-hero-epic {
    margin-top: calc(-1 * (var(--hero-topbar-height-expanded) + var(--hero-overlap)));
    padding-top: var(--hero-topbar-height-expanded);
}

/* ===== DEPTH LAYERS ===== */
.hero-depth-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-depth-layer.layer-1 {
    background: radial-gradient(circle at 70% 30%, rgba(88, 101, 242, 0.15) 0%, transparent 60%);
    animation: heroDepthFloat1 20s ease-in-out infinite;
}

.hero-depth-layer.layer-2 {
    background: radial-gradient(circle at 30% 70%, rgba(114, 137, 218, 0.12) 0%, transparent 60%);
    animation: heroDepthFloat2 25s ease-in-out infinite reverse;
}

.hero-depth-layer.layer-3 {
    background: radial-gradient(circle at 50% 50%, rgba(67, 181, 129, 0.08) 0%, transparent 70%);
    animation: heroDepthFloat3 30s ease-in-out infinite;
}

@keyframes heroDepthFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(40px, -40px) scale(1.15); opacity: 0.2; }
}

@keyframes heroDepthFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.12; }
    50% { transform: translate(-30px, 30px) rotate(5deg); opacity: 0.18; }
}

@keyframes heroDepthFloat3 {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.08; }
    50% { transform: scale(1.08) translateY(-15px); opacity: 0.14; }
}

/* ===== CONTAINER ===== */
.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
}

/* ===== NETFLIX SLIDESHOW ===== */
.netflix-slideshow-epic {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== HERO SLIDES ===== */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* ===== SLIDE BACKGROUND (VIDEO) ===== */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== SLIDE OVERLAY ===== */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, rgba(10, 10, 15, 0.95) 0%, transparent 40%),
        linear-gradient(90deg, rgba(10, 10, 15, 0.8) 0%, transparent 50%),
        radial-gradient(circle at center, transparent 30%, rgba(10, 10, 15, 0.6) 100%);
    z-index: 2;
}

/* ===== SLIDE CONTENT ===== */
.slide-content {
    position: absolute;
    bottom: 15%;
    left: 8%;
    max-width: 600px;
    z-index: 20;
    color: #fff;
}

.hero-slide.active .slide-content {
    animation: slideContentFadeIn 1.2s ease forwards;
}

@keyframes slideContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SLIDE BADGE ===== */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(88, 101, 242, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(88, 101, 242, 0.4);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #5865F2;
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 5px rgba(88, 101, 242, 0.5); }
    50% { box-shadow: 0 0 15px rgba(88, 101, 242, 1); }
}

.badge-text {
    color: #7289DA;
}

/* ===== SLIDE TITLE ===== */
.slide-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 25px;
    text-shadow: 
        0 0 20px rgba(88, 101, 242, 0.8),
        0 0 40px rgba(88, 101, 242, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.8);
}

.slide-title .neon-gradient {
    background: linear-gradient(135deg, #fff, #7289DA, #5865F2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitlePulse 4s ease-in-out infinite;
}

@keyframes heroTitlePulse {
    0%, 100% { 
        filter: brightness(1);
        text-shadow: 
            0 0 20px rgba(88, 101, 242, 0.8),
            0 0 40px rgba(88, 101, 242, 0.5);
    }
    50% { 
        filter: brightness(1.3);
        text-shadow: 
            0 0 30px rgba(88, 101, 242, 1),
            0 0 60px rgba(88, 101, 242, 0.7);
    }
}

/* ===== SLIDE DESCRIPTION ===== */
.slide-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #D4D6DC;
    margin: 0 0 35px;
    max-width: 550px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== SLIDE ACTIONS (BUTTONS) ===== */
.slide-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.slide-actions button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-play {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: #fff;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.6);
    background: linear-gradient(135deg, #7289DA, #5865F2);
}

.btn-info {
    background: rgba(47, 49, 54, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(114, 137, 218, 0.3);
}

.btn-info:hover {
    transform: translateY(-3px);
    background: rgba(114, 137, 218, 0.3);
    border-color: #7289DA;
    box-shadow: 0 8px 25px rgba(114, 137, 218, 0.4);
}

/* ===== HERO CONTROLS (DOTS) ===== */
.hero-controls {
    position: absolute;
    bottom: 30px;
    right: 8%;
    display: flex;
    gap: 12px;
    z-index: 30;
}

.control-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.control-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.control-dot.active {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.8);
    width: 30px;
    border-radius: 6px;
}

/* ===== HERO NAVIGATION (PREV/NEXT) ===== */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(47, 49, 54, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav:hover {
    background: rgba(88, 101, 242, 0.5);
    border-color: #5865F2;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.7);
}

.hero-nav.prev {
    left: 30px;
}

.hero-nav.next {
    right: 30px;
}

/* ===== SCROLL REVEAL ===== */
.reveal-hidden {
    opacity: 0;
}

.revealed.reveal-fade-up {
    animation: revealFadeUp 1s ease forwards;
}

@keyframes revealFadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .slide-content {
        left: 6%;
        max-width: 500px;
    }
    
    .slide-title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }
    
    .slide-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .home-hero-epic {
        min-height: 600px;
    }
    
    .slide-content {
        left: 5%;
        right: 5%;
        bottom: 10%;
        max-width: 90%;
    }
    
    .slide-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 15px;
    }
    
    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .slide-actions {
        gap: 10px;
    }
    
    .slide-actions button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-controls {
        right: 5%;
        bottom: 20px;
        gap: 8px;
    }
    
    .control-dot {
        width: 10px;
        height: 10px;
    }
    
    .control-dot.active {
        width: 24px;
    }
    
    .hero-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-nav.prev {
        left: 15px;
    }
    
    .hero-nav.next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .home-hero-epic {
        min-height: 500px;
    }
    
    .slide-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .slide-title {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }
    
    .slide-description {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3; /* Propriedade padrão para compatibilidade */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slide-actions button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .hero-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
