/**
 * MSU Radio Header Styles
 * All header animations and custom styles
 */

/* ============================================
   FONT FAMILY
============================================ */

header,
header *:not(.fa):not(.fab):not(.fas):not(.far):not(.fal):not(.fad):not([class*="fa-"]) {
    font-family: 'Montserrat', sans-serif !important;
}

/* Ensure Font Awesome icons work */
.fa, .fab, .fas, .far, .fal, .fad,
[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900;
}

/* ============================================
   CUSTOM LOGO STYLING
============================================ */

.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    .custom-logo {
        max-height: 60px;
    }
}

/* ============================================
   ANIMATIONS
============================================ */

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 70, 190, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 70, 190, 0.8); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes neon-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 70, 190, 0.5), 0 0 40px rgba(0, 70, 190, 0.3), 0 0 60px rgba(250, 190, 31, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 70, 190, 0.8), 0 0 60px rgba(0, 70, 190, 0.5), 0 0 90px rgba(250, 190, 31, 0.3);
    }
}

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

@keyframes slide-in {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fade-in-down {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes rotate-pulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* ============================================
   ANIMATION CLASSES
============================================ */

.header-animate { animation: slideDown 0.5s ease-out; }
.pulse-glow { animation: pulse-glow 2s infinite; }
.float-animation { animation: float 3s ease-in-out infinite; }
.neon-glow { animation: neon-pulse 2s ease-in-out infinite; }
.wave-bar { animation: wave 1s ease-in-out infinite; }
.slide-in { animation: slide-in 0.6s ease-out; }
.fade-in-down { animation: fade-in-down 0.6s ease-out; }
.bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }
.rotate-pulse { animation: rotate-pulse 3s ease-in-out infinite; }

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Wave bar delays */
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

/* ============================================
   CUSTOM RANGE SLIDER
============================================ */

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

input[type="range"]::-webkit-slider-track {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.3);
    height: 6px;
    border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ============================================
   GLASSMORPHISM
============================================ */

.glass {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   GRADIENT TEXT
============================================ */

.gradient-text {
    color: var(--radio-blue, #0046be);
}

/* ============================================
   MOBILE MENU
============================================ */

#mobile-menu {
    display: none;
    transition: all 0.3s ease-in-out;
}

#mobile-menu.active {
    display: block;
}

/* ============================================
   RESPONSIVE UTILITIES
============================================ */

@media (max-width: 768px) {
    .header-animate {
        animation: none; /* Disable on mobile for performance */
    }
}

/* ============================================
   WORDPRESS MENU STYLING
============================================ */

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    display: inline-block;
}

.menu a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ============================================
   ACCESSIBILITY
============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--radio-blue, #0046be);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
============================================ */

@media print {
    header {
        position: static !important;
    }
    
    .no-print {
        display: none !important;
    }
}
