/* Radio AI - Styles principaux */

/* Player Principal */
.radio-player-pro {
    max-width: 100%;
    margin: 30px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

.radio-player-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-bg 20s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.player-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-indicator {
    background: #ff3b3b;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255,59,59,0.5);
}

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

/* Visualizer */
.audio-visualizer {
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.visualizer-bar {
    width: 4px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: height 0.1s ease;
    animation: dance 0.5s ease-in-out infinite;
}

.visualizer-bar:nth-child(odd) {
    animation-delay: 0.1s;
}

.visualizer-bar:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes dance {
    0%, 100% { height: 20px; }
    50% { height: 40px; }
}

/* Now Playing */
.now-playing-section {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.now-playing-info {
    text-align: center;
}

.song-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    animation: slideIn 0.5s ease;
}

.song-artist {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Contrôles */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    position: relative;
    z-index: 1;
}

.control-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.control-btn.play-btn {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

/* Volume */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.volume-slider {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: none;
}

/* Schedule */
.schedule-preview {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.schedule-preview h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    opacity: 0.9;
}

.upcoming-shows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.show-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.show-time {
    font-weight: 600;
    font-size: 14px;
}

.show-name {
    flex: 1;
    margin-left: 15px;
    font-size: 14px;
}

/* Programme / Schedule Page */
.radio-schedule {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.schedule-header {
    text-align: center;
    margin-bottom: 40px;
}

.schedule-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.schedule-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 120px repeat(7, 1fr);
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.time-slot {
    background: #f5f5f5;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-cell {
    padding: 15px;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 80px;
    position: relative;
    transition: all 0.3s ease;
}

.schedule-cell:hover {
    background: #f8f8ff;
}

.schedule-show {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-show:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

/* Shows / Émissions */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.show-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.show-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.show-content {
    padding: 20px;
}

.show-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.show-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.show-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.show-schedule {
    font-size: 14px;
    color: #888;
}

.show-host {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

/* Podcasts */
.podcasts-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.podcast-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.podcast-search {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.podcast-search:focus {
    outline: none;
    border-color: #667eea;
}

.podcast-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.podcast-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.podcast-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.podcast-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.podcast-info {
    flex: 1;
}

.podcast-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #333;
}

.podcast-show {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 10px;
}

.podcast-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.podcast-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.podcast-player {
    margin-top: 15px;
}

.mini-player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 25px;
}

.mini-play-btn {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mini-play-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.mini-progress {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.mini-progress-bar {
    height: 100%;
    background: #667eea;
    border-radius: 2px;
    width: 0;
    transition: width 0.1s linear;
}

.podcast-duration {
    font-size: 14px;
    color: #666;
}

/* Stats */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .radio-player-pro {
        padding: 20px;
    }
    
    .player-header h2 {
        font-size: 24px;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .control-btn.play-btn {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }
    
    .schedule-grid {
        grid-template-columns: 80px 1fr;
    }
    
    .shows-grid {
        grid-template-columns: 1fr;
    }
    
    .podcast-item {
        flex-direction: column;
    }
    
    .podcast-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* Animations supplémentaires */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-up {
    animation: slideUp 0.5s ease;
}

/* Loader */
.radio-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Messages */
.radio-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    animation: slideUp 0.3s ease;
}

.radio-message.success {
    background: #4caf50;
    color: white;
}

.radio-message.error {
    background: #f44336;
    color: white;
}

.radio-message.info {
    background: #2196f3;
    color: white;
}
