/* menu.css - Fables of Antiqua */

header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(241, 196, 15, 0.18);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  color: #F1C40F;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav li {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

nav li:hover,
nav li a.active {
  color: #F1C40F;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(241, 196, 15, 0.18);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 190px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.5);
}

nav li:hover > .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  color: #ECECEC;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #F1C40F;
  color: #1B1B1B;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background: #ECECEC;
  position: relative;
  transition: background 0.3s ease;
  transform-origin: center;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 2px;
  background: #ECECEC;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(5px, -6px);
}

@media only screen and (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  nav .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(0,0,0,0.97);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px 24px 24px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.18);
  }

  nav .nav-menu.open {
    display: flex;
  }

  nav .nav-menu li {
    margin: 0;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  nav .nav-menu li a {
    display: block;
    padding: 14px 0;
  }

  .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 8px 14px;
  }

  .dropdown-menu li {
    border: none !important;
  }

  .dropdown-menu li a {
    padding: 8px 0;
  }
}
