/* Custom CSS for Video Header Module */

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Slab', serif;
    overflow-x: hidden;
}

/* Video Header Container */
.video-header-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Background Video */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(140, 135, 192, 0.4) 0%, transparent 50%, rgba(140, 135, 192, 0.4) 100%);
    z-index: 2;
}

/* Video Loading State */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #1e293b, #334155, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid transparent;
    border-bottom: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 18px;
    margin: 0;
}

/* Video Error State */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(185, 28, 28, 0.5), #334155, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.error-content {
    text-align: center;
    color: white;
    padding: 32px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.error-title {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.error-message {
    font-size: 14px;
    color: #fca5a5;
    margin: 0 0 16px 0;
}

.error-help {
    font-size: 12px;
    color: #d1d5db;
    margin: 0;
}

/* Header Content */
.video-header-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
}

/* Logo */
.logo-container {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-link {
    display: block;
    width: 80px;
    height: 48px;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Mobile Hamburger */
.mobile-hamburger {
    display: block;
    flex-shrink: 0;
    align-items: flex-end;
    height: 64px;
    margin-left: auto;
}

.hamburger-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
}

.hamburger-lines {
    margin-bottom: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: white;
    margin-bottom: 4px;
}

.hamburger-line:last-child {
    margin-bottom: 0;
}

.hamburger-text {
    color: white;
    font-size: 7px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    width: 24px;
    text-align: center;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 16px;
    position: relative;
}

.text-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 0 20px;
}

.text-content {
    position: relative;
}

.cycling-text {
    transition: all 1.5s ease-in-out;
    opacity: 1;
    transform: translateY(0);
    font-size: 3.75rem;
}

.cycling-text.fade-out {
    opacity: 0;
    transform: translateY(4px);
}

.main-heading {
    color: white;
    font-size: 36px; /* text-4xl */
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
}

.highlight {
    color: #F4B827;
}

/* Bottom Bar */
.bottom-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

/* Mobile Play/Pause Button */
.mobile-play-pause-button {
    display: block; /* shown on mobile */
    width: 28px; /* w-7 */
    height: 28px; /* h-7 */
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    touch-action: manipulation;
    order: -1; /* order-first */
}

.mobile-play-pause-button:hover {
    opacity: 1;
    border-color: white;
}

.mobile-pause-icon {
    display: flex;
    gap: 4px; /* space-x-1 */
}

.mobile-pause-bar {
    width: 2px; /* w-0.5 */
    height: 10px; /* h-2.5 */
    background-color: white;
}

.mobile-play-icon {
    width: 0;
    height: 0;
    border-left: 4px solid white; /* border-l-[4px] */
    border-top: 2.5px solid transparent; /* border-t-[2.5px] */
    border-bottom: 2.5px solid transparent; /* border-b-[2.5px] */
    margin-left: 2px; /* ml-0.5 */
}

/* Desktop Play/Pause Button */
.play-pause-button {
    display: none; /* hidden on mobile, shown on sm and up */
    background: transparent;
    border: 2px solid white;
    border-radius: 50px; /* rounded-full */
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    opacity: 0.3;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    touch-action: manipulation;
    width: auto;
    min-width: 160px;
    max-width: 230px;
    height: 44px;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
    font-size: clamp(10px, 2.5vw, 14px);
    font-weight: 500;
    color: white;
    letter-spacing: clamp(0.1em, 0.5vw, 0.34em);
}

.play-pause-button:hover {
    opacity: 1;
    border-color: white;
}

.play-pause-icon {
    flex-shrink: 0;
    padding-right: 4px;
}

.pause-icon {
    width: 12px; /* w-3 */
    height: 12px; /* h-3 */
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px; /* space-x-0.5 */
}

.pause-bar {
    width: 2px; /* w-0.5 */
    height: 6px; /* h-1.5 */
    background-color: black;
}

.play-icon {
    width: 12px; /* w-3 */
    height: 12px; /* h-3 */
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-triangle {
    width: 0;
    height: 0;
    border-left: 2px solid black; /* border-l-[2px] */
    border-top: 1.5px solid transparent; /* border-t-[1.5px] */
    border-bottom: 1.5px solid transparent; /* border-b-[1.5px] */
    margin-left: 2px; /* ml-0.5 */
}

.play-pause-text {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    color: inherit;
}

/* News Ticker */
.news-ticker-container {
    flex-shrink: 0;
    width: 100%;
}

.news-ticker {
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    max-width: 100%;
    overflow: hidden;
    width: min(925px, calc(100vw - 2rem));
    height: 44px;
    background-color: #F4B827;
    padding-left: clamp(12px, 3vw, 24px);
    padding-right: clamp(6px, 1.5vw, 6px);
}

.news-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
    font-family: 'Futura', 'Futura PT', 'Century Gothic', 'Trebuchet MS', Arial, sans-serif;
    font-size: clamp(12px, 3vw, 16px);
    font-weight: bold;
    color: #312F48;
    letter-spacing: 0.05em;
}

.news-label-desktop {
    display: none;
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    margin-left: 8px;
    min-width: 0;
}

.news-text {
    transition: all 1.5s ease-out;
    opacity: 1;
    flex: 1;
    margin-right: 8px;
    min-width: 0;
}

.news-text.fade-out {
    opacity: 0;
}

.news-link {
    display: block;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    color: #312F48;
    font-size: clamp(11px, 2.5vw, 14px);
    font-family: 'Roboto Slab', serif;
    font-weight: 400;
    text-decoration: none;
}

.news-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.news-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #312F48;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    touch-action: manipulation;
}

.news-arrow:hover {
    opacity: 0.65;
}

/* Responsive Design */
@media (min-width: 640px) {
    /* Small screen responsive classes */
    .sm\:h-20 { height: 5rem; }
    .sm\:w-6 { width: 1.5rem; }
    .sm\:h-6 { height: 1.5rem; }
    .sm\:space-x-4 > * + * { margin-left: 1rem; }
    .video-header-content {
        margin-left: 24px;
    }
    .sm\:h-16 {
        height: 4rem;
    }
    .sm\:w-24 {
        width: 6rem;
    }

    .top-bar {
        padding: 24px;
    }

    .logo-link {
        width: 96px;
        height: 64px;
    }

    .mobile-hamburger {
        height: 80px;
    }

    .main-content {
        padding-right: 24px;
    }

    .text-container {
        left: auto;
        right: 24px;
        transform: none;
        max-width: 85vw;
        padding: 0;
    }

    .main-heading {
        font-size: 30px; /* sm:text-3xl */
        text-align: right;
        padding: 0 16px;
    }

    .bottom-bar {
        flex-direction: row;
        align-items: flex-end;
        gap: 0;
        padding: 24px;
    }

    .mobile-play-pause-button {
        display: none; /* hide mobile button on sm and up */
    }

    .play-pause-button {
        display: flex;
        padding: 0 16px;
    }

    .play-pause-icon {
        padding-right: 8px;
    }

    .pause-icon {
        width: 16px; /* sm:w-4 */
        height: 16px; /* sm:h-4 */
    }

    .pause-bar {
        height: 8px; /* sm:h-2 */
    }

    .play-triangle {
        border-left: 3px solid black; /* sm:border-l-[3px] */
        border-top: 2px solid transparent; /* sm:border-t-[2px] */
        border-bottom: 2px solid transparent; /* sm:border-b-[2px] */
    }

    .news-ticker-container {
        flex-shrink: 0;
        width: auto;
        margin-left: auto;
    }

    .news-label-mobile {
        display: none;
    }

    .news-label-desktop {
        display: inline;
    }

    .news-content {
        margin-left: 16px;
    }

    .news-text {
        margin-right: 12px;
    }

    .news-navigation {
        gap: 12px;
    }

    .news-arrow {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 768px) {
    /* Medium screen responsive classes */
    .md\:h-24 { height: 6rem; }
    .md\:w-7 { width: 1.75rem; }
    .md\:h-7 { height: 1.75rem; }
    .md\:space-x-6 > * + * { margin-left: 1.5rem; }
    .md\:h-20 {
        height: 5rem;
    }
    .md\:w-32 {
        width: 8rem;
    }

    .video-header-content {
        margin-left: 64px;
    }

    .top-bar {
        padding: 32px;
    }

    .logo-link {
        width: 128px;
        height: 80px;
    }

    .mobile-hamburger {
        height: 96px;
    }

    .main-content {
        padding-right: 32px;
    }

    .text-container {
        right: 32px;
        max-width: 75vw;
    }

    .main-heading {
        font-size: 36px; /* md:text-4xl */
    }

    .bottom-bar {
        padding: 32px;
    }

    .play-pause-button {
        padding: 0 24px;
    }

    .play-pause-icon {
        padding-right: 10px;
    }

    /* Medium responsive spacing for social icons */
    .space-x-6 > * + * { margin-left: 1.5rem; }

    /* Medium responsive icon sizes */
    .md\:w-7 { width: 1.75rem; }
    .md\:h-7 { height: 1.75rem; }

    .news-content {
        margin-left: 24px;
    }

    .news-text {
        margin-right: 16px;
    }
}

@media (min-width: 1024px) {
    .top-bar {
        padding: 48px;
    }
    .lg\:right-12 {
        right: 3rem
    }

    .lg\:ml-\[140px\] {
        margin-left: 140px
    }

    .lg\:flex {
        display: flex
    }

    .lg\:hidden {
        display: none
    }

    .lg\:h-28 {
        height: 7rem
    }

    .lg\:h-44 {
        height: 11rem
    }

    .lg\:w-72 {
        width: 18rem
    }

    .lg\:max-w-\[900px\] {
        max-width: 900px
    }

    .lg\:p-12 {
        padding: 3rem
    }

    .lg\:pr-12 {
        padding-right: 3rem
    }

    .lg\:text-5xl {
        font-size: 3em;
        line-height: 1
    }
    .main-heading {
        font-size: 48px; /* text-4xl */
    }
    /* Large screen responsive classes */
    .lg\:h-28 { height: 7rem; }
    .lg\:flex { display: flex !important; }

    .desktop-social-icons {
        display: flex;
    }

    /* Show hidden elements on lg breakpoint */
    .lg\:flex {
        display: flex !important;
    }

    /* Responsive spacing for social icons */
    .space-x-3 > * + * { margin-left: 0.75rem; }
    .space-x-4 > * + * { margin-left: 1rem; }

    .video-header-content {
        margin-left: 140px;
    }

    .mobile-hamburger {
        display: none;
    }

    .top-bar {
        padding: 48px;
    }

    .logo-link {
        width: 288px;
        height: 176px;
    }

    .desktop-social-icons {
        height: 112px;
        gap: 24px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
    }

    .main-content {
        padding-right: 48px;
    }

    .text-container {
        right: 48px;
        max-width: 900px;
    }

    .main-heading {
        font-size: 48px; /* lg:text-5xl */
    }

    .bottom-bar {
        padding: 48px;
    }

    .play-pause-button {
        font-size: 14px;
    }

    .news-content {
        margin-left: 24px;
    }
}

@media (min-width: 1280px) {
    .logo-link {
        width: 320px;
        height: 192px;
    }

    .main-heading {
        font-size: 60px; /* xl:text-6xl */
    }
    .xl\:h-48 {
        height: 12rem
    }

    .xl\:w-80 {
        width: 20rem
    }

    .xl\:text-6xl {
        font-size: 3.75em;
        line-height: 1
    }
    .xl\:w-80 {
        width: 20rem;
    }
    .main-heading {
        font-size: 60px; /* text-4xl */
    }
}