/* ==========================================================================
   Chesapeake Weather - Main Theme & Media Layout
   ========================================================================== */

/* Global Reset & Dark Theme Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #080808;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: flex-start;
}

/* Content Layout Wrapper */
.content-area {
    width: 100%;
    max-width: 900px;
    padding: 15px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   Live Feed Section & Video Box
   ========================================================================== */

/* Live Indicator Header */
.live-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Pulsing Red Dot for Live Status */
.live-indicator .dot {
    height: 10px;
    width: 10px;
    background-color: #ff3b30;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px #ff3b30;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Video Box Outer Container */
.video-box {
    width: 100%;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    margin-bottom: 25px;
}

/* Aspect-Ratio Maintained Video Wrapper (16:9 Responsive) */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #1f1f1f;
}

/* HTML5 Video Element inside Container */
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

/* Offline State Placeholder */
.offline-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888888;
    text-align: center;
    padding: 20px;
}

.offline-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.offline-placeholder h3 {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.offline-placeholder p {
    font-size: 0.85rem;
    max-width: 80%;
}

/* Stream Attribution Subtext */
.video-attribution {
    font-size: 0.85rem;
    color: #888888;
    text-align: right;
    margin-top: 8px;
}

.video-attribution strong {
    color: #cccccc;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */

footer {
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777777;
    width: 100%;
}

footer a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .content-area {
        padding: 10px;
    }
    
    .video-box {
        padding: 8px;
        border-radius: 8px;
    }
    
    .live-indicator {
        font-size: 0.85rem;
    }
}
