/**
 * YorkMix Complete Header Styles
 * Extracted from actual Next.js implementation
 */

/* CSS Variables */
:root {
  --bs-primary: #FF6B35;
  --yorkmix-orange: #FF6B35;
  --yorkmix-dark: #2c3e50;
  --yorkmix-light: #f8f9fa;
}
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Barlow+Semi+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



/* Header Static Container */
.header-sticky {
  position: static;
  z-index: 1000;
  background: white;
}

/* Mobile Header Styles */
.mobileheader {
  display: block;
}

@media (min-width: 992px) {
  .mobileheader {
    display: none;
  }
}

/* Side Menu Styles */
.side-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1100;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.side-menu.active {
  left: 0;
}

.mobile-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  z-index: 1101;
}

.side-menu #mobmainlogo {
  height: 40px;
  padding-left: 18px;
  margin-bottom: 7px;
}

/* Who's On Air Section */
.whoonair {
  padding: 15px 18px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.sticky-presenter-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-presenter-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.whoonair .mobicon {
  font-size: 24px;
  color: var(--bs-primary);
  margin-left: auto;
}

/* Mobile Navigation List */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.mobile-nav-link:hover {
  background-color: #f8f9fa;
  color: var(--bs-primary);
}

.mobile-toggle .toggle-icon {
  transition: transform 0.2s;
}

.mobile-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Mobile Submenus */
.mobile-submenu {
  background-color: #f8f9fa;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-submenu.active {
  max-height: 500px;
}

.mobile-submenu .mobile-nav-link {
  padding-left: 35px;
  font-size: 0.9em;
}

.mobile-submenu.level-2 .mobile-nav-link {
  padding-left: 50px;
  background-color: #e9ecef;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
  display: none;
}

.menu-overlay.active {
  display: block;
}

/* Mobile Header Bar */
.headerb {
  background: white;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.lrpad {
  padding: 0 15px;
}

.headerb .holder {
  margin-top: -10px;
  width: 110px;
  height: auto;
}

.menu-button, .headerb > div > div > div {
  text-align: center;
  font-size: 0.7em;
  cursor: pointer;
  padding: 8px;
  min-width: 50px;
}

.mobicon {
  font-size: 20px;
  color: #666;
  display: block;
  margin-bottom: 2px;
}

/* Mobile Quick Nav */
.mobile-header .navbar {
  background-color: var(--bs-primary) !important;
  padding: 4px 0;
}

.mobile-header .navbar a {
  color: white !important;
  text-decoration: none;
  font-weight: normal;
  font-size: 0.9em;
}

/* Desktop Header Styles */
.desktopheader {
  display: none;
}

@media (min-width: 992px) {
  .desktopheader {
    display: block;
  }
}

/* Desktop Brand Area */
.desktopheader .navbar:first-child {
  margin-top: 20px;
  margin-bottom: 0;
  padding-bottom: 0;
}

#desktopmainlogo {
  height: auto;
  max-height: 60px;
}

/* Advertisement Area */
.advertisement {
  margin: 0 auto;
}

/* Desktop Auth Section */
.main-header-box {
  color: white;
  font-weight: bold;
}

.main-header-box-light {
  color: #ccc;
  font-weight: normal;
}

#desktop-header-auth {
  text-align: right;
}

#desktop-header-auth a {
  color: #333;
  text-decoration: none;
  font-size: 0.8em;
  font-weight: bold;
}

#desktop-header-auth a:hover {
  color: var(--bs-primary);
}

#main-gift-icon {
  position: relative;
}

#main-gift-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Radio Bar */
.navbar-fark {
  background-image: url('images/tribg.png');
  padding-bottom: 0;
}

#desktoptagline {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  margin-top: 20px;
}

.trends {
  font-size: 0.9em;
}

/* Presenter Section */
#desktop-presenter-image {
  height: 119px;
  object-fit: cover;
}

.presenter-info {
  margin-top: 40px;
  float: left;
  text-align: right;
  width: 180px;
  overflow: hidden;
}

.listen-button {
  margin-top: 28px;
  background-color: #FA770F;
  cursor: pointer;
  float: left;
  padding: 10px 6px;
  margin-left: 30px;
  border-left: 1px solid white;
  text-align: center;
  border-right: 1px solid white;
  width: 80px;
  color: white;
}

.listen-button:hover {
  background-color: #e56a0e;
}

/* Main Navigation */
.mixnav {
  background: white !important;
}

.mixnav .navbar-brand {
  color: #333 !important;
  font-weight: bold;
  text-decoration: none;
}

.mixnav .nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.mixnav .nav-link:hover {
  color: var(--bs-primary) !important;
}

/* Megamenu Styles */
.nav-item.position-static {
  position: static !important;
}

.megamenu-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  display: none;
}

.nav-item:hover .megamenu-container {
  display: block;
}

.megamenu {
  padding: 30px 0;
}

.megamenu h6 {
  color: #333;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.8em;
  letter-spacing: 0.5px;
}

.megamenu .list-unstyled {
  margin: 0;
  padding: 0;
}

.megamenu .list-unstyled li {
  margin-bottom: 8px;
}

.megamenu .list-unstyled a {
  color: #666;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.2s;
}

.megamenu .list-unstyled a:hover {
  color: var(--bs-primary);
}

.megamenu-header-image {
  margin-bottom: 15px;
}

.megamenu-header-image img {
  max-height: 60px;
  object-fit: contain;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s;
}

.social-icons a:hover {
  color: var(--bs-primary);
}

/* Weather Widget */
#weather-container-header {
  font-size: 12px;
  color: #666;
}

/* Responsive Utilities */
@media (max-width: 991.98px) {
  .d-lg-block {
    display: none !important;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Error Handling for Images */
img[data-error-handler-added] {
  transition: opacity 0.2s;
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--bs-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Print Styles */
@media print {
  .header-sticky {
    display: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .nav-link,
  .mobile-nav-link {
    border: 1px solid transparent;
  }
  
  .nav-link:focus,
  .mobile-nav-link:focus {
    border-color: currentColor;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}