/* oliver-inspired Navbar */
.navbar {
  background: #fff;
  color: var(--primary-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
  font-family: 'Georgia', serif;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}
.navbar-logo {
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}
.navbar-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.navbar-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s;
  padding-bottom: 0.2rem;
  position: relative;
}
.navbar-links a:hover,
.navbar-links a.active {
  color: var(--primary-color);
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.navbar-right-cluster {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: 2rem;
}
.navbar-socials a {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.navbar-socials a:hover {
  transform: scale(1.1);
}

/* Socials Dropdown */
.socials-dropdown-container {
  position: relative;
  padding-bottom: 0.5rem; /* Provides space for the dropdown */
  margin-bottom: -0.5rem; /* Counteracts the padding to keep layout stable */
}

.socials-toggle::after {
  display: none !important;
}

.socials-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.1);
  min-width: 180px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.socials-dropdown-container:hover .socials-dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.socials-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

.socials-dropdown-menu li a::after {
  display: none !important; /* No underline for dropdown items */
}

.dropdown-icon {
  display: none;
}

/* Admin Key Icon */
.admin-key {
  color: var(--primary-color) !important;
  font-size: 1.1rem !important;
  opacity: 0.8;
  transition: all 0.2s ease;
  margin-left: 2rem;
}

.admin-key:hover {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
}

.admin-key::after {
  display: none !important;
}

/* Hamburger menu */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 2001;
  pointer-events: auto;
}
.navbar-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 4px 0;
  background: var(--primary-color);
  border-radius: 2px;
  transition: 0.3s;
}
.navbar-links.open {
  z-index: 2000;
  pointer-events: auto;
}
.mobile-only {
  display: none;
}
.desktop-only {
  display: flex;
}
@media (max-width: 800px) {
  .navbar-container {
    padding: 0.8rem;
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    width: 200px;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    padding: 1rem 0;
  }
  .navbar-links.open {
    display: flex;
  }
  .navbar-links li {
    width: 100%;
    text-align: center;
  }
  .navbar-links a {
    display: block;
    padding: 0.8rem 1.5rem;
  }
  /* Socials dropdown mobile behavior */
  .socials-dropdown-container .socials-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  }
  .socials-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    min-width: unset;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  }
  .socials-dropdown-container.open .socials-dropdown-menu {
    max-height: 500px; /* Adjust as needed */
    padding-top: 0.5rem;
  }
  .socials-dropdown-menu li a {
    justify-content: center;
  }
  .dropdown-icon {
    display: inline-block;
    font-size: 0.8em;
    transition: transform 0.3s ease;
  }
  .socials-dropdown-container.open .dropdown-icon {
    transform: rotate(180deg);
  }
  .admin-key {
    display: inline-block;
    margin-left: 0;
  }
  .navbar-hamburger {
    display: flex;
  }
  .navbar-socials { /* This class is no longer used, but good to hide just in case */
    display: none;
  }
  .mobile-only {
    display: list-item;
  }
  .desktop-only {
    display: none;
  }
} 