/**
 * Hero Sections CSS
 * Enhanced hero section designs for category pages
 * Based on Udupi Tourism design standards
 */

/* ==========================================================================
   HERO SECTION BASE STYLES
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.hero--category {
    min-height: 80vh;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__video,
.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__video {
    filter: brightness(0.7) contrast(1.1);
}

.hero__image {
    filter: brightness(0.8) contrast(1.1);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ==========================================================================
   HERO CONTENT ELEMENTS
   ========================================================================== */

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__icon {
    font-size: 1.1rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 2rem 0;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Hero Statistics */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0 3rem 0;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--category-color, #2ECC71);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat__label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Actions */
.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    min-width: 180px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--category-color, #2ECC71) 0%, #27AE60 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(46, 204, 113, 0.4);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ==========================================================================
   CATEGORY-SPECIFIC HERO STYLES
   ========================================================================== */

/* Adventure & Trekking */
.hero--adventure-trekking {
    --category-color: #2ECC71;
}

.hero--adventure-trekking .hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(46, 204, 113, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(39, 174, 96, 0.4) 100%
    );
}

/* Heritage & Religious */
.hero--heritage-religious {
    --category-color: #E74C3C;
}

.hero--heritage-religious .hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(231, 76, 60, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(192, 57, 43, 0.4) 100%
    );
}

/* Nature & Wildlife */
.hero--nature-wildlife {
    --category-color: #27AE60;
}

.hero--nature-wildlife .hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(39, 174, 96, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(22, 160, 133, 0.4) 100%
    );
}

/* Waterfalls & Dams */
.hero--waterfalls-dams {
    --category-color: #3498DB;
}

.hero--waterfalls-dams .hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(52, 152, 219, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(41, 128, 185, 0.4) 100%
    );
}

/* Hidden Gems */
.hero--hidden-gems {
    --category-color: #9B59B6;
}

.hero--hidden-gems .hero__overlay {
    background: linear-gradient(
        135deg,
        rgba(155, 89, 182, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(142, 68, 173, 0.4) 100%
    );
}

/* ==========================================================================
   QUICK NAVIGATION SECTION
   ========================================================================== */

.quick-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.quick-nav__content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-nav__content h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark, #2C3E50);
    flex-shrink: 0;
}

.quick-nav__links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
}

.quick-nav__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-bg, #F8F9FA);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark, #2C3E50);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.quick-nav__link:hover {
    background: var(--category-color, #2ECC71);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-nav__icon {
    font-size: 1rem;
}

/* ==========================================================================
   PARALLAX EFFECTS
   ========================================================================== */

.hero--parallax .hero__background {
    transform: translateZ(0);
    will-change: transform;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero__badge {
    animation: fadeInUp 0.8s ease-out 0.2s both, float 3s ease-in-out infinite 2s;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero--category {
        min-height: 60vh;
    }
    
    .hero__stats {
        gap: 2rem;
        margin: 1.5rem 0 2rem 0;
    }
    
    .stat__number {
        font-size: 1.5rem;
    }
    
    .hero__actions {
        gap: 0.75rem;
    }
    
    .btn--lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-width: 150px;
    }
    
    .quick-nav__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .quick-nav__links {
        gap: 0.5rem;
    }
    
    .quick-nav__link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero__stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn--lg {
        width: 100%;
        max-width: 280px;
    }
    
    .quick-nav {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .hero {
        min-height: 40vh;
        page-break-inside: avoid;
    }
    
    .hero__video {
        display: none;
    }
    
    .hero__actions,
    .quick-nav {
        display: none;
    }
}
