/* =========================
   HEADER (DYNAMIC - LIMPO)
========================= */

.dynamic-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1180px);
  z-index: 1100;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 28px;
  border-radius: 999px;

  background: rgba(7, 14, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);

  box-shadow:
    0 0 20px rgba(0, 217, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.28);

  transition:
    padding 0.35s ease,
    border-radius 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

/* efeito ao scroll */
.dynamic-header.shrink {
  padding: 12px 22px;
  border-radius: 28px;
  background: rgba(7, 14, 28, 0.94);

  box-shadow:
    0 0 22px rgba(0, 217, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.3);
}

/* =========================
   LOGO
========================= */

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  border-radius: 999px;

  filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.2));
  transition: transform 0.3s ease;
}

.header-logo a:hover img {
  transform: rotate(8deg) scale(1.05);
}

.header-logo span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* =========================
   LANGUAGE SWITCHER
========================= */

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-left: auto;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #dbe7f5;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;

  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: rgba(0, 217, 255, 0.15);
  color: var(--neon);

  box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
  transform: scale(1.05);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {
  .dynamic-header {
    width: calc(100% - 20px);
    top: 10px;
    padding: 14px 16px;
    border-radius: 20px;
  }

  .dynamic-header.shrink {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .header-logo span {
    font-size: 15px;
  }

  .header-logo img {
    width: 34px;
    height: 34px;
  }

  /* por enquanto escondido no mobile */
  .language-switcher {
    display: none;
  }
}
