/* =====================================================
   FLIMMERKISTE REVIEWS_3.CSS - SERIEN-EPISODEN-GUIDE
   Version: 1.0
   Datum: Februar 2025
   Beschreibung: Spotify-Style Episoden-Liste für Mega-Serien
   Optimiert für 50-500+ Episoden
   ===================================================== */

/* === ROOT VARIABLEN === */
:root {
    --episode-radius: 12px;
    --episode-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --episode-shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
    --spotify-green: #1db954;
    --rating-gold: #ffd700;
    --highlight-yellow: #fff3cd;
    --special-gradient: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
}

/* === HAUPTCONTAINER === */
.flim-series-spotify {
    background: white;
    border-radius: 30px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Dekorativer Gradient-Overlay */
.flim-series-spotify::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255,107,107,0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* === HEADER SECTION === */
.flim-spotify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.flim-spotify-title h2 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flim-spotify-title p {
    margin: 0;
    color: #636e72;
    font-size: 1.1rem;
}

/* Control Buttons */
.flim-spotify-controls {
    display: flex;
    gap: 12px;
}

.flim-play-all,
.flim-shuffle {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flim-play-all:hover,
.flim-shuffle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,107,107,0.3);
}

.flim-play-all:active,
.flim-shuffle:active {
    transform: translateY(0);
}

/* === STAFFEL NAVIGATION === */
.flim-season-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.flim-season-pills::-webkit-scrollbar {
    height: 6px;
}

.flim-season-pills::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.flim-season-pills::-webkit-scrollbar-thumb {
    background: #FF6B6B;
    border-radius: 10px;
}

.flim-pill {
    background: #f8f9fa;
    border: 2px solid transparent;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2d3436;
}

.flim-pill:hover {
    border-color: #FF6B6B;
    background: rgba(255,107,107,0.05);
}

.flim-pill.active {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    color: white;
    border-color: transparent;
}

/* === QUICK STATS GRID === */
.flim-series-stats {
    background: linear-gradient(135deg, rgba(255,107,107,0.05) 0%, rgba(78,205,196,0.05) 100%);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

.flim-stat {
    text-align: center;
}

.flim-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.flim-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #636e72;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === EPISODEN LISTE === */
.flim-episode-list {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3px;
    max-height: 600px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

/* Custom Scrollbar */
.flim-episode-list::-webkit-scrollbar {
    width: 12px;
}

.flim-episode-list::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.flim-episode-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 10px;
}

.flim-episode-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff5252 0%, #3fc5bc 100%);
}

/* Episode Row */
.flim-episode-row {
    display: grid;
    grid-template-columns: 45px 70px 1fr 110px 90px 100px;
    align-items: center;
    padding: 14px 20px;
    background: white;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
}

.flim-episode-row:hover {
    background: linear-gradient(90deg, rgba(255,107,107,0.05) 0%, rgba(78,205,196,0.05) 100%);
    transform: translateX(5px);
}

/* Highlight-Zeilen */
.flim-episode-row.highlight {
    background: var(--highlight-yellow);
}

.flim-episode-row.highlight:hover {
    background: #ffecb3;
}

.flim-episode-row.special {
    background: linear-gradient(90deg, rgba(255,215,0,0.1) 0%, rgba(255,255,255,1) 100%);
}

/* Play Button */
.flim-ep-play {
    width: 35px;
    height: 35px;
    background: #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.flim-episode-row:hover .flim-ep-play {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    transform: scale(1.1);
}

/* Episode Number */
.flim-ep-number {
    font-weight: 700;
    color: #636e72;
    font-size: 0.95rem;
}

/* Episode Title */
.flim-ep-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3436;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 15px;
}

.flim-episode-row:hover .flim-ep-title {
    color: #FF6B6B;
}

/* Rating */
.flim-ep-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Duration */
.flim-ep-duration {
    color: #636e72;
    font-size: 0.9rem;
}

/* Special Badges */
.flim-ep-badge {
    background: #FFE66D;
    color: #2d3436;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.flim-ep-badge.pilot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flim-ep-badge.finale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.flim-ep-badge.must-watch {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2d3436;
    animation: pulse 2s infinite;
}

.flim-ep-badge.award {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flim-ep-badge.special {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #2d3436;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === FILTER SECTION (Optional) === */
.flim-episode-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.flim-filter-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #2d3436;
}

.flim-filter-btn:hover {
    border-color: #4ECDC4;
    background: rgba(78,205,196,0.05);
}

.flim-filter-btn.active {
    background: #4ECDC4;
    color: white;
    border-color: #4ECDC4;
}

/* === LOADING STATE === */
.flim-episode-list.loading {
    position: relative;
    min-height: 400px;
}

.flim-episode-list.loading::after {
    content: 'Lade Episoden...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #636e72;
}

/* === EMPTY STATE === */
.flim-no-episodes {
    padding: 60px 20px;
    text-align: center;
    color: #636e72;
}

.flim-no-episodes-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .flim-episode-row {
        grid-template-columns: 45px 70px 1fr 90px 100px;
    }
    
    .flim-ep-duration {
        display: none;
    }
}

@media (max-width: 968px) {
    .flim-series-spotify {
        padding: 30px;
        border-radius: 20px;
    }
    
    .flim-spotify-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .flim-spotify-controls {
        width: 100%;
    }
    
    .flim-play-all,
    .flim-shuffle {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile: Nur 3 Spalten */
    .flim-episode-row {
        grid-template-columns: 40px 1fr 80px;
        padding: 12px 15px;
    }
    
    .flim-ep-number,
    .flim-ep-rating,
    .flim-ep-duration {
        display: none;
    }
    
    .flim-ep-title {
        font-size: 0.95rem;
    }
    
    .flim-ep-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .flim-series-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .flim-stat-value {
        font-size: 2rem;
    }
    
    .flim-spotify-title h2 {
        font-size: 1.5rem;
    }
    
    .flim-spotify-title p {
        font-size: 0.95rem;
    }
    
    .flim-episode-list {
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .flim-series-spotify {
        padding: 20px;
        margin: 20px -10px;
        border-radius: 15px;
    }
    
    .flim-play-all,
    .flim-shuffle {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .flim-season-pills {
        gap: 8px;
    }
    
    .flim-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .flim-series-spotify {
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .flim-spotify-controls {
        display: none;
    }
    
    .flim-episode-list {
        max-height: none;
        overflow: visible;
    }
    
    .flim-ep-play {
        display: none;
    }
    
    .flim-episode-row {
        grid-template-columns: 70px 1fr 110px 90px 100px;
    }
}

/* === DARK MODE VORBEREITUNG (falls später benötigt) === */
/* 
@media (prefers-color-scheme: dark) {
    .flim-series-spotify { background: #1a1a1a; }
    .flim-episode-row { background: #2a2a2a; }
    .flim-ep-title { color: #e0e0e0; }
}
*/

/* === ENDE REVIEWS_3.CSS === */

/* Dateiname: reviews_3.css */
/* Pfad: /wp-content/themes/Newspaper-child/assets/css/reviews_3.css */