/* ============================================================
   SHARED NAVIGATION — The Regenerative Party
   Hamburger menu, consistent across all pages
   ============================================================ */

/* Reset any conflicting nav styles */
.rp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 80, 22, 0.12);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.rp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.rp-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.rp-nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.rp-nav-logo span {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2d5016;
  line-height: 1.2;
  max-width: 140px;
}

/* Desktop links */
.rp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-nav-links li a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.rp-nav-links li a:hover {
  background: rgba(45, 80, 22, 0.08);
  color: #2d5016;
}

.rp-nav-links li a.rp-nav-active {
  color: #2d5016;
  font-weight: 700;
}

/* Playlist highlight */
.rp-nav-links li a.rp-nav-playlist {
  background: rgba(45, 80, 22, 0.1);
  color: #2d5016;
  font-weight: 700;
  border: 1px solid rgba(45, 80, 22, 0.2);
}

.rp-nav-links li a.rp-nav-playlist:hover {
  background: rgba(45, 80, 22, 0.18);
}

/* CTA button */
.rp-nav-links li a.rp-nav-cta {
  background: linear-gradient(135deg, #2d5016, #4a7c28);
  color: #fff !important;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  border: none;
}

.rp-nav-links li a.rp-nav-cta:hover {
  background: linear-gradient(135deg, #3d6820, #5a9030);
  transform: translateY(-1px);
}

/* Hamburger button */
.rp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.rp-hamburger:hover {
  background: rgba(45, 80, 22, 0.08);
}

.rp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2d5016;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

/* Hamburger open state */
.rp-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rp-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.rp-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.rp-mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 9998;
  overflow-y: auto;
  padding: 1rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.25rem;
}

.rp-mobile-menu.open {
  display: flex;
}

.rp-mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  border-bottom: 1px solid rgba(45, 80, 22, 0.07);
  transition: background 0.15s;
}

.rp-mobile-menu a:hover {
  background: rgba(45, 80, 22, 0.07);
  color: #2d5016;
}

.rp-mobile-menu a.rp-mobile-playlist {
  background: rgba(45, 80, 22, 0.1);
  color: #2d5016;
  font-weight: 700;
  border: 1px solid rgba(45, 80, 22, 0.2);
  margin: 0.25rem 0;
}

.rp-mobile-menu a.rp-mobile-cta {
  background: linear-gradient(135deg, #2d5016, #4a7c28);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  border-radius: 24px;
  margin-top: 0.75rem;
  border: none;
}

.rp-mobile-menu .rp-mobile-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  padding: 0.75rem 1rem 0.25rem;
}

/* Responsive breakpoint */
@media (max-width: 860px) {
  .rp-nav-links {
    display: none;
  }
  .rp-hamburger {
    display: flex;
  }
}

/* Page body offset so content isn't hidden behind fixed nav */
body.rp-nav-page {
  padding-top: 64px;
}
