/* =========================================================
   chat-orange.css - STUDIO DARK "ORANGEY" EDITION
========================================================= */

* {
    box-sizing: border-box;
}

body {
    color: #f8fafc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)), url('../pic/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Hauptcontainer */
.chat-container {
    width: min(900px, calc(100% - 2rem));
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header & Logo */
.radio-header { text-align: center; margin-bottom: 10px; }
.radio-logo {
    max-width: 100%; width: 350px; height: auto; border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.radio-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.5));
}

/* Obere Reihe: Player & Wishbox */
.top-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}
@media (max-width: 850px) {
    .top-row { grid-template-columns: 1fr; }
}

/* Allgemeine Box-Styles (Kacheln) */
.radio-player, .wishbox, .schedule-bar, .radio-info-bar, .chat-panel {
    background: #242424;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
}

/* --- RADIO PLAYER --- */
.radio-player h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #eeeeee;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 10px;
    font-size: 1.1rem;
}

/* Stream Badge */
.stream-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}
.stream-badge.main { background: #e67e22; color: #fff; }
.stream-badge.backup { background: #c0392b; color: #fff; }

/* History Box */
#history-box {
    background: rgba(36, 36, 36, 0.95) !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(10px);
    color: #f8fafc !important;
}
#history-box h4 {
    color: #e67e22 !important;
    border-bottom: 1px solid #3a3a3a !important;
}

/* Audio Player */
audio {
    width: 100%;
    border-radius: 6px;
    filter: invert(90%) hue-rotate(180deg);
    opacity: 0.9;
    outline: none;
}
#player-metadata {
    color: #e67e22 !important;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
#backup-centova-text { color: #e67e22 !important; font-weight: bold; }
#backup-centova-wrapper { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }


/* --- FORMULARE & BUTTONS --- */
input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    font-size: 1rem;
}
input[type="text"]:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

button {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

/* --- WUNSCHBOX --- */
.wishbox {
    display: flex;
    flex-direction: column;
}
.wishbox h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #e67e22;
    border-bottom: 2px solid #3a3a3a;
    padding-bottom: 10px;
    font-size: 1.1rem;
}
.wishbox button {
    margin-top: auto;
    background: linear-gradient(135deg, #d35400, #a84300);
}
.wishbox-closed-state { justify-content: center; align-items: center; text-align: center; opacity: 0.8; }

/* --- INFO BALKEN (Präsenter) --- */
.radio-info-bar {
    background: linear-gradient(to right, rgba(230, 126, 34, 0.3), rgba(26, 26, 26, 0.9));
    border-left: 5px solid #e67e22;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.15rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.15);
}
.radio-info-bar .info-icon {
    font-size: 2.2rem;
    animation: pulseIcon 2s infinite;
}
#radio-info-text {
    line-height: 1.6;
    font-weight: 500;
}

/* --- SENDEPLAN LEISTE (Studio ON-AIR Look) --- */
.schedule-bar {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-left: 4px solid #f39c12;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
    .schedule-bar { flex-direction: column; gap: 15px; text-align: center; }
}

.schedule-bar .now { color: #ffffff; }
.schedule-bar .now b {
    background: #e67e22;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 10px;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(230, 126, 34, 0.6);
    animation: pulseOnAir 2s infinite;
}
.schedule-bar .next { color: #cccccc; font-size: 1rem; }
.schedule-bar .next b {
    background: #444444;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 10px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

/* --- CHAT BEREICH --- */
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 500px;
    padding: 0;
    overflow: hidden;
}
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid #3a3a3a;
    font-weight: bold;
}

#cls-btn {
    background: transparent !important;
    color: #ef4444 !important;
    padding: 0 0.5rem !important;
    box-shadow: none !important;
}
#cls-btn:hover { background: rgba(239, 68, 68, 0.1) !important; transform: none !important; }

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.msg-row { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
.msg-row.self { align-items: flex-end; }
.msg-meta { font-size: 0.75rem; color: #888; margin-bottom: 4px; padding: 0 4px; }
.msg-meta span { font-weight: bold; color: #f39c12; }
.msg-row.self .msg-meta span { color: #e67e22; }

.msg-bubble {
    background: #333333;
    padding: 8px 14px;
    border-radius: 2px 14px 14px 14px;
    color: #f1f5f9;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid #444;
}
.msg-row.self .msg-bubble {
    background: #d35400;
    border-color: #a84300;
    border-radius: 14px 2px 14px 14px;
}

/* System Durchsagen (Gold/Gelb) */
.msg-system-row { align-items: center; margin: 10px 0; }
.msg-system-bubble {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #000;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    border: 2px solid #f1c40f;
    font-size: 0.85rem;
}

.chat-input-area {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid #3a3a3a;
    display: flex;
    gap: 10px;
}
.chat-input-area input { margin-bottom: 0; border-radius: 20px; }
.chat-input-area button { border-radius: 20px; padding: 0 20px; margin: 0; }

/* --- FOOTER --- */
.radio-footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}

/* --- ANIMATIONEN --- */
@keyframes pulseOnAir {
    0% { box-shadow: 0 0 5px rgba(230, 126, 34, 0.4); }
    50% { box-shadow: 0 0 15px rgba(230, 126, 34, 0.9); }
    100% { box-shadow: 0 0 5px rgba(230, 126, 34, 0.4); }
}
@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    100% { transform: scale(1); opacity: 0.8; }
}
