/* =========================================
   Radio Beats 2026 - Advanced Features CSS
   ========================================= */

/* =========================================
   THEME SELECTOR
   ========================================= */
.theme-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.theme-btn.dark {
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}

.theme-btn.light {
    background: linear-gradient(135deg, #f5f5f5, #ffffff);
}

.theme-btn.neon {
    background: linear-gradient(135deg, #0a0a0a, #00ff88);
}

.theme-btn.ocean {
    background: linear-gradient(135deg, #0c1929, #66b2ff);
}

.theme-btn.sunset {
    background: linear-gradient(135deg, #1a0a0a, #ff6b35);
}

/* =========================================
   GAMIFICATION WIDGET
   ========================================= */
.gamification-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gamification-widget:hover {
    background: var(--bg-secondary);
}

.level-badge {
    font-size: 1.5rem;
}

.level-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.level-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.xp-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.5s ease;
}

.xp-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.points-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-primary);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    animation: pointsAnim 2s forwards;
    z-index: 9999;
    pointer-events: none;
}

@keyframes pointsAnim {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -80%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -100%) scale(0.8);
    }
}

/* =========================================
   CHAT PANEL
   ========================================= */
.chat-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.chat-panel.open {
    right: 0;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-user {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.chat-text {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
}

.chat-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    float: right;
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-secondary);
    border: none;
    padding: 12px 15px;
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chat-input-area button {
    background: var(--accent-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

.chat-toggle {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

/* =========================================
   LYRICS PANEL
   ========================================= */
.lyrics-panel {
    position: fixed;
    left: -400px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.lyrics-panel.open {
    left: 0;
}

.lyrics-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lyrics-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    line-height: 2;
    text-align: center;
}

.lyrics-content p {
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.lyrics-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.lyrics-not-found i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* =========================================
   MINI PLAYER
   ========================================= */
.mini-player {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: bottom 0.3s ease;
}

.mini-player.visible {
    bottom: 20px;
}

.mini-player img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-info {
    display: flex;
    flex-direction: column;
}

.mini-info #miniTitle {
    font-weight: 600;
    font-size: 0.9rem;
}

.mini-info #miniArtist {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mini-controls button {
    background: var(--accent-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

.mini-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-like-btn {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease;
}

.mini-like-btn:hover {
    color: #e94560 !important;
    border-color: #e94560 !important;
}

.mini-like-btn.liked {
    color: #e94560 !important;
    border-color: #e94560 !important;
    background: rgba(233, 69, 96, 0.2) !important;
}

.mini-station {
    font-size: 0.65rem;
    background: var(--accent-primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 3px;
}

.mini-stations {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.mini-station-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.mini-station-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mini-station-btn.active {
    background: var(--accent-primary);
    color: white;
}

.mini-expand {
    background: none !important;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.mini-expand:hover {
    color: var(--text-primary);
}

/* =========================================
   SLEEP TIMER
   ========================================= */
.sleep-timer-btn {
    position: relative;
}

#sleepTimerDisplay {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
}

.sleep-timer-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    z-index: 10000;
    min-width: 300px;
}

.sleep-timer-modal h3 {
    margin-bottom: 20px;
    text-align: center;
}

.timer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.timer-options button {
    padding: 15px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-options button:hover {
    border-color: var(--accent-primary);
}

/* =========================================
   AUDIO VISUALIZER
   ========================================= */
.visualizer-container {
    width: 100%;
    height: 80px;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
}

#visualizerCanvas {
    width: 100%;
    height: 100%;
}

/* =========================================
   SHARE BUTTONS
   ========================================= */
.share-section {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

/* =========================================
   KEYBOARD SHORTCUTS OVERLAY
   ========================================= */
.shortcuts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shortcuts-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.shortcuts-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
}

.shortcuts-content h2 {
    margin-bottom: 25px;
    text-align: center;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shortcut-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 5px;
    font-family: monospace;
}

/* =========================================
   RESPONSIVE - FEATURES
   ========================================= */
@media (max-width: 768px) {

    .chat-panel,
    .lyrics-panel {
        width: 100%;
    }

    .chat-panel {
        right: -100%;
    }

    .chat-panel.open {
        right: 0;
    }

    .lyrics-panel {
        left: -100%;
    }

    .lyrics-panel.open {
        left: 0;
    }

    .mini-player {
        width: 90%;
        border-radius: 15px;
    }

    .gamification-widget {
        padding: 8px 12px;
    }

    .xp-bar {
        width: 60px;
    }
}

/* =========================================
   COVER LIKE OVERLAY (Coração na Capa)
   ========================================= */
.cover-art {
    position: relative;
    overflow: hidden;
}

.cover-like-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.cover-art:hover .cover-like-overlay {
    opacity: 1;
}

.cover-like-overlay i {
    font-size: 3rem;
    color: #fff;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.cover-like-overlay:hover i {
    color: #e94560;
    transform: scale(1.2);
}

.cover-like-overlay.liked i {
    color: #e94560;
    animation: heartBeat 0.6s ease;
}

.cover-like-overlay span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   ON-AIR WIDGET
   ========================================= */
.on-air-widget {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15), rgba(233, 69, 96, 0.05));
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 50px;
    margin: 0 auto 20px;
    max-width: 400px;
}

.on-air-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e94560;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.on-air-indicator .pulse {
    width: 10px;
    height: 10px;
    background: #e94560;
    border-radius: 50%;
    animation: pulse-animation 1.5s ease-in-out infinite;
}

@keyframes pulse-animation {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.on-air-program {
    color: var(--text-primary, #fff);
    font-size: 1rem;
    font-weight: 600;
}

/* =========================================
   WELCOME POPUP
   ========================================= */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.welcome-popup-content {
    background: linear-gradient(135deg, var(--bg-card, #1a1a2e), var(--bg-primary, #0f0f1a));
    border: 1px solid rgba(233, 69, 96, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-popup .close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted, #666);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.welcome-popup .close-popup:hover {
    color: var(--accent, #e94560);
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.welcome-popup h2 {
    color: var(--text-primary, #fff);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.welcome-popup>div>p {
    color: var(--text-secondary, #999);
    margin-bottom: 20px;
}

.welcome-features {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0 0 25px 0;
}

.welcome-features li {
    color: var(--text-primary, #fff);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-features li i {
    color: #00d26a;
    font-size: 0.9rem;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-buttons .btn {
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 12px;
}

.welcome-skip {
    color: var(--text-muted, #666);
    margin-top: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.welcome-skip:hover {
    color: var(--text-primary, #fff);
}