/**
 * Yaremche Tourism Portal — World-Class Motion Design & Glassmorphism Search Styles
 * Pure Vanilla CSS with Hardware-Accelerated 3D Transforms, Shimmer Keyframes & Liquid Tabs
 *
 * @package Yaremche_Tourism
 */

.yaremche-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 24px 70px;
    overflow: hidden;
    background-color: #071712;
}

/* 1. HTML5 Dual Video Crossfade Background */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.64) saturate(1.2) contrast(1.08);
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-video-element.video-active {
    opacity: 1;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(7, 23, 18, 0.45) 0%,
        rgba(7, 23, 18, 0.35) 40%,
        rgba(7, 23, 18, 0.82) 80%,
        #071712 100%
    );
    pointer-events: none;
}

.hero-radial-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.hero-grid-mesh {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image: radial-gradient(rgba(52, 211, 153, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.7;
}

/* 2. Atmospheric Particle Canvas */
.hero-particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* 3. Hero Content Container */
.hero-content-container {
    position: relative;
    z-index: 4;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top Bar: Weather Pill + Atmosphere Selector */
.hero-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    z-index: 5;
}

/* Atmospheric Weather Pill with Live Radar Ring */
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 38, 28, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(52, 211, 153, 0.35);
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.badge-radar-wrap {
    position: relative;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--c-accent-primary, #34D399);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--c-accent-primary, #34D399);
    z-index: 2;
}

.badge-radar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--c-accent-primary, #34D399);
    animation: radarRipple 2.2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

@keyframes radarRipple {
    0% { transform: scale(0.6); opacity: 1; }
    80% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #FFFFFF;
}

/* Atmosphere Switcher Pills */
.hero-atmosphere-switcher {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(7, 23, 18, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    padding: 4px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.atmosphere-label {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    font-weight: 600;
    margin-right: 2px;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atmosphere-btn {
    background: transparent;
    border: none;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    color: var(--c-text-secondary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.atmosphere-btn:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.atmosphere-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

/* 4. Cinematic Kinetic Headline */
.hero-main-title {
    font-family: var(--font-heading);
    font-size: 4.1rem;
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}

.kinetic-line {
    display: block;
}

.highlight-title-wood {
    background: linear-gradient(135deg, #FFE8B6 0%, #E5A93C 30%, #FFF3D6 50%, #D97706 75%, #FFE8B6 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 7s ease-in-out infinite alternate;
    font-style: italic;
    padding-bottom: 4px;
}

@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hero-subtext {
    font-size: 1.22rem;
    color: var(--c-text-secondary);
    max-width: 780px;
    margin-bottom: 38px;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* 5. 3D Perspective Tilt Card Container */
.glass-search-card-tilt-wrap {
    perspective: 1400px;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    z-index: 10;
    will-change: transform;
}

.glass-search-card {
    position: relative;
    transform-style: preserve-3d;
    background: rgba(13, 36, 26, 0.76);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 
        0 30px 80px -15px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(52, 211, 153, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.12s ease-out, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Dynamic Radial Mouse Spotlight */
.glass-spotlight-layer {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(
        680px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.14),
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

/* 6. Liquid Sliding Tabs Header */
.search-tabs-header {
    position: relative;
    display: flex;
    gap: 6px;
    background: rgba(6, 19, 14, 0.72);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
    overflow-x: auto;
    z-index: 2;
}

.liquid-tab-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(27, 59, 43, 0.95) 0%, rgba(16, 75, 52, 0.95) 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.36s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 1;
}

.search-tab-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--c-text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.search-tab-btn:hover {
    color: #FFFFFF;
}

.search-tab-btn.active {
    color: #FFFFFF;
    font-weight: 700;
}

/* 7. Form Panes with Kinetic Field Entrance */
.search-form-pane {
    display: none;
    padding: 6px 10px 14px;
    position: relative;
    z-index: 2;
}

.search-form-pane.active {
    display: block;
}

.search-form-pane.active .search-input-group:nth-child(1) { animation: slideUpField 0.35s 0.04s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.search-form-pane.active .search-input-group:nth-child(2) { animation: slideUpField 0.35s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.search-form-pane.active .search-input-group:nth-child(3) { animation: slideUpField 0.35s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.search-form-pane.active .search-action-group { animation: slideUpField 0.35s 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

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

.form-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 1.2fr;
    gap: 16px;
    align-items: end;
}

.search-input-group {
    text-align: left;
}

.search-input-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--c-wood-glow, #F9D58E);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.glass-input,
.glass-select {
    width: 100%;
    background: rgba(7, 23, 18, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s ease;
    appearance: none;
}

.glass-input:focus,
.glass-select:focus {
    border-color: var(--c-wood-gold, #D97706);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.28);
    background: rgba(7, 23, 18, 0.95);
}

.glass-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ADC1B6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.glass-select option {
    background-color: #0A231A;
    color: #FFFFFF;
}

/* 8. Magnetic Primary Search CTA Button */
.btn-search-primary {
    width: 100%;
    background: linear-gradient(135deg, #E5A93C 0%, #D97706 50%, #B45309 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    will-change: transform;
}

.btn-search-primary:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.65);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-22deg);
    transition: 0.8s;
}

.btn-search-primary:hover .btn-shine {
    left: 200%;
}

/* 9. Floating Micro-Stats Dock */
.hero-stats-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    z-index: 5;
}

.hero-stat-pill {
    background: rgba(14, 38, 28, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

.hero-stat-pill:hover {
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-4px) scale(1.05);
    background: rgba(20, 52, 38, 0.85);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.3);
}

.stat-pill-icon {
    font-size: 1.25rem;
}

.stat-pill-content {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.stat-pill-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--c-accent-primary, #34D399);
}

.stat-pill-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Levitation bob animations */
.float-bob-1 { animation: floatBob 5s ease-in-out infinite; }
.float-bob-2 { animation: floatBob 5.5s 0.6s ease-in-out infinite; }
.float-bob-3 { animation: floatBob 4.8s 1.2s ease-in-out infinite; }
.float-bob-4 { animation: floatBob 5.2s 1.8s ease-in-out infinite; }

@keyframes floatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

/* 10. Quick Filter Tags */
.hero-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 5;
}

.quick-tags-label {
    font-size: 0.85rem;
    color: var(--c-text-muted);
}

.tag-pill {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    color: var(--c-text-secondary);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.tag-pill:hover {
    background: rgba(56, 224, 146, 0.22);
    border-color: var(--c-accent-primary, #34D399);
    color: #FFFFFF;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-main-title {
        font-size: 3.1rem;
    }
    .form-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .yaremche-hero {
        padding: 105px 16px 50px;
    }
    .hero-main-title {
        font-size: 2.3rem;
    }
    .hero-subtext {
        font-size: 1.02rem;
        margin-bottom: 26px;
    }
    .form-fields-grid {
        grid-template-columns: 1fr;
    }
    .search-tabs-header {
        justify-content: flex-start;
    }
    .search-tab-btn {
        padding: 8px 12px;
        font-size: 0.84rem;
    }
    .hero-stats-dock {
        gap: 8px;
    }
    .hero-stat-pill {
        padding: 6px 12px;
    }
}

