/* =============================================================
   PR0TOCOL — Shared Styles
   Used by all pages. Change once, applies everywhere.
   ============================================================= */

/* === FONTS === */
@font-face { font-family: "HS_LunaObscura"; src: url("fonts/luna-obscura.otf") format("opentype"); }
@font-face { font-family: "CodecPro"; src: url("fonts/codec-pro-regular.otf") format("opentype"); font-weight: 400; }
@font-face { font-family: "CodecPro"; src: url("fonts/codec-pro-bold.otf") format("opentype"); font-weight: 700; }
@font-face { font-family: "CodecProUltra"; src: url("fonts/codec-pro-ultra.otf") format("opentype"); font-weight: 900; }

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body {
  background: #000;
  font-family: "CodecPro", sans-serif;
  color: #fff;
  overflow-x: hidden;
  max-width: 100vw;
}

/* === NAVIGATION === */
nav {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
}
.nav-logo img { height: 40px; width: auto; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-right a,
.nav-right span {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "CodecPro", sans-serif;
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-right a:hover,
.nav-right span:hover { opacity: 1; }
.nav-login {
  border: 1px solid #fff;
  padding: 8px 22px;
  border-radius: 20px;
}

/* === DROPDOWN === */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  z-index: 9999;
  min-width: 220px;
}
.dropdown-menu-inner {
  background: rgba(10,10,10,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 8px 0;
  backdrop-filter: blur(20px);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
  display: block;
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: "CodecPro", sans-serif;
  font-weight: 700;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  opacity: 1;
}
.dropdown-menu li a:hover {
  color: rgb(253,41,57);
  background: rgba(253,41,57,0.06);
}
.dropdown:hover .dropdown-menu { display: block; }

/* === HAMBURGER (mobile only) === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  z-index: 10001;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === MOBILE MENU === */
#mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: rgba(8,8,8,0.98);
  backdrop-filter: blur(30px);
  z-index: 10000;
  padding: 90px 32px 40px;
  transition: right 0.45s cubic-bezier(0.22,1,0.36,1);
  overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.05);
}
#mobile-menu.open { right: 0; }
#mobile-menu a,
#mobile-menu .mm-section-title {
  display: block;
  padding: 18px 0;
  font-family: "CodecPro", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, padding-left 0.2s;
}
#mobile-menu a:active {
  color: rgb(253,41,57);
  padding-left: 8px;
}
#mobile-menu .mm-section-title {
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  padding: 22px 0 10px;
  border-bottom: none;
  letter-spacing: 3px;
}
#mobile-menu .mm-sub {
  padding: 14px 0 14px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.5px;
}
#mobile-menu .mm-login {
  margin-top: 28px;
  padding: 16px;
  background: rgb(253,41,57);
  border-radius: 50px;
  text-align: center;
  border: none;
  font-size: 13px;
}
#mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
#mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* =============================================================
   MEDIA QUERIES
   ============================================================= */

@media (max-width: 768px) {
  /* === NAV MOBILE === */
  nav {
    padding: 14px 18px;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    width: 100%;
  }
  .nav-logo img { height: 28px; }
  .nav-right { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 769px) {
  /* === HIDE MOBILE ELEMENTS ON DESKTOP === */
  #mobile-menu,
  #mobile-backdrop { display: none; }
  .hamburger { display: none; }
}
