/* --- HEADER --- */
#header {
  background: rgba(20, 20, 20, 0.9); /* Menținem culoarea și transparența */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 0;
  transition: background 0.3s;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* Elementele pe un singur rând */
}
.logo a {
  font-family: 'Arhaic', sans-serif;
  font-size: 1.1em;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* --- MENIU DESKTOP --- */
#nav {
  display: flex;
}
#nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}
#nav ul li {
  display: inline-block;
}
#nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 0.9em;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}
#nav ul li a:hover {
  color: #e44c65;
}

/* --- BUTOANE --- */
.button.primary {
  padding: 8px 16px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  text-decoration: none;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 0.9em;
}
.button.primary:hover {
  background: #e44c65;
  color: #fff;
}

#nav .button.purchase {
  color: #fff !important; /* Asigură text alb */
  background: transparent;
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: bold; /* Face textul mai vizibil */
  text-align: center;
  width: auto; /* Evită probleme de lățime */
  padding: 8px 16px;
  transition: all 0.3s;
}

#nav .button.purchase:hover {
  border: 2px solid #e44c65;
  background: #e44c65;
  color: #fff; /* Asigură text alb la hover */
}


/* --- MENIU BURGER MOBIL --- */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}

/* --- MENIU FULLSCREEN MOBIL --- */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 1.0); /* Un fundal semiopac pentru meniu */
  backdrop-filter: blur(165px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
    z-index: 1001;  /* Aici creștem z-index. Era 3000 înainte*/
}
.fullscreen-menu.active {
  opacity: 1;
  visibility: visible;
}
.fullscreen-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.fullscreen-menu li {
  margin: 15px 0;
}
.fullscreen-menu a {
  text-decoration: none;
  font-size: 24px;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}
.fullscreen-menu a:hover {
  color: #e44c65;
}

.fullscreen-menu nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Spațiu între elemente */
}

.fullscreen-menu nav ul li {
  width: 100%;
  text-align: center;
}

.fullscreen-menu .button {
  width: 200px; /* Lățime uniformă pentru toate butoanele */
  text-align: center;
}

.fullscreen-menu .button.purchase {
  color: #fff; /* Asigură text alb pe desktop */
  background: transparent;
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: bold; /* Bold și pe desktop */
  text-align: center;
  width: 200px; /* Ajustează lățimea */
  padding: 12px 30px;
  transition: all 0.3s;
}

.fullscreen-menu .button.purchase:hover {
  border: 2px solid #e44c65;
  background: #e44c65;
  color: #fff; /* Asigură text alb și la hover */
}

.fullscreen-menu .button.purchase {
  font-weight: bold;
  margin-top: 20px; /* Spațiu mai mare sub el */
}


/* --- BUTON ÎNCHIDERE MENIU MOBIL --- */
.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
z-index: 3500; /* Asigurăm că X-ul e vizibil */
}

/* Adaugă o tranziție lină pentru deschiderea meniului */
#nav.full-screen-menu {
  transition: backdrop-filter 0.4s ease, background-color 0.4s ease;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  #nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}
