/* RGM Navbar Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&display=swap');

.rgm-navbar {
  background-color: rgba(0, 0, 0, 0.8);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(228, 203, 134, 0.2);
}

.rgm-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  padding: 0 2rem;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  left: 0 !important;
  right: 0 !important;
  transform: translateX(0) !important; /* Prevent any transformations that might offset it */
}

.rgm-navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.rgm-navbar-banner {
  height: 40px;
  width: auto;
  display: block;
}

.rgm-navbar-links {
  display: flex;
  gap: 1.5rem;
}

.rgm-navbar-link {
  font-family: 'Cinzel', 'Noto Sans SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  font-weight: 500;
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.rgm-navbar-link:hover {
  color: #e4cb86;
  background-color: rgba(228, 203, 134, 0.1);
}

.rgm-navbar-link.active {
  color: #e4cb86;
  border-bottom: 2px solid #e4cb86;
}

/* Add 100px padding to body to account for fixed navbar */
body {
  padding-top: 60px;
}

/* Hamburger menu */
.rgm-hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.rgm-hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: #ccc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.rgm-hamburger-menu.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
  background-color: #e4cb86;
}

.rgm-hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.rgm-hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
  background-color: #e4cb86;
}

@media (max-width: 768px) {
  .rgm-navbar-container {
    padding: 0 1rem;
  }
  
  .rgm-hamburger-menu {
    display: flex;
  }
  
  .rgm-navbar-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    width: 100%;
    background-color: rgb(0, 0, 0);
    backdrop-filter: none;
    gap: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
    border-bottom: none;
    z-index: 1000;
    margin: 0;
    padding: 0;
  }
  
  .rgm-navbar-links.mobile {
    height: 0;
    padding: 0;
  }
  
  .rgm-navbar-links.mobile.open {
    height: auto;
    padding: 0;
    border-bottom: 1px solid rgba(228, 203, 134, 0.2);
  }
  
  .rgm-navbar-links.mobile .rgm-navbar-link {
    text-align: left;
    width: 100%;
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: none;
  }
  
  .rgm-navbar-links.mobile .rgm-navbar-link.active {
    border-left: 3px solid #e4cb86;
    border-bottom: none;
    background-color: rgba(228, 203, 134, 0.1);
    padding-left: 1.2rem;
  }
}

@media (max-width: 576px) {
  .rgm-navbar {
    height: 50px;
  }
  
  .rgm-navbar-banner {
    height: 30px;
  }
  
  .rgm-navbar-links.mobile {
    top: 50px;
  }
  
  .rgm-hamburger-menu {
    width: 24px;
    height: 18px;
  }
  
  .rgm-hamburger-menu.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .rgm-hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}