/* =====================================================
   Showplan Today Panel – CSS (Bootstrap 4 Standard)
   /infusions/showplan_today_panel/templates/today_panel.css
   www.krazzfm.com
   ===================================================== */

/* ---- Panel ------------------------------------------ */
.stp-panel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: 3px solid #007bff;
    border-radius: .375rem;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #212529;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ---- Header ----------------------------------------- */
.stp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.stp-header-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.stp-header-title {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #007bff;
    flex: 1;
}

.stp-header-date {
    font-size: 1.22rem;
    color: #6c757d;
}

/* ---- Body ------------------------------------------- */
.stp-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stp-empty {
    padding: 24px 10px;
    text-align: center;
    color: #6c757d;
    font-size: .88rem;
    font-style: italic;
}

/* ---- Sendungs-Card ---------------------------------- */
.stp-show {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    position: relative;
}

.stp-show:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

/* Vergangene Sendungen abgedunkelt */
.stp-show-past {
    opacity: .45;
}

/* Live-Sendung hervorgehoben */
.stp-show-live {
    opacity: 1;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,.2);
    animation: stp-live-pulse 3s ease-in-out infinite;
}

@keyframes stp-live-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(40,167,69,.2); }
    50%       { box-shadow: 0 0 0 4px rgba(40,167,69,.3); }
}

/* Farbbalken links */
.stp-color-bar {
    width: 4px;
    min-width: 4px;
    background: var(--show-color, #007bff);
    flex-shrink: 0;
}

/* Show-Inhalt */
.stp-show-inner {
    flex: 1;
    padding: 10px 12px;
    min-width: 0;
}

/* Live-Badge */
.stp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dc3545;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stp-live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: stp-blink 1s step-start infinite;
}

@keyframes stp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Uhrzeit */
.stp-show-time {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.stp-time-start {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fd7e14;
}

.stp-time-sep {
    font-size: .9rem;
    opacity: .7;
    color: #fd7e14;
}

.stp-time-end {
    font-size: .98rem;
    opacity: .7;
    color: #fd7e14;
}

/* Sendungstitel */
.stp-show-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #212529;
    margin-bottom: 4px;
    line-height: 1.3;
    word-break: break-word;
}

/* Moderator-Zeile */
.stp-show-host {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.stp-avatar {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.stp-genre {
    background: #e9ecef;
    color: #007bff;
    font-size: .95rem;
    padding: 1px 7px;
    border-radius: 10px;
    letter-spacing: .5px;
}

/* Beschreibung */
.stp-show-desc {
    margin-top: 5px;
    font-size: .82rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Badges */
.stp-badge-recurring,
.stp-badge-grussbox {
    font-size: 1.1rem;
    vertical-align: middle;
    margin-left: 3px;
    opacity: .8;
}
.stp-badge-recurring { color: #28a745; }
.stp-badge-grussbox  { color: #fd7e14; }

/* Großes Avatar rechts */
.stp-avatar-big {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-left: 1px solid #dee2e6;
    flex-shrink: 0;
}

.stp-avatar-big img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    display: block;
}

/* ---- Footer ----------------------------------------- */
.stp-footer {
    padding: 12px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 4px;
}

.stp-goto-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #007bff;
    border-radius: .25rem;
    color: #007bff;
    text-align: center;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    transition: background .15s, color .15s;
}

.stp-goto-btn:hover {
    background: #007bff;
    color: #fff;
}

/* ---- Genre-Badge (unabhängig von sendeplan.css) ------ */
.sp-list-genre {
    background: #e9ecef;
    color: #007bff;
    font-size: .95rem;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: .5px;
    display: inline-block;
}
