/* ==========================================================================
   PURO LLANO RADIO - LAYOUT STYLES
   Sidebar, menu overlay, main content structure
   ========================================================================== */

/* Clock */
.clock-box {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--glass);
    padding: 5px 12px;
    border-radius: 10px;
    border-right: 3px solid var(--primary);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: var(--glow);
}

#relogio {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    line-height: 1;
}

.clock-location {
    font-size: 0.55rem;
    color: #ffffff;
    margin-top: 2px;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Sidebar Overlay */
#sidebarOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

#sidebarOverlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menu Toggle Button */
#menuToggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background: var(--glass);
    border: 1px solid rgba(254, 210, 2, 0.3);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--glow);
}

#menuToggle:hover {
    background: var(--primary);
    color: var(--dark-deep);
    transform: scale(1.1);
}

/* Sidebar Principal */
#mainSidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: rgba(18, 18, 20, 0.95);
    backdrop-filter: blur(25px) saturate(170%);
    border-right: 1px solid rgba(254, 210, 2, 0.2);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
    z-index: 1999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#mainSidebar.active {
    left: 0;
}

/* Header del Sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: none;
    background: rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Widget de Oyentes Conectados */
.widget-oyentes-container {
    padding: 0;
    background: transparent;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-oyentes-container iframe {
    width: 280px !important;
    height: 147px !important;
    border-radius: 12px;
    overflow: hidden;
}

/* Navegación del Sidebar */
.sidebar-nav-content {
    padding: 15px;
    padding-bottom: 20px;
    overflow-y: auto;
    flex: 1;
}

.nav-section-title {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 20px 10px 10px;
    padding-left: 10px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(254, 210, 2, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.btn-download-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #ffb700 100%);
    color: var(--dark-deep);
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(254, 210, 2, 0.3);
}

.btn-download-app:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(254, 210, 2, 0.5);
}

/* Main Wrapper */
.main-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Footer Copyright */
.footer-copyright {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    padding: 10px;
    z-index: 10;
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #ffb700 100%);
    border: none;
    color: var(--dark-deep);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 5px 25px rgba(254, 210, 2, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-chat-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 35px rgba(254, 210, 2, 0.6);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: badge-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    #mainSidebar {
        width: 280px;
        left: -300px;
    }
    
    .main-wrapper {
        padding: 15px;
    }
    
    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #menuToggle {
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .main-wrapper {
        padding: 10px;
    }
}
