/* Style pour le site Radio Troutrou - Thème Sombre */

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

:root {
    --bg-dark: #0f0f23;
    --bg-medium: #1a1a35;
    --bg-light: #252545;
    --cyan: #00d9ff;
    --cyan-dark: #00b8d4;
    --purple: #9d4edd;
    --purple-light: #c77dff;
    --text-light: #e0e0e0;
    --text-medium: #b0b0b0;
    --text-dark: #808080;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    color: var(--text-light);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-medium);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

/* En-tête */
header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--purple) 100%);
    color: var(--cyan);
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid var(--cyan);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(157, 78, 221, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

header .logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 4px solid var(--cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    position: relative;
    z-index: 1;
}

header .tagline {
    font-size: 1.1em;
    opacity: 0.9;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Section Player */
.player-section {
    padding: 40px;
    text-align: center;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.track-info {
    margin-bottom: 30px;
}

.track-info h2 {
    font-size: 1.8em;
    color: var(--cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.track-info p {
    font-size: 1.3em;
    color: var(--purple-light);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(0, 217, 255, 0.6);
}

.play-btn:hover::before {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

.play-btn:active {
    transform: scale(0.95);
}

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

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control label {
    font-weight: bold;
    color: var(--text-medium);
}

.volume-control input[type="range"] {
    width: 150px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.volume-control #volume-value {
    min-width: 45px;
    color: var(--cyan);
    font-weight: bold;
}

/* Section Historique */
.history-section {
    padding: 40px;
    background: var(--bg-medium);
}

.history-section h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.history-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.history-controls input[type="date"],
.history-controls input[type="text"],
.history-controls select {
    padding: 10px 15px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 8px;
    font-size: 1em;
    flex: 1;
    min-width: 150px;
    background: var(--bg-light);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-controls input[type="date"]:focus,
.history-controls input[type="text"]:focus,
.history-controls select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.history-controls select:hover,
.history-controls input[type="date"]:hover {
    border-color: var(--cyan);
}

.history-controls input[type="text"]::placeholder {
    color: var(--text-dark);
}

.history-controls button {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 217, 255, 0.3);
}

.history-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.5);
}

.history-controls button:active {
    transform: translateY(0);
}

#history-content {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--bg-dark);
}

#history-content::-webkit-scrollbar {
    width: 8px;
}

#history-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

#history-content::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 4px;
}

#history-content::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

.history-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.2s ease;
    background: transparent;
}

.history-item:hover {
    background: var(--bg-light);
    border-left: 3px solid var(--cyan);
    padding-left: 12px;
}

.history-item .time {
    font-size: 0.9em;
    color: var(--purple-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.history-item .title {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--cyan);
    margin-bottom: 3px;
}

.history-item .artist {
    font-size: 1em;
    color: var(--text-medium);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-dark);
    font-style: italic;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ff6b6b;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    border-top: 2px solid var(--cyan);
}

footer a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--purple-light);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .track-info h2 {
        font-size: 1.4em;
    }
    
    .track-info p {
        font-size: 1.1em;
    }
    
    .play-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }
    
    .history-controls {
        flex-direction: column;
    }
    
    .history-controls input,
    .history-controls select,
    .history-controls button {
        width: 100%;
    }
}
