/* === Body Padding to Account for Fixed Header === */
body {
  padding-top: 150px; /* Ajustează în funcție de înălțimea reală a headerului */
}

/* === HEADER MODERN === */
header.top-bar {
  background: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Ascundere Header când se rulează în jos === */
header.top-bar.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* === Conținut Wrap Header === */
.top-wrap {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* === LOGO === */
.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--primary-hover);
}

/* === NAVIGATION LINKS === */
.nav-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.nav-btn:hover {
  background: var(--primary-hover);
}

/* === ICON LINKS (simple, fără fundal) === */
.nav-links a {
  font-size: 1.2rem;
  color: #555;
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: #f1f1f1;
  color: var(--primary);
}

/* === ELEMENTE DREPTE SUPLIMENTARE === */
.top-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* === SELECTOR LIMBĂ === */
.lang-switch select {
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.lang-switch select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

/* === RESPONSIVE HEADER === */
@media (max-width: 768px) {
  .top-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }

  .top-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}
