/**
 * destro.css - Custom styles for the Radio Directory
 * This file replaces the inline <style> block in index.php
 */

body { background-color: #f8fafc; font-family: 'Plus Jakarta Sans', sans-serif; color: #1e293b; }

.mainbar { 
    background: var(--primary-color); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.1); 
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-box {
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 8px 24px;
    width: 100%;
    max-width: 450px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.search-box input { color: white; border: none; background: transparent; outline: none; width: 100%; padding-left: 10px; font-size: 0.95rem; font-weight: 500; }
.search-box input::placeholder { color: rgba(255,255,255,0.7); }
.search-box i { color: white; }

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
.search-box:focus-within input { color: #1e293b; }
.search-box:focus-within i { color: #1e293b; }

.radio-card { 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: none !important; 
    border-radius: var(--card-radius); 
    background: #fff;
    padding: 15px;
    box-shadow: var(--premium-shadow);
    position: relative;
}

.radio-card:hover { 
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.05) !important; 
}

.img-container {
    position: relative;
    aspect-ratio: 1/1;
    overflow: visible;
    margin-bottom: 12px;
    border-radius: 20px;
}

.radio-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    background: #fff;
    padding: 10px;
    border: 1px solid #f1f5f9;
}

.btn-play-float, .btn-info-float, .btn-install-float { 
    position: absolute;
    background: var(--primary-gradient); 
    color: white !important; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 3px solid #fff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    text-decoration: none;
}

.btn-play-float { bottom: -5px; right: 45px; width: 50px; height: 50px; font-size: 1.4rem; }
.btn-info-float { bottom: -5px; left: -5px; width: 38px; height: 38px; font-size: 1.3rem; background: #1e293b !important; }
.btn-install-float { bottom: -5px; right: -5px; width: 42px; height: 42px; font-size: 1.2rem; background: #4f46e5 !important; }

.btn-play-float:hover, .btn-info-float:hover, .btn-install-float:hover { 
    transform: scale(1.15) rotate(15deg); 
    color: white !important; 
}

.view-counter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.city-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-top: 2px;
}

.radio-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 8px;
}

.sidebar-card { border-radius: 24px; border: none !important; box-shadow: var(--premium-shadow); overflow: hidden; height: auto; }
.sidebar-header { 
    background: var(--primary-color) !important; 
    color: #fff !important; 
    font-weight: 800; 
    border: none;
    padding: 22px 24px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.sidebar-header i { filter: brightness(0) invert(1); }

.list-group-item { 
    border: none; 
    padding: 14px 24px; 
    border-radius: 16px !important; 
    margin: 6px 15px; 
    color: #64748b; 
    font-weight: 600; 
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-group-item.active { 
    background: var(--primary-gradient) !important; 
    color: #fff !important; 
    box-shadow: 0 10px 20px -5px rgba(var(--primary-color-rgb), 0.5);
    transform: scale(1.02);
    z-index: 1;
}

.list-group-item.active .badge {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
}

.list-group-item:hover:not(.active) { 
    background-color: #f8fafc; 
    color: var(--primary-color);
    padding-left: 30px;
}

#btn-close-player {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #ef4444;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    border: 2px solid white;
    font-size: 0.8rem;
}

/* Player Footer Styles - PC & Mobile Base */
#contentenedor_lunaradio {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 800px;
    z-index: 1000;
    display: none;
    align-items: center;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-radius: 50px; /* Perfect Pill */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.6);
}

#btn-close-player {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #ef4444;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    border: 2px solid white;
    font-size: 0.8rem;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    #contentenedor_lunaradio { 
        bottom: 15px; 
        width: calc(100% - 30px); 
        padding: 0px 5px; 
        height: 65px !important;
        border-radius: 50px;
    }
    #lunaradio { min-height: 65px !important; height: 65px !important; }
    .sidebar-desktop { display: none !important; }
    .radio-grid-mobile { padding-top: 0 !important; }
    .sidebar-offcanvas { width: 80% !important; }
    .offcanvas-header .btn-close { 
        background-color: transparent !important; 
        opacity: 1; 
        filter: brightness(0) !important; /* Forces black if there's any residual filter */
    }
}

@media (min-width: 577px) {
    .mobile-only { display: none !important; }
    .sidebar-offcanvas { display: none !important; }
}

.btn-toggle-menu {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle-menu:hover { background: rgba(255,255,255,0.3); }

.btn-registrar {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-registrar:hover {
    background: #fff;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Premium Pagination Styles */
.pagination-premium {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.page-link-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    color: #64748b !important;
    text-decoration: none !important;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.page-link-premium:hover {
    background: #f8fafc;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.page-link-premium.active {
    background: var(--primary-gradient);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 10px 15px -3px rgba(var(--primary-color-rgb), 0.4);
}

.page-link-premium.prev-next {
    font-size: 1.2rem;
    background: #fff;
}

.page-dots {
    color: #94a3b8;
    font-weight: 700;
    padding: 0 5px;
}

@media (max-width: 576px) {
    .pagination-premium { gap: 5px; }
    .page-link-premium {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}
