/**
 * ═══════════════════════════════════════════════════════════════════════════════
 * CHANNEL TIMELINE - Stylesheet
 * ═══════════════════════════════════════════════════════════════════════════════
 * Datei: assets/css/channel_timeline.css
 * Version: 4.0 (30.01.2026)
 * Extrahiert aus: channel_timeline.php
 * ═══════════════════════════════════════════════════════════════════════════════
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
}

.timeline-container {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.timeline-container:hover {
    border-color: #00a8ff;
    box-shadow: 0 6px 30px rgba(0, 168, 255, 0.2);
}

/* ===== VERBESSERTE STATS-BOXEN ===== */
.stats-box {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    border: 1px solid #00a8ff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,168,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-box:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: #00ff88;
    box-shadow: 0 12px 35px rgba(0, 168, 255, 0.5);
}

.stats-box:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stats-box h5 {
    position: relative;
    z-index: 1;
    font-size: 28px;
    color: #00ff88;
    margin: 10px 0;
}

.stats-box p {
    position: relative;
    z-index: 1;
    color: #aaa;
    font-size: 13px;
    margin: 0;
}

/* ===== VERBESSERTE LEGENDE ===== */
.legend-container-improved {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.legend-title {
    color: #00a8ff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: help;
}

.legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    box-shadow: 0 0 10px currentColor;
    flex-shrink: 0;
}

.legend-info {
    flex: 1;
}

.legend-label {
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.legend-time {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* ===== VERBESSERTE TIME BAR ===== */
.time-bar-improved {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-dot {
    width: 14px;
    height: 14px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
    box-shadow: 0 0 12px #00ff00;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.current-time-display {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    color: white;
    text-shadow: 0 3px 10px rgba(0,0,0,0.5);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.timezone-selector-improved {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timezone-selector-improved:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

/* ===== VERBESSERTE TIMELINE-ZELLEN ===== */
.timeline-cell {
    position: relative;
    transition: all 0.2s ease;
}

.timeline-cell:hover {
    transform: scale(1.4);
    z-index: 100;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.8);
    border: 2px solid #00a8ff !important;
    border-radius: 3px;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(0,168,255,0.2);
    border-top-color: #00a8ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #00a8ff;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    border: 2px dashed rgba(255,255,255,0.1);
}

.empty-icon {
    font-size: 80px;
    color: #666;
    margin-bottom: 25px;
    opacity: 0.6;
}

.empty-title {
    color: #00a8ff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.empty-description {
    color: #888;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.empty-action {
    display: inline-block;
    background: linear-gradient(45deg, #00ff88, #00ffff);
    color: #000;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
    color: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .timeline-cell:hover {
        transform: scale(1.2);
    }
    
    .current-time-display {
        font-size: 32px;
    }
    
    .time-bar-improved {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .legend-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-box {
        padding: 20px;
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== AUTO-REFRESH INDICATOR ===== */
#refreshIndicator {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#lastUpdateTime {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.timeline-cell {
    transition: background 0.5s ease, transform 0.3s ease;
}
