/* 
 * CEPRA 2026 - Premium Design System
 * Focus: Modularity, Performance, and Aesthetics
 */

/* ==========================================================================
   1. VARIABLES & CORE
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #ec5b13;
    --primary-glow: rgba(236, 91, 19, 0.4);
    --brand-blue: #002147;
    --brand-blue-deep: #00152e;
    --brand-yellow: #ffce00;

    /* Functional Colors */
    --whatsapp-green: #25d366;
    --whatsapp-light: #5ff07e;
    --whatsapp-dark: #128c7e;
    --live-orange: #ff6b00;

    /* Transitions */
    --transition-main: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
body {
    font-family: 'Public Sans', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--primary);
    color: #ffffff;
}

/* ==========================================================================
   3. LAYOUT & OVERLAYS
   ========================================================================== */
.hero-overlay {
    background: linear-gradient(105deg, rgba(0, 33, 71, 0.96) 20%, rgba(0, 33, 71, 0.4) 100%);
}

.dashboard-grid {
    background-image: radial-gradient(circle at 2px 2px, var(--primary-glow) 1px, transparent 0);
    background-size: 32px 32px;
}

/* ==========================================================================
   4. TYPOGRAPHY & TEXT EFFECTS
   ========================================================================== */
.text-gradient {
    background: linear-gradient(to right, #ffffff, var(--brand-yellow), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.text-shadow-premium {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* ==========================================================================
   5. UI COMPONENTS
   ========================================================================== */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(0, 21, 46, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Premium Shadows & Lift */
.shadow-premium {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.06);
}

.transition-smooth {
    transition: var(--transition-main);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* Live Radio Button (Orange Pulse) */
.btn-live-pulse {
    background-color: var(--live-orange);
    position: relative;
    z-index: 1;
}

.btn-live-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    animation: common-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    z-index: -1;
}

/* WhatsApp Button (Squircle + Dual Green Pulse) */
.btn-whatsapp-pulse {
    background: linear-gradient(to bottom, var(--whatsapp-light) 0%, var(--whatsapp-green) 100%);
    position: relative;
    z-index: 10;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 15px 30px -5px rgba(37, 211, 102, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.btn-whatsapp-pulse::before,
.btn-whatsapp-pulse::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--whatsapp-green);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
}

.btn-whatsapp-pulse::before {
    animation: common-pulse 3s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.btn-whatsapp-pulse::after {
    animation: common-pulse 3s cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.5s infinite;
}

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */

/* Universal Pulse Animation Logic */
@keyframes common-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Float / Hover State */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin 12s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.drop-shadow-glow {
    filter: drop-shadow(0 0 10px rgba(255, 206, 0, 0.5));
}

/* Equalizer Animation for Active Radio */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
}

.equalizer span {
    width: 4px;
    background: currentColor;
    border-radius: 4px;
    animation: bounce-eq 1s ease-in-out infinite;
}

.equalizer span:nth-child(2) {
    animation-delay: 0.2s;
}

.equalizer span:nth-child(3) {
    animation-delay: 0.4s;
}

.equalizer span:nth-child(4) {
    animation-delay: 0.1s;
}

@keyframes bounce-eq {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 24px;
    }
}

.radio-card-active {
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-8px);
}

/* ==========================================================================
   7. PERFORMANCE & RENDERING OPTIMIZATIONS
   ========================================================================== */
img {
    content-visibility: auto;
    shape-margin: 1rem;
    max-width: 100%;
    height: auto;
}

body {
    text-rendering: optimizeLegibility;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ocultar scrollbar pero mantener scroll funcional */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   8. RADIO HERO REDESIGN
   ========================================================================== */

/* Hero wave decoration */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

/* Radio player card improvements for hero */
.hero-radio-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-radio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2) !important;
}

/* Animated glow effect for playing card */
.radio-card-playing {
    animation: card-glow 2s ease-in-out infinite;
}

@keyframes card-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(236, 91, 19, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(236, 91, 19, 0.5);
    }
}

/* Responsive adjustments for hero */
.animation-delay-1s {
    animation-delay: 1s;
}

@media (max-width: 768px) {
    .hero-radio-card {
        padding: 1rem !important;
    }

    .hero-radio-card .material-symbols-outlined {
        font-size: 1.25rem !important;
    }

    .hero-radio-card h3 {
        font-size: 1rem !important;
    }

    .hero-radio-card button {
        padding: 0.625rem !important;
        font-size: 0.75rem !important;
    }
}