/**
 * Header Styles
 * 
 * Professional header with top bar and main navigation
 */

/* Top Bar */
.top-bar {
  background: var(--podcast-primary);
  color: #ffffff;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 2px solid var(--podcast-accent);
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar-link:hover {
  color: var(--podcast-accent);
}

.top-bar-link i {
  margin-right: 5px;
}

.top-bar-separator {
  opacity: 0.3;
}

.top-bar-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar-text i {
  color: var(--podcast-accent);
}

.top-bar-right {
  display: flex;
  gap: 10px;
}

.social-icon-small {
  color: #ffffff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-small:hover {
  background: var(--podcast-accent);
  transform: translateY(-2px);
}

/* Main Header */
.site-header {
  background: #1a1a2e !important;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border: none;
}

.site-header .container {
  background: transparent !important;
}

.site-header.scrolled {
  box-shadow: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  margin-left: 50px;
  margin-right: 10px;
}

/* Logo and Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-logo {
  height: 50px !important;
  width: auto;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

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

.site-title-wrapper {
  display: flex;
  flex-direction: column;
}

.site-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-family: "Poppins", sans-serif;
}

.site-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--podcast-accent);
}

.site-tagline {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  justify-content: center;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: block;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 30px;
  height: 2px;
  background: var(--podcast-accent);
  transition: transform 0.3s ease;
}

.nav-menu a:hover {
  color: var(--podcast-accent);
  background: rgba(26, 188, 156, 0.1);
}

.nav-menu a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--podcast-accent);
  background: rgba(26, 188, 156, 0.15);
}

/* Header CTA */
.header-cta {
  margin-left: 20px;
}

.btn-subscribe {
  padding: 12px 25px;
  font-size: 14px;
  white-space: nowrap;
}

.btn-subscribe i {
  animation: ring 2s ease infinite;
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(-10deg);
  }
  20%,
  40% {
    transform: rotate(10deg);
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 80px 30px 30px;
}

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

.mobile-nav-menu li {
  border-bottom: 1px solid #e8e8e8;
}

.mobile-nav-menu a {
  display: block;
  padding: 15px 0;
  color: var(--podcast-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
  color: var(--podcast-secondary);
  padding-left: 10px;
}

.mobile-menu-cta {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 2px solid #e8e8e8;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.mobile-menu-social {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--podcast-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--podcast-accent);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .site-title {
    font-size: 18px;
  }

  .site-logo {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 11px;
    padding: 8px 0;
  }

  .top-bar-left {
    gap: 8px;
  }

  .top-bar-text {
    display: none;
  }

  .site-title-wrapper {
    display: none;
  }

  .site-logo {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .top-bar-link {
    font-size: 0;
  }

  .top-bar-link i {
    font-size: 13px;
    margin-right: 0;
  }

  .mobile-menu {
    width: 100%;
  }
}
