/**
 * Busoga One FM - Modern Header Styles
 * A complete redesign with modern aesthetics and better responsive behavior
 */

/* Base Styles */
:root {
  --primary: #E31E24;
  --primary-dark: #b91919;
  --dark: #111827;
  --gray-dark: #374151;
  --gray: #6B7280;
  --gray-light: #F3F4F6;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
}

/* Top Bar */
.top-bar {
  background-color: var(--dark);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-item i {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(227, 30, 36, 0.3);
}

/* Main Navigation */
.main-header {
  background-color: var(--white);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 950;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo */
.logo {
  flex: 0 0 auto;
  margin-right: 2rem;
}

.logo a {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 3.5rem;
  width: auto;
}

.logo-placeholder {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  position: relative;
  padding-right: 1.25rem;
  text-decoration: none;
  display: inline-block;
}

.logo-placeholder .fm {
  font-size: 0.6em;
  background-color: var(--primary);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 4px;
  position: absolute;
  top: 0;
  right: -10px;
}

/* Main Navigation */
.nav-container {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.main-nav {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--gray-dark);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: var(--transition);
  gap: 0.25rem;
}

.nav-link i.dropdown-icon {
  font-size: 0.75rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--gray-light);
}

.nav-item.active .nav-link {
  color: var(--primary);
  font-weight: 600;
}

.nav-item:hover .nav-link i.dropdown-icon {
  transform: rotate(180deg);
}

/* Sub Menu (Dropdown) */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 50;
  overflow: hidden;
}

.nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  list-style: none;
}

.sub-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--gray-dark);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.sub-menu a:hover {
  background-color: var(--gray-light);
  color: var(--primary);
  padding-left: 1.5rem;
}

/* Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Live Radio Button */
.live-radio {
  display: flex;
  align-items: center;
  background-color: var(--gray-light);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  gap: 0.5rem;
  transition: var(--transition);
  text-decoration: none;
}

.live-radio:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(227, 30, 36, 0.3);
}

.live-radio:hover .play-icon,
.live-radio:hover .station-info {
  color: var(--white);
}

.play-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: var(--transition);
}

.station-info {
  display: flex;
  flex-direction: column;
  color: var(--gray-dark);
  transition: var(--transition);
}

.live-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.live-label .pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  position: relative;
}

.live-label .pulse::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s infinite;
  top: 0;
  left: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.station-name {
  font-weight: 500;
  font-size: 0.875rem;
}

/* Search Button & Form */
.search-toggle {
  background-color: var(--gray-light);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.search-toggle:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(227, 30, 36, 0.2);
}

.search-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-container.active {
  opacity: 1;
  visibility: visible;
}

.search-form {
  width: 100%;
  max-width: 600px;
  position: relative;
  padding: 0 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  background-color: var(--white);
  color: var(--gray-dark);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-submit {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  color: var(--primary);
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.search-close:hover {
  background-color: var(--primary);
  transform: rotate(90deg);
}

/* Mobile Menu and Controls */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--gray-dark);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  background-color: var(--gray-light);
  color: var(--primary);
}

/* Mobile outside navigation container */
.mobile-nav-outside {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--white);
  z-index: 9999999 !important; /* Make it higher than everything else */
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 4rem 1rem 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  will-change: transform;
  -webkit-transform: translateZ(0);
  display: none; /* Hide by default */
}

.mobile-nav-outside.active {
  right: 0;
  display: block;
}

/* Mobile Nav Close Button */
.mobile-nav-close {
  display: none; /* Hidden by default, shown only in mobile view when menu is active */
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 9999999 !important; /* Same maximum z-index */
}

.mobile-nav-close:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Remove Menu Backdrop - as requested */
/* No backdrop styles */

/* Responsive Styles */
@media (max-width: 1199px) {
  .top-info {
    gap: 1rem;
  }

  .nav-link {
    padding: 0.75rem 0.75rem;
  }
  
  .live-radio {
    padding: 0.5rem 0.75rem;
  }
  
  .station-name {
    font-size: 0.75rem;
  }
}

@media (max-width: 991px) {
  /* Position the header to ensure proper stacking */
  header {
    position: relative;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Hide the regular nav container on mobile */
  header .nav-container {
    display: none;
  }
  
  /* Show the outside mobile nav when active */
  .mobile-nav-outside {
    display: block;
  }
  
  .mobile-nav-outside.active .mobile-nav-close {
    display: flex;
  }
  
  .main-nav {
    width: 100%;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-item {
    border-bottom: 1px solid var(--gray-light);
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
    justify-content: space-between;
    border-radius: 0;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  
  .nav-item.active .sub-menu {
    max-height: 500px;
  }
  
  .sub-menu a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
  }
}

@media (max-width: 767px) {
  .top-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .top-info {
    justify-content: center;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .logo {
    flex: 1 1 auto;
    margin-right: 0;
  }
  
  .header-actions {
    order: 2;
  }
  
  .station-info {
    display: none;
  }
  
  .live-radio {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
  }
  
  .play-icon {
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 575px) {
  .top-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .info-item {
    font-size: 0.75rem;
  }
  
  .logo-placeholder {
    font-size: 1.25rem;
  }
}

/* Breaking News Banner */
.breaking-banner {
  background-color: #111827;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 900;
  margin-top: -1px; /* Prevents any gap */
}

.breaking-banner-wrapper {
  display: flex;
  height: 40px;
  position: relative;
}

.breaking-label {
  background-color: #E31E24;
  color: white;
  font-weight: 700;
  padding: 0 15px;
  text-transform: uppercase;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  position: relative;
  z-index: 2;
  min-width: 110px;
}

.breaking-label i {
  font-size: 12px;
}

.breaking-banner-content {
  flex: 1;
  overflow: hidden;
  padding-left: 15px;
  position: relative;
}

.breaking-banner-items {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  width: 100%;
}

.breaking-banner-item {
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  padding-right: 50px;
}

.breaking-banner-item a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.breaking-banner-item a:hover {
  color: #f3f4f6;
  text-decoration: underline;
}

/* Breaking news mobile responsiveness improvements */
@media (max-width: 767px) {
  .breaking-banner {
    background-color: #111827;
  }
  
  .breaking-banner-wrapper {
    height: auto;
    flex-direction: row;
    align-items: stretch;
  }
  
  .breaking-label {
    min-width: auto;
    width: auto;
    height: 40px;
    padding: 0 10px;
    border-radius: 0;
    clip-path: none;
    font-size: 12px;
  }
  
  .breaking-banner-content {
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
  }
  
  .breaking-banner-items {
    width: 100%;
    overflow: hidden;
  }
  
  .breaking-banner-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0;
    animation: ticker-mobile 15s linear infinite;
  }
  
  .breaking-banner-item a {
    font-size: 13px;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 575px) {
  .breaking-banner-wrapper {
    flex-direction: row;
  }
  
  .breaking-label {
    min-width: auto;
    padding: 0 8px;
    font-size: 11px;
  }
  
  .breaking-label span {
    display: none;
  }
  
  .breaking-label i {
    font-size: 14px;
    margin: 0;
  }
  
  .breaking-banner-content {
    height: 40px;
  }
  
  .breaking-banner-item a {
    font-size: 12px;
  }
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes ticker-mobile {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Main Content Layout Fixes */
main {
  position: relative;
  z-index: 800;
}

/* Ensure proper spacing in hero/slider sections */
.hero-slider,
.featured-slider,
.main-slider,
[class*="slider-container"] {
  position: relative;
  z-index: 800;
  margin-top: 0;
}

/* Add styles for the TV Watch button */
.tv-watch-btn {
    display: flex;
    align-items: center;
    background-color: #e31e24;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
    margin-right: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.tv-watch-btn:hover, .tv-watch-btn:focus {
    background-color: #c01a1f;
    color: white;
    text-decoration: none;
}

.tv-watch-btn i {
    font-size: 14px;
    margin-right: 5px;
}

.tv-text {
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .tv-text {
        display: none;
    }
    
    .tv-watch-btn {
        padding: 8px;
        margin-right: 10px;
    }
    
    .tv-watch-btn i {
        margin-right: 0;
    }
} 