/* =========================================
   Radio Beats FM 2026 - Styles
   ========================================= */

:root {
    /* Colors */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --accent-primary: #e94560;
    --accent-secondary: #0f3460;
    --accent-gradient: linear-gradient(135deg, #e94560, #0f3460);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --success: #00d26a;
    --danger: #ff4757;
    --warning: #ffa502;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(233, 69, 96, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* =========================================
   Header
   ========================================= */
.header {
    text-align: center;
    padding: 20px 0;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.5));
    transition: var(--transition-normal);
}

.logo img:hover {
    transform: scale(1.05);
}

/* =========================================
   Station Selector
   ========================================= */
.station-selector {
    text-align: center;
    margin: 30px 0;
}

.station-selector h2 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.station-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.station-btn {
    background: var(--bg-card);
    border: 2px solid transparent;
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.station-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.station-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.station-btn i {
    font-size: 1.1rem;
}

/* =========================================
   Announcement Banner
   ========================================= */
.announcement-banner {
    background: var(--accent-gradient);
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease;
}

.announcement-banner i {
    font-size: 1.2rem;
}

.announcement-banner span {
    flex: 1;
}

.announcement-banner .close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.announcement-banner .close-btn:hover {
    opacity: 1;
}

/* =========================================
   Player
   ========================================= */
.player {
    text-align: center;
    margin: 40px 0;
}

/* Music Slider */
.music-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px;
}

/* Song Cards */
.song-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-normal);
}

.song-card.previous-song,
.song-card.next-song {
    opacity: 0.5;
    transform: scale(0.8);
}

.song-card.previous-song:hover,
.song-card.next-song:hover {
    opacity: 0.8;
}

.song-card.current-song {
    transform: scale(1);
    z-index: 2;
}

/* Cover Art */
.cover-art {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.song-card.previous-song .cover-art,
.song-card.next-song .cover-art {
    width: 180px;
    height: 180px;
}

.cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.cover-art:hover img {
    transform: scale(1.05);
}

.cover-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px 10px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Song Info */
.song-info {
    text-align: center;
}

.song-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.song-info h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.song-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* =========================================
   Voting Section
   ========================================= */
.voting-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
}

.vote-btn {
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-primary);
}

.vote-btn i {
    font-size: 1.5rem;
}

.vote-btn .vote-count {
    font-size: 0.75rem;
    font-weight: 600;
}

.vote-btn:hover {
    transform: scale(1.1);
}

.vote-btn.like-btn:hover,
.vote-btn.like-btn.active {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 210, 106, 0.4);
}

.vote-btn.dislike-btn:hover,
.vote-btn.dislike-btn.active {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

/* Vote Animation */
@keyframes votePopup {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.vote-btn.voted {
    animation: votePopup 0.4s ease;
}

/* =========================================
   Controls
   ========================================= */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.control-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.control-btn:hover {
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

#volumeSlider {
    width: 120px;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
}

/* =========================================
   Streaming Links
   ========================================= */
.streaming-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.streaming-buttons {
    display: flex;
    gap: 10px;
}

.streaming-btn {
    background: var(--bg-card);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1.1rem;
}

.streaming-btn.spotify { color: #1DB954; }
.streaming-btn.youtube { color: #FF0000; }
.streaming-btn.deezer { color: #FF0092; }
.streaming-btn.apple { color: #FC3C44; }

.streaming-btn:hover {
    transform: scale(1.15);
    background: var(--bg-secondary);
}

/* =========================================
   Request Music Section
   ========================================= */
.request-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
}

.request-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.request-section h3 i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.request-form {
    display: grid;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.request-form input,
.request-form textarea {
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.request-form input:focus,
.request-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.request-form textarea {
    min-height: 80px;
    resize: vertical;
}

.request-btn {
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.request-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   Recent Tracks
   ========================================= */
.recent-tracks {
    margin: 40px 0;
}

.recent-tracks h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.recent-tracks h3 i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.track-item:hover {
    background: var(--bg-secondary);
    transform: translateX(5px);
}

.track-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.track-item .track-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.track-item .track-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.track-item .track-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    padding: 12px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.load-more-btn:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* =========================================
   Schedule Section
   ========================================= */
.schedule-section {
    margin: 40px 0;
}

.schedule-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.schedule-section h3 i {
    color: var(--accent-primary);
    margin-right: 10px;
}

.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.schedule-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: var(--transition-normal);
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.schedule-item.live {
    border: 2px solid var(--accent-primary);
    background: rgba(233, 69, 96, 0.1);
}

.schedule-time {
    min-width: 60px;
    text-align: center;
}

.schedule-time .time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.schedule-time .day {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.schedule-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.schedule-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* =========================================
   Install Prompt (PWA)
   ========================================= */
.install-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    animation: slideUp 0.5s ease;
}

.install-prompt button {
    background: var(--accent-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
}

.install-prompt button:last-child {
    background: transparent;
    color: var(--text-muted);
}

/* =========================================
   Animations
   ========================================= */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
    .music-slider {
        flex-direction: column;
        gap: 30px;
    }
    
    .song-card.previous-song,
    .song-card.next-song {
        display: none;
    }
}

@media (max-width: 600px) {
    .station-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .station-btn {
        width: 80%;
        justify-content: center;
    }
    
    .cover-art {
        width: 250px;
        height: 250px;
    }
    
    .controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .voting-section {
        gap: 25px;
    }
    
    .vote-btn {
        width: 60px;
        height: 60px;
    }
}

/* =========================================
   HEADER EXTRAS
   ========================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.icon-btn {
    background: var(--bg-card);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.control-btn-small {
    background: var(--bg-card);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn-small:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.shortcuts-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shortcuts-hint kbd {
    background: var(--bg-card);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-extras {
        justify-content: center;
    }
    
    .theme-selector {
        order: 1;
    }
    
    .gamification-widget {
        order: 0;
    }
}

/* =========================================
   CENTRALIZAÇÃO MELHORADA
   ========================================= */
.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0 30px;
}

.header-extras {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.music-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.streaming-links {
    display: flex;
    justify-content: center;
}

.request-section {
    max-width: 600px;
    margin: 40px auto;
}

.recent-tracks {
    max-width: 700px;
    margin: 40px auto;
}

.schedule-section {
    max-width: 900px;
    margin: 40px auto;
}

.footer {
    max-width: 900px;
    margin: 40px auto 0;
}

@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header-extras {
        flex-wrap: wrap;
        justify-content: center;
    }
}
