@charset "utf-8";
/* CSS Document */
/* ============================
   MAGICAL HORIZONTAL MAIN MENU
   ============================ */

.magic-menu {
  margin: 1.8rem auto 2.2rem;
  max-width: 1100px;
  z-index: 10;
  position: relative;
}

/* Glowing purple bar */
.magic-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0.55rem 1.4rem;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;

  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.18), transparent 60%),
              linear-gradient(135deg, #3b0b63, #5b1591, #391e77);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(212, 187, 255, 0.6),
    0 16px 30px rgba(0,0,0,0.8),
    0 0 18px rgba(176,126,255,0.9);
}

/* Top-level items */
.magic-menu > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}

/* Top-level link base style */
.magic-menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.45rem 0.95rem;
  border-radius: 999px;

  color: #fbe8ff;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  border: 1px solid transparent;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15), transparent 60%);
  transition:
    background 160ms ease,
    color 120ms ease,
    box-shadow 160ms ease,
    transform 120ms ease,
    border-color 160ms ease;
}

/* Emoji icons in links */
.magic-menu > ul > li > a span:first-child {
  font-size: 1.05rem;
}

/* Hover / focus glow */
.magic-menu > ul > li > a:hover,
.magic-menu > ul > li > a:focus-visible {
  color: #fff7ff;
  transform: translateY(-1px);
  border-color: rgba(221, 191, 255, 0.9);
  box-shadow:
    0 0 10px rgba(223,188,255,0.95),
    0 8px 18px rgba(0,0,0,0.9);
}

/* Active page */
.magic-menu > ul > li > a.active {
  color: #fff9e6;
  border-color: rgba(248, 214, 140, 0.95);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.22), transparent 60%),
    linear-gradient(135deg, #c7903f, #eaca77);
  box-shadow:
    0 0 14px rgba(255,228,145,0.95),
    0 10px 22px rgba(0,0,0,1);
}

/* ============================
   DROPDOWNS
   ============================ */

.magic-menu .has-dropdown {
  position: relative;
}

/* Dropdown panel */
.magic-menu .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0.4rem;

  list-style: none;
  padding: 0.4rem 0.55rem;
  min-width: 180px;

  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.14), transparent 70%),
              linear-gradient(135deg, #1f0b32, #31174c);
  border-radius: 14px;
  border: 1px solid rgba(214, 187, 255, 0.7);
  box-shadow:
    0 14px 30px rgba(0,0,0,0.9),
    0 0 16px rgba(179,140,255,0.95);

  opacity: 0;
  pointer-events: none;
  transform-origin: top center;
  transform: translateX(-50%) translateY(-6px) scale(0.96);
  transition:
    opacity 140ms ease-out,
    transform 140ms ease-out;
  z-index: 25;
}

/* Show dropdown on hover / focus */
.magic-menu .has-dropdown:hover > .dropdown,
.magic-menu .has-dropdown:focus-within > .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown items */
.magic-menu .dropdown li {
  margin: 0.15rem 0;
}

.magic-menu .dropdown a {
  display: flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.25rem 0.6rem;
  border-radius: 999px;

  color: #f2e7ff;
  text-decoration: none;
  font-size: 0.86rem;
  font-family: 'Crimson Pro', serif;
  letter-spacing: 0.04em;
  white-space: nowrap;

  transition:
    background 130ms ease,
    color 130ms ease,
    transform 110ms ease;
}

.magic-menu .dropdown a:hover,
.magic-menu .dropdown a:focus-visible {
  background: rgba(242, 208, 255, 0.16);
  color: #ffffff;
  transform: translateX(1px);
}

/* ============================
   RESPONSIVE TWEAKS
   ============================ */

@media (max-width: 900px) {
  .magic-menu > ul {
    gap: 0.8rem;
    padding-inline: 0.9rem;
  }

  .magic-menu > ul > li > a {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 640px) {
  .magic-menu {
    margin-top: 1.2rem;
  }

  .magic-menu > ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .magic-menu .dropdown {
    left: 0;
    transform: translateX(0) translateY(-6px) scale(0.96);
  }

  .magic-menu .has-dropdown:hover > .dropdown,
  .magic-menu .has-dropdown:focus-within > .dropdown {
    transform: translateX(0) translateY(0) scale(1);
  }
}
