/*
Theme Name: Minimal Radio Station Dark
Author: AI Collaborator
Description: A simple, lightweight dark theme for a small radio station featuring a persistent live stream player.
Version: 1.5
Text Domain: radio-station
*/

/* ==========================================================================
   Core Layout & Typography
   ========================================================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
    padding-bottom: 100px; /* Space allowance for the sticky tracking bar */
    background-color: #121212;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Architecture & Social Elements
   ========================================================================== */
header {
    background: #0a0a0a;
    color: #fff;
    padding: 20px 0 10px 0;
    border-bottom: 1px solid #222;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-spacer, .header-socials {
    width: 25%;
    min-width: 140px;
}

.header-branding {
    width: 50%;
    text-align: center;
}

header a {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

header p {
    color: #888;
    margin: 5px 0 0 0;
}

header img {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Expanded maximum tracking bounds specification */
    display: block;
    margin: 0 auto;
}

.header-socials {
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    width: 25%;
    min-width: 150px; /* Forces space for icons on desktop rows */
}

.header-socials a {
    color: #888;
    font-size: 22px; /* Amplified scale factor for high-visibility visual tracking */
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.header-socials a:hover {
    color: #ff3333;
}

/* ==========================================================================
   Header Navigation Menu Styling
   ========================================================================== */
.main-navigation {
    max-width: 800px;
    margin: 20px auto 0 auto;
    border-top: 1px solid #1a1a1a;
    padding-top: 15px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-navigation a {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Dynamic Hero Section
   ========================================================================== */
.hero-stream {
    background: #1e1e1e;
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid #2d2d2d;
}

.hero-stream h2 {
    margin-top: 0;
}

/* ==========================================================================
   News Feed & Blog Articles
   ========================================================================== */
.news-article {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #2d2d2d;
}

.news-article h3 {
    margin-top: 0;
}

.news-article h3 a {
    color: #fff;
    text-decoration: none;
}

.news-article small {
    color: #888;
    display: block;
    margin-bottom: 10px;
}

/* ==========================================================================
   Professional Stylized Live Radio Player
   ========================================================================== */
.radio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0d0d0d;
    color: #fff;
    padding: 12px 30px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.51fr auto 1fr; /* Asymmetric grid layout mapping */
    align-items: center;
    z-index: 9999;
    border-top: 1px solid #1a1a1a;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.6);
}

.player-status-block {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.player-info {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: #1a1a1a;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #2d2d2d;
    flex-shrink: 0;
}

.live-dot {
    display: inline-block;
    animation: pulse 1.8s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.audio-wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    flex-shrink: 0;
}

.audio-wave span {
    width: 3px;
    height: 3px;
    border-radius: 1px;
    transition: height 0.2s ease;
}

/* Animation triggered via JavaScript is-playing core layout map class toggle */
.radio-player-bar.is-playing .audio-wave span {
    animation: wave-bounce 1.2s infinite ease-in-out;
}
.radio-player-bar.is-playing .audio-wave span:nth-child(2) { animation-delay: 0.15s; }
.radio-player-bar.is-playing .audio-wave span:nth-child(3) { animation-delay: 0.3s; }
.radio-player-bar.is-playing .audio-wave span:nth-child(4) { animation-delay: 0.45s; }

@keyframes wave-bounce {
    0%, 100% { height: 3px; }
    50% { height: 18px; }
}

.track-meta-display {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.track-title {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}

.track-artist {
    font-size: 11px;
    color: #888;
}

.player-timestamp {
    font-size: 12px;
    font-family: monospace; /* Stabilizes layouts during fast frame increments */
    color: #666;
    background: #151515;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #222;
    margin-left: 5px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.radio-player-bar.is-playing .player-timestamp.active {
    opacity: 1;
    border-color: #2d2d2d;
}

/* Player Button & Internal Toggle Controllers */
.player-controls-block {
    display: flex;
    justify-content: center;
}

.custom-play-btn {
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.custom-play-btn:hover {
    transform: scale(1.05);
}

.custom-play-btn:active {
    transform: scale(0.95);
}

.icon-pause { display: none; }
.radio-player-bar.is-playing .icon-play { display: none; }
.radio-player-bar.is-playing .icon-pause { display: block; }

/* Volume Element Block Mapping */
.player-volume-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: #2d2d2d;
    border-radius: 2px;
    outline: none;
    transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   Responsive Adaptive Media Overrides
   ========================================================================== */
@media (max-width: 900px) {
    .radio-player-bar {
        grid-template-columns: 1.8fr auto 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    .header-spacer { display: none; }
    .header-branding, .header-socials {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .main-navigation ul {
        gap: 15px;
        flex-wrap: wrap;
    }
    .radio-player-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-content: center;
        padding: 15px 20px;
    }
    .player-status-block { 
        flex-direction: column;
        gap: 6px;
        justify-content: center; 
        text-align: center;
    }
    .player-volume-block { display: none; } /* Drop layout elements gracefully on screens smaller than tablet sizes */
}

/* ==========================================================================
   Concert Calendar Layout & Skeuomorphic Sheets
   ========================================================================== */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2d2d2d;
}

.calendar-title {
    color: #fff;
    margin: 0;
    font-size: 28px;
}

.concert-card {
    background: #1e1e1e;
    border: 1px solid #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: center;
}

/* Daily Calendar Tear-Off Sheet Element */
.concert-date-sheet {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    width: 75px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.concert-date-sheet .month-bar {
    background: #ff3333; /* Fallback accent value */
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 0;
    line-height: 1.2;
}

.concert-date-sheet .day-num {
    color: #111111;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 0 2px 0;
}

.concert-date-sheet .day-name {
    color: #666666;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
}

/* Text Metrics & Event Metadata */
.concert-details h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 20px;
}

.concert-meta {
    font-size: 14px;
    color: #888;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    align-items: center;
}

.concert-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.concert-venue-link a {
    color: #aaa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.concert-excerpt {
    margin: 0;
    font-size: 15px;
    color: #bbb;
}

/* Stylized Ticket CTA Button */
.ticket-btn {
    display: inline-flex;
    align-items: center;
    background: #ff3333; /* Fallback accent value */
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    margin-left: 5px;
}

.ticket-btn:hover {
    opacity: 0.85;
}

/* Interface Utility Element Definitions */
.icon-box { display: inline-flex; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 4px; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; text-decoration: none; }
.play-triangle { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid currentColor; margin-left: 2px; }
.pause-bars { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.vol-shape { width: 8px; height: 8px; background: currentColor; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
