/**
 * Renovation Hero Section - Component Styles
 * 
 * This file contains ONLY renovation-specific hero elements:
 * - Video player controls
 * - Hero content overlay
 * - Renovation-specific styling
 * 
 * All core hero styling (fullscreen behavior, title, subtitle, features, buttons) 
 * is inherited from /static/css/components/hero.css
 * 
 * @package TwinsRealEstate
 * @version 2.0.0
 */

:root {
    --luxury-gold: #d4af37;
    --luxury-gold-transparent: rgba(212, 175, 55, 0.7);
}

/* ==========================================================================
   Base Hero Section
   ========================================================================== */

/* Base renovation hero styles - fullscreen behavior handled by global hero.css */
.renovation-hero-section {
    /* All fullscreen behavior (height, margin-top, padding-top) is handled by global hero.css */
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1 !important; /* Ensure hero stays below navbar (navbar is 10000) */
    background: #0a0a0a; /* Ultra-dark fallback */
}

.renovation-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 30%,
        rgba(10, 10, 10, 0.75) 60%,
        rgba(10, 10, 10, 0.65) 100%);
    z-index: 2; /* Within hero section only, below navbar */
    pointer-events: none;
}

/* Ultra-dark overlay */
[data-theme="dark"] .renovation-hero-section::before,
.renovation-hero-section::before {
    background: linear-gradient(to right,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.85) 30%,
        rgba(10, 10, 10, 0.75) 60%,
        rgba(10, 10, 10, 0.65) 100%);
}

/* ==========================================================================
   Video Hero
   ========================================================================== */

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center var(--hero-image-offset-y, 60%);
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    z-index: 1;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center var(--hero-image-offset-y, 60%);
    z-index: 1;
}

.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 5;
}

.video-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-controls button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.video-controls button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ==========================================================================
   Image Hero (Swiper)
   ========================================================================== */

.renovation-hero-swiper {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: var(--vh, 100dvh);
    min-height: 600px;
    background-size: cover;
    background-position: center var(--hero-image-offset-y, 60%);
    background-repeat: no-repeat;
}

/* Gold accent line */
.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--luxury-gold) 50%, transparent 100%);
    z-index: 2;
}

.hero-single-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center var(--hero-image-offset-y, 60%);
    background-repeat: no-repeat;
    z-index: 1;
}

/* Gold accent line for single image */
.hero-single-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--luxury-gold) 50%, transparent 100%);
    z-index: 2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(10, 10, 10, 0.85) 30%, 
        rgba(10, 10, 10, 0.75) 60%, 
        rgba(10, 10, 10, 0.65) 100%);
    z-index: 2;
}

/* Ultra-dark overlay */
[data-theme="dark"] .overlay,
.overlay {
    background: linear-gradient(to right, 
        rgba(10, 10, 10, 0.95) 0%, 
        rgba(10, 10, 10, 0.85) 30%, 
        rgba(10, 10, 10, 0.75) 60%, 
        rgba(10, 10, 10, 0.65) 100%);
}

/* Gradient fallback - Ultra-dark */
.hero-gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    z-index: 1;
}

/* ==========================================================================
   Hero Content Overlay
   ========================================================================== */

.renovation-hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    /* Allow clicks to pass through to video controls while keeping
       CTA buttons clickable */
    pointer-events: none;
}

.hero-content {
    max-width: 980px;
    text-align: center;
    padding: 0 2rem;
    pointer-events: none;
}

/* Logo styling - inherited from global hero.css but with renovation-specific adjustments */
.renovation-hero-content .hero-logo {
    max-height: 120px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 8px 32px rgba(0, 0, 0, 0.2));
    margin-bottom: 2rem;
}

/* Enable clicks on interactive elements (needed due to parent pointer-events: none) */
.hero-cta .btn,
.hero-features {
    pointer-events: auto;
}

/* ==========================================================================
   Scroll Down Indicator
   ========================================================================== */

.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: float 3s ease-in-out infinite;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.4s ease;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: auto; /* Keep scroll indicator clickable */
}

.scroll-down a:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.scroll-down i {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ==========================================================================
   Swiper Navigation
   ========================================================================== */

.renovation-hero-swiper .swiper-button-next,
.renovation-hero-swiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.renovation-hero-swiper .swiper-button-next::after,
.renovation-hero-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 600;
}

.renovation-hero-swiper .swiper-button-next:hover,
.renovation-hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.renovation-hero-swiper .swiper-pagination {
    bottom: 6rem;
}

.renovation-hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.renovation-hero-swiper .swiper-pagination-bullet-active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* ==========================================================================
   Fullscreen Video Support
   ========================================================================== */

.renovation-hero-section.fullscreen-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999; /* Above navbar when in fullscreen mode only */
    background: black;
}

.renovation-hero-section.fullscreen-video .hero-video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.renovation-hero-section.fullscreen-video .video-controls {
    bottom: 4rem;
    right: 4rem;
}

.fullscreen-exit-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fullscreen-exit-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

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

@media (max-width: 768px) {
    /* Fullscreen behavior (height, margin-top, padding-top) handled by global hero.css */
    /* Only renovation-specific content styling here */
    
    .renovation-hero-content {
        padding: 2rem 0;
    }
    
    .renovation-hero-content .hero-logo {
        max-height: 80px;
        margin-bottom: 1.5rem;
    }
    
    .video-controls {
        bottom: 1.25rem;
        right: 1.25rem;
        gap: 0.75rem;
    }
    
    .video-controls button {
        width: 44px;
        height: 44px;
        font-size: 0.875rem;
    }
    
    .scroll-down {
        bottom: 2rem;
    }
    
    .renovation-hero-swiper .swiper-pagination {
        bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .renovation-hero-content .hero-logo {
        max-height: 60px;
    }
    
    .scroll-down {
        bottom: 1rem;
    }
    
    .scroll-down a {
        font-size: 0.625rem;
    }
    
    .scroll-down i {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================================================
   Dark/Light Theme Support
   ========================================================================== */

/* Dark theme adjustments for hero content */
[data-theme="dark"] .scroll-down a {
    color: rgba(248, 249, 250, 0.7);
}

[data-theme="dark"] .scroll-down a:hover {
    color: rgba(248, 249, 250, 0.9);
}

/* Light theme specific adjustments */
[data-theme="light"] .scroll-down a {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .scroll-down a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .scroll-down {
        animation: none;
    }
    
    .video-controls button {
        transition: none;
    }
    
    .hero-slide,
    .hero-single-image {
        transition: none;
    }
}
