/* ================================================================= */
/* STATION-SPECIFIC THEMES */
/* ================================================================= */

/* RCHM-RADIO Theme (Blue/Teal) */
.rteh-radio-theme {
    background: linear-gradient(135deg, #509ea5 15%, #407a80 100%) !important;
    color: #ffffff !important;
    border-color: #509ea5 !important;
}

/* RCHM-GOSPEL Theme (Red) */
.rteh-gospel-theme {
    background: linear-gradient(135deg, #d9534f 15%, #b02a37 100%) !important;
    color: #ffffff !important;
    border-color: #d9534f !important;
}

/* ================================================================= */
/* NOW PLAYING WIDGET STYLES */
/* ================================================================= */

.rteh-now-playing-container {
    color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    font-family: sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin: 10px 0;
}

.rteh-show-info h4.rteh-current-show {
    margin: 0 0 5px 0;
    font-size: 1.0em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.rteh-show-info p.rteh-dj-name {
    margin: 0 0 10px 0;
    font-style: italic;
    opacity: 0.9;
}

/* ======================================================== */
/* --- THIS IS THE CORRECTED RULE ---                       */
/* ======================================================== */
.rteh-show-info p.rteh-show-time {
    margin: 0;
    font-size: 1em;
    font-family: monospace;
    font-weight: bold;
    white-space: nowrap; /* This prevents the time from breaking into two lines */
    min-width: 100px;    /* ADDED: Prevents the element from getting too narrow */
    text-align: center;  /* ADDED: Centers the time within its available space */
}
/* ======================================================== */
/* --- END OF CORRECTION ---                                */
/* ======================================================== */

.rteh-upcoming-show {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 15px;
    padding-top: 10px;
}

.rteh-upcoming-show p {
    margin: 0;
    font-size: 0.9em;
}

.rteh-off-air p {
    margin: 0;
    font-weight: bold;
    font-size: 1.0em;
    text-align: center;
}

/* ================================================================= */
/* NOW/NEXT ON AIR DISPLAY STYLES */
/* ================================================================= */

.rteh-now-next-on-air-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.rteh-now-next-display {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.rteh-current-show, .rteh-upcoming-show {
    flex: 1;
    padding: 15px;
    border-radius: 8px;
}

.rteh-current-show {
    background: #509ea5;
    color: white;
}

.rteh-upcoming-show {
    background: #e9ecef;
    border: 2px solid #509ea5;
}

.rteh-off-air {
    text-align: center;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
}

.rteh-now-next-display h3 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rteh-now-next-show-info {
    font-size: 1.1em;
}

.rteh-now-next-show-info strong {
    font-size: 1.2em;
}

.rteh-now-next-show-info small {
    opacity: 0.8;
    font-size: 0.9em;
}

.rteh-now-next-loading, .rteh-now-next-error {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #6c757d;
}

/* ================================================================= */
/* FULL SCHEDULE STYLES */
/* ================================================================= */

.rteh-full-schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.rteh-schedule-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.rteh-schedule-day {
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.rteh-day-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.rteh-shows-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rteh-show-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.rteh-show-item:hover {
    background-color: #f9f9f9;
}

.rteh-show-item:last-child {
    border-bottom: none;
}

.rteh-show-info {
    flex: 1;
}

.rteh-show-name {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.rteh-show-dj {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.rteh-show-time {
    font-size: 10px;
    color: #34495e;
    background: #ecf0f1;
    padding: 5px 10px;
    border-radius: 4px;
    min-width: 100px;
    text-align: center;
}

/* ================================================================= */
/* STATION BADGES FOR SCHEDULE */
/* ================================================================= */

.rteh-station-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    margin-left: 10px;
    text-transform: uppercase;
}

.rteh-station-radio {
    background: #509ea5;
    color: white;
}

.rteh-station-gospel {
    background: #d9534f;
    color: white;
}

/* ================================================================= */
/* LIVE SHOW HIGHLIGHTING STYLES */
/* ================================================================= */

.rteh-show-item.rteh-is-live {
    background-color: #e8f5e8; /* Light green background */
    border-left: 4px solid #27ae60; /* Green left border */
    padding-left: 16px;
}

.rteh-show-item.rteh-is-live .rteh-show-time {
    background: #27ae60; /* Dark green time box */
    color: white;
    font-weight: bold;
}

/* ================================================================= */
/* RESPONSIVE DESIGN */
/* ================================================================= */

@media (max-width: 768px) {
    .rteh-show-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .rteh-show-time {
        align-self: flex-start;
    }
    
    .rteh-full-schedule-container {
        padding: 10px;
    }
    
    .rteh-now-next-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .rteh-current-show, .rteh-upcoming-show {
        width: 100%;
    }
    
    .rteh-now-playing-container {
        padding: 15px;
        margin: 5px 0;
    }
}

/* ================================================================= */
/* LOADING AND ERROR STATES */
/* ================================================================= */

.rteh-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.rteh-error {
    text-align: center;
    padding: 20px;
    color: #d9534f;
    background: #f8d7da;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
}

/* ================================================================= */
/* SMOOTH TRANSITIONS */
/* ================================================================= */

.rteh-now-playing-container,
.rteh-show-item,
.rteh-now-next-display {
    transition: all 0.3s ease;
}