@font-face {
  font-family: "Yekan";
  src: url("../font/Wyekan.ttf");
}

/* Global Safe Layout */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Yekan;
  direction: rtl;
  background: radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 28%), radial-gradient(circle at 15% 45%, rgba(212,175,55,0.05), transparent 24%), linear-gradient(180deg,#0f0f0f 0%,#070707 100%);
  color: #fff;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* HEADER */

.header {
  background: #111;
  border-bottom: 1px solid #2a2a2a;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
}

.brand {
  color: #d4af37;
  font-size: 22px;
  font-weight: bold;
}

/* MENU */

.desktop-menu .menu-root {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu li {
  position: relative;
}

.desktop-menu a {
  display: block;
  padding: 12px 16px;
  color: #eee;
  text-decoration: none;
}

  .desktop-menu a:hover {
    color: #d4af37;
    background: #1b1b1b;
    border-radius: 6px;
  }

/* SUBMENU */

.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #151515;
  list-style: none;
  padding: 5px 0;
  margin: 0;
  min-width: 180px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  display: none;
}

  .submenu li {
    position: relative;
  }

.has-sub:hover > .submenu {
  display: block;
}

.submenu .submenu {
  top: 0;
  right: auto;
  left: 100%;
}

/* AUTH */

.auth {
  display: flex;
  gap: 10px;
}

  .auth a {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
  }

.login {
  border: 1px solid #d4af37;
  color: #d4af37;
}

.register {
  background: #d4af37;
  color: black;
}

/* MOBILE BUTTON */

.mobile-btn {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
}

/* MOBILE MENU FIXED */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px,85vw);
  height: 100%;
  background: #111;
  padding: 20px;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}

  .mobile-menu.open {
    transform: translateX(0);
  }

/* OVERLAY */

.overlay {
  position: fixed;
  inset: 0;
  background: #0008;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 1500;
}

  .overlay.show {
    opacity: 1;
    visibility: visible;
  }

/* CONTENT */

.content {
  padding: 40px;
  max-width: 100%;
}

/* FOOTER */

.footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #2a2a2a;
  color: #999;
}

/* MOBILE AUTH */

.mobile-auth {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

  .mobile-auth a {
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
  }

  .mobile-auth .login {
    border: 1px solid #d4af37;
    color: #d4af37;
  }

  .mobile-auth .register {
    background: #d4af37;
    color: black;
  }

/* RESPONSIVE */

@media(max-width:900px) {

  .desktop-menu {
    display: none;
  }

  .auth {
    display: none;
  }

  .mobile-btn {
    display: block;
  }

  .content {
    padding: 24px 16px;
  }
}
