/* LAM3 PLAYER - Estilos principales basados en IK-MAGAZINE */

* {
    font-family: 'Poppins', sans-serif;
}

/* Paleta de colores profesional */
:root {
    --azul-oscuro: #1e3a8a;
    --azul-medio: #3b82f6;
    --azul-claro: #60a5fa;
    --naranja: #f97316;
    --amarillo: #eab308;
    --amarillo-brillante: #fbbf24;
    --amarillo-dorado: #f59e0b;
    --negro: #0f172a;
    --plomo: #64748b;
    --blanco: #ffffff;
    --gris-claro: #f8fafc;
    --gris-oscuro: #1f2937;
    --gris-muy-oscuro: #111827;
}

/* Gradientes de texto */
.gradient-text {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--naranja) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards de podcast */
.podcast-card {
    background: var(--gris-oscuro);
    border: 2px solid #374151;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.podcast-card:hover {
    border-color: var(--amarillo-brillante);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

/* Botones principales */
.btn-primary {
    background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-oscuro) 100%);
    border: none;
    color: var(--blanco);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--negro) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--naranja) 0%, var(--amarillo) 100%);
    border: none;
    color: var(--negro);
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--amarillo) 0%, var(--naranja) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

/* Play button overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.podcast-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay:hover {
    background: rgba(251, 191, 36, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Stickers */
.podcast-sticker {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--naranja) 0%, var(--amarillo) 100%);
    color: var(--negro);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Preview panel */
.preview-panel {
    background: var(--gris-oscuro);
    border: 2px solid #374151;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

/* Playlist items */
.playlist-item {
    background: #374151;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.playlist-item:hover {
    background: #4b5563;
    border-color: var(--amarillo-brillante);
    transform: translateX(4px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: var(--amarillo-brillante);
}

/* Audio player */
.audio-player {
    background: var(--gris-oscuro);
    border-top: 2px solid #374151;
    backdrop-filter: blur(20px);
}

/* Progress bars */
.progress-bar {
    background: #4b5563;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.1s ease;
}

.progress-fill-radio {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
    height: 100%;
    border-radius: 4px;
    transition: width 0.1s ease;
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .podcast-card {
        margin-bottom: 16px;
    }
    
    .play-overlay {
        width: 50px;
        height: 50px;
    }
    
    .audio-player {
        padding: 12px;
    }
    
    .audio-player .flex {
        flex-direction: column;
        gap: 12px;
    }
}

/* Scroll personalizado */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--naranja);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--amarillo);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--naranja);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text colors */
.text-primary {
    color: var(--blanco);
}

.text-secondary {
    color: var(--plomo);
}

.text-accent {
    color: var(--naranja);
}

/* ========================================
   LAYOUT Y ESTRUCTURA
   ======================================== */

/* Asegurar que el footer se mantenga en la parte inferior */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Player de Radio - Layout con reproductor arriba y grilla abajo */
.radio-view {
    min-height: calc(100vh - 5rem);
    padding: 1rem 0;
}

/* Selector de estaciones */
.radio-view #radioStationsList {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

.radio-view #radioStationsList::-webkit-scrollbar {
    width: 4px;
}

.radio-view #radioStationsList::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 2px;
}

.radio-view #radioStationsList::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 2px;
}

.radio-view #radioStationsList::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Estaciones de radio en grilla */
.station-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #374151;
    background: #1f2937;
    min-height: 80px;
    height: 80px;
}

.station-item:hover {
    background: #374151 !important;
    transform: translateY(-4px) scale(1.02);
    border-color: #ff6b35;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.station-item.active {
    background: #374151 !important;
    border-color: #ff6b35;
    border-left: 4px solid #ff6b35;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

/* Iconos de estaciones en grilla */
.station-item img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.station-item:hover img {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.station-item.active img {
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
    transform: scale(1.05);
}

/* Indicadores de estado en grilla */
.station-item .w-3.h-3 {
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.station-item .w-3.h-3.bg-orange-500 {
    background: #ff6b35;
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.5);
}

.station-item.active .w-3.h-3 {
    background: #ff6b35;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.7);
}

/* Iconos de play */
.station-item i {
    transition: all 0.3s ease;
}

.station-item:hover i {
    transform: scale(1.2);
}

.station-item.active i {
    animation: pulse 2s infinite;
}

/* Scroll personalizado para lista de estaciones */
#radioStationsList::-webkit-scrollbar {
    width: 6px;
}

#radioStationsList::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.3);
    border-radius: 3px;
}

#radioStationsList::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b35, #f7931e);
    border-radius: 3px;
}

#radioStationsList::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f7931e, #ff6b35);
}

/* Reproductor principal centrado */
.radio-view .bg-gray-800 {
    background: #1f2937;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Thumbnail/Imagen principal */
.radio-view .w-28.h-28 img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.radio-view .w-28.h-28:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Overlay naranja sutil para la imagen */
.radio-view .bg-orange-500\/20 {
    background: rgba(249, 115, 22, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-view .w-28.h-28:hover .bg-orange-500\/20 {
    background: rgba(249, 115, 22, 0.3);
}

/* Información de la canción ultra compacta */
#songTitle {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#songArtist {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#songDetails {
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Waveform de audio */
.radio-view .flex.items-end.space-x-1 {
    gap: 2px;
}

.radio-view .flex.items-end.space-x-1 > div {
    background: #ff6b35;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.radio-view .flex.items-end.space-x-1 > div:hover {
    background: #ff8c42;
    transform: scaleY(1.1);
}

/* Barra de progreso */
.radio-view .bg-gray-600 {
    background: #4b5563;
    border-radius: 4px;
}

.radio-view .bg-orange-500 {
    background: #ff6b35;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

/* Logo LAM3 RADIO ultra compacto */
.radio-view img[alt="LAM3 RADIO"] {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    max-width: 120px;
    height: auto;
}

.radio-view img[alt="LAM3 RADIO"]:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Controles de reproducción */
.radio-view .bg-gray-700 {
    background: #374151;
    transition: all 0.3s ease;
}

.radio-view .bg-gray-700:hover {
    background: #4b5563;
    transform: scale(1.05);
}

.radio-view .bg-orange-500.w-10 {
    background: #ff6b35;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
    transition: all 0.3s ease;
}

.radio-view .bg-orange-500.w-10:hover {
    background: #ff8c42;
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 107, 53, 0.5);
}

/* Controles inferiores ultra compactos */
.radio-view .w-7.h-7 {
    background: #374151;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.radio-view .w-7.h-7:hover {
    background: #4b5563;
    transform: scale(1.05);
}

.radio-view .w-8.h-8 {
    background: #374151;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.radio-view .w-8.h-8:hover {
    background: #4b5563;
    transform: scale(1.05);
}

/* Barra inferior de información */
.radio-view .bg-gray-800.rounded-xl {
    background: #1f2937;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Indicador EN VIVO */
.radio-view .bg-green-600 {
    background: #16a34a;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.radio-view .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Punto naranja */
.radio-view .w-2.h-2.bg-orange-500 {
    background: #ff6b35;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 107, 53, 0.5);
}

/* Iconos de tiempo y ubicación */
.radio-view .text-orange-500 {
    color: #ff6b35;
}

/* Separador vertical */
.radio-view .w-px.h-4.bg-white {
    background: #ffffff;
    opacity: 0.3;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .radio-view .flex.items-center.space-x-8 {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .radio-view .w-32.h-32 {
        width: 8rem;
        height: 8rem;
    }
    
    #songTitle {
        font-size: 2rem;
    }
    
    #songArtist {
        font-size: 1.25rem;
    }
    
    .radio-view .flex.items-center.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========================================
   REGLAS DE DISEÑO ESTÁNDAR DE COLOR
   ======================================== */

/* CATEGORÍA PODCAST - Amarillo Exclusivo */
.text-podcast {
    color: #fbbf24; /* Amarillo brillante */
}

.bg-podcast {
    background: #fbbf24; /* Amarillo brillante */
}

.bg-podcast-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.bg-podcast-neon {
    background: #ffd700; /* Amarillo neón */
}

.bg-podcast-bright {
    background: #ffff00; /* Amarillo brillante puro */
}

.border-podcast {
    border-color: #fbbf24;
}

.hover-podcast:hover {
    color: #fbbf24;
}

.bg-podcast-hover:hover {
    background: #fbbf24;
}

/* Clases específicas para elementos de podcast */
.podcast-sticker {
    background: #fbbf24;
    color: #000;
}

.podcast-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.3);
}

.podcast-active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
}

/* CATEGORÍA RADIO - Naranja Exclusivo */
.text-radio {
    color: #ff6b35; /* Naranja vivo */
}

.bg-radio {
    background: #ff6b35; /* Naranja vivo */
}

.bg-radio-gradient {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff8c42 100%);
}

.bg-radio-live {
    background: #ff4500; /* Naranja para live stream */
}

.bg-radio-warm {
    background: #ff8c00; /* Naranja cálido */
}

.border-radio {
    border-color: #ff6b35;
}

.hover-radio:hover {
    color: #ff6b35;
}

.bg-radio-hover:hover {
    background: #ff6b35;
}

/* Clases específicas para elementos de radio */
.radio-live-indicator {
    background: #ff4500;
    color: #fff;
    animation: pulse 2s infinite;
}

.radio-active {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
}

.radio-streaming {
    background: #ff6b35;
    color: #fff;
}

/* Animación para indicadores en vivo */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Background variations */
.bg-primary {
    background: var(--gris-oscuro);
}

.bg-secondary {
    background: #374151;
}

.bg-accent {
    background: var(--naranja);
}

/* Header moderno */
.header-modern {
    backdrop-filter: blur(20px);
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

/* Toggle buttons */
.toggle-button {
    position: relative;
    overflow: hidden;
}

.toggle-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.toggle-button:hover::before {
    left: 100%;
}

/* Search input */
.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Profile dropdown */
.profile-dropdown {
    backdrop-filter: blur(20px);
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

/* Notification badge */
.notification-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Mobile menu */
.mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(55, 65, 81, 0.5);
}

/* Logo transition */
.logo-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-transition:hover {
    transform: scale(1.05);
}

/* Navigation links */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--naranja);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
