/* radio-app/web/css/style.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

.player-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.now-playing {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.now-playing .track-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 10px;
}

.now-playing .track-artist {
    font-size: 1.3rem;
    color: #4a5568;
}

.now-playing .live-badge {
    display: inline-block;
    background: #e53e3e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 10px;
    animation: pulse 2s infinite;
}

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

.loading {
    color: #718096;
    font-style: italic;
}

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

.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.play-btn:active {
    transform: translateY(0);
}

.play-btn.playing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.play-icon {
    font-size: 1.5rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7fafc;
    padding: 10px 20px;
    border-radius: 25px;
}

.volume-icon {
    font-size: 1.2rem;
}

#volume-slider {
    width: 120px;
    cursor: pointer;
}

.volume-value {
    font-weight: bold;
    color: #4a5568;
    min-width: 45px;
}

.stream-info {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
}

.info-item {
    text-align: center;
}

.info-item .label {
    display: block;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
}

.info-item .value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2d3748;
}

.recent-tracks {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.recent-tracks h2 {
    margin-bottom: 20px;
    color: #2d3748;
}

.track-item {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.track-item:hover {
    background: #f7fafc;
}

.track-item:last-child {
    border-bottom: none;
}

.track-info .track-name {
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 5px;
}

.track-info .track-artist {
    color: #718096;
    font-size: 0.9rem;
}

.track-time {
    color: #a0aec0;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.8;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    
    .player-controls {
        flex-direction: column;
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
    }
}