/* Video Header Styles */

/* Base region header container */
.region-specific-header {
    position: relative;
    min-height: 300px;
    max-height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    overflow: hidden;
    margin-top: 80px;
    /* Account for fixed navigation bar */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
    right: 0;
}

/* Fallback background for regions without image/video */
.region-specific-header.has-fallback-bg {
    background: linear-gradient(135deg,
            #8B4513 0%,
            #A0522D 25%,
            #DEB887 50%,
            #D2B48C 75%,
            #8B4513 100%);
    background-size: 400% 400%;
    animation: wine-gradient 15s ease infinite;
}

@keyframes wine-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Video background for headers with video */
.region-specific-header.has-video {
    min-height: 400px;
    max-height: 60vh;
}

.region-specific-header.has-video .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.region-specific-header.has-video .video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-width: 100vw;
    min-height: 100%;
    border: none;
    object-fit: cover;
}

.region-specific-header.has-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Sponsor Attribution */
.sponsor-attribution {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.sponsor-attribution a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.sponsor-attribution a:hover {
    color: #FFF;
    text-decoration: underline;
}

.sponsor-attribution .sponsor-name {
    color: #FFD700;
    font-weight: 600;
    margin-left: 5px;
}

/* Region Header Content */
.region-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 30px 20px;
    text-align: center;
    width: 100%;
}

.region-header-content h1 {
    font-size: 3.2rem;
    font-family: "Playfair Display", serif;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-weight: 700;
    line-height: 1.2;
}

.region-header-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.region-header-content .region-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.05rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
}

.region-header-content .region-location i {
    color: white !important;
    margin-right: 6px;
}

.region-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.region-meta-item {
    background: rgba(255, 255, 255, 0.18);
    padding: 15px 20px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.region-meta-number {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.region-meta-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.region-meta-button {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.region-meta-button:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.region-header-btn {
    background: none;
    border: none;
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    padding: 0;
}

.region-header-btn i {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.region-header-btn span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.region-header-btn:hover {
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .region-specific-header {
        min-height: 250px;
        max-height: 45vh;
        margin-top: 70px;
    }

    .region-specific-header.has-video {
        min-height: 300px;
        max-height: 50vh;
    }

    .region-header-content {
        padding: 25px 15px;
    }

    .region-header-content h1 {
        font-size: 2.2rem;
    }

    .region-header-content p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .region-meta {
        gap: 12px;
        margin-top: 20px;
    }

    .region-meta-item {
        padding: 12px 15px;
        min-width: 80px;
    }

    .region-meta-number {
        font-size: 1.5rem;
    }

    .region-location {
        font-size: 0.95rem;
        padding: 8px 16px;
    }

    .sponsor-attribution {
        bottom: 10px;
        right: 10px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .region-specific-header {
        min-height: 200px;
        max-height: 40vh;
    }

    .region-specific-header.has-video {
        min-height: 250px;
        max-height: 45vh;
    }

    .region-header-content {
        padding: 20px 10px;
    }

    .region-header-content h1 {
        font-size: 1.8rem;
    }

    .region-header-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .region-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .region-meta-item {
        min-width: 120px;
    }

    .region-location {
        font-size: 0.9rem;
    }
}