/*
 * Live Stream Page Styles
 * Matches site-wide header styling
 */

/* Reset and base */
.live-stream-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--color-bg-cream, #fcfaf1);
}

.live-stream-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Background Image */
.stream-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.stream-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header - matches bts-header styling */
.stream-header {
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
}

.stream-header .header-content {
    flex: 1;
    background: var(--color-bg-cream, #fcfaf1);
    border: 2px solid var(--color-primary, #1d5037);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.2);
    padding: 18px 34px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stream-header .header-label {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 1.2px;
    color: var(--color-primary, #1d5037);
    text-transform: uppercase;
}

.stream-header .header-title {
    font-family: 'Courier New', monospace;
    font-size: 30px;
    line-height: 36px;
    color: var(--color-primary, #1d5037);
    margin: 0;
}

.stream-header .header-close-btn {
    background: var(--color-bg-cream, #fcfaf1);
    border: 2px solid var(--color-primary, #1d5037);
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.2);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary, #1d5037);
    text-decoration: none;
    flex-shrink: 0;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.stream-header .header-close-btn:hover {
    background: var(--color-note, #e5e8a7);
}

/* Stream Content Area */
.stream-content {
    position: absolute;
    top: 160px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Stream Active State */
.stream-active {
    position: relative;
    width: 100%;
    height: 100%;
}

.stream-embed {
    width: 100%;
    height: 100%;
}

.stream-embed iframe,
.stream-embed video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Invisible overlay to prevent clicking through to YouTube */
.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: default;
}

/* Stream Offline State */
.stream-offline {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.83);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.offline-icon {
    width: 64px;
    height: 64px;
    color: var(--color-bg-cream, #fcfaf1);
    margin-bottom: 8px;
}

.offline-icon svg {
    width: 100%;
    height: 100%;
}

.offline-title {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    line-height: 28px;
    color: var(--color-bg-cream, #fcfaf1);
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

.offline-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-bg-cream, #fcfaf1);
    text-align: center;
    margin: 0;
    opacity: 0.75;
    letter-spacing: -0.15px;
}

/* Responsive */
@media (max-width: 768px) {
    .stream-header {
        top: 20px;
        padding: 0 10px;
    }
    
    .stream-header .header-content {
        padding: 12px 20px;
    }
    
    .stream-header .header-title {
        font-size: 20px;
        line-height: 24px;
    }
    
    .stream-header .header-close-btn {
        width: 44px;
        height: 44px;
    }
    
    .stream-content {
        top: 120px;
    }
    
    .offline-title {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .offline-subtitle {
        font-size: 12px;
        padding: 0 20px;
    }
}
