/* ==========================================================
   CABEÇALHO DESKTOP
========================================================== */

.desktop-header {
  position: relative;
  z-index: var(--z-header);

  width: 100%;

  background: var(--color-header);

  border-bottom: 1px solid var(--border-dark);
}

/* ==========================================================
   LINHA SUPERIOR
========================================================== */

.desktop-header__top {
  min-height: var(--header-top-height);

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015),
      rgba(255, 255, 255, 0)
    ),
    var(--color-header);

  border-bottom: 1px solid var(--border-dark);
}

.desktop-header__top-content {
  display: grid;

  grid-template-columns:
    230px
    minmax(420px, 1fr)
    auto;

  align-items: center;

  gap: 28px;

  min-height: var(--header-top-height);
}

/* ==========================================================
   LOGOTIPO
========================================================== */

.desktop-header__logo-link {
  display: inline-flex;

  align-items: center;

  width: fit-content;
}

.desktop-header__logo {
  width: 190px;
  height: auto;

  object-fit: contain;

  transition: var(--transition-normal);
}

.desktop-header__logo-link:hover .desktop-header__logo {
  transform: scale(1.02);
}

/* ==========================================================
   BUSCA PRINCIPAL
========================================================== */

.desktop-search {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    190px
    58px;

  align-items: stretch;

  min-width: 0;
  height: 48px;

  overflow: hidden;

  background: rgba(12, 15, 18, 0.92);

  border: 1px solid var(--border-light);

  border-radius: var(--radius-medium);

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

  transition: var(--transition-normal);
}

.desktop-search:focus-within {
  border-color: var(--border-gold-strong);

  box-shadow:
    0 0 0 3px rgba(213, 162, 72, 0.08),
    var(--shadow-small);
}

.desktop-search__input {
  width: 100%;
  min-width: 0;

  padding: 0 20px;

  color: var(--color-white);

  background: transparent;
}

.desktop-search__input::placeholder {
  color: var(--color-text-muted);

  opacity: 1;
}

.desktop-search__select-wrapper {
  position: relative;

  display: flex;

  align-items: center;

  border-left: 1px solid var(--border-dark);
}

.desktop-search__select {
  width: 100%;
  height: 100%;

  padding:
    0
    40px
    0
    18px;

  color: var(--color-white);

  background: transparent;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}

.desktop-search__select option {
  color: var(--color-text);

  background: var(--color-surface);
}

.desktop-search__select-icon {
  position: absolute;
  right: 16px;

  width: 12px;
  height: 12px;

  pointer-events: none;

  opacity: 0.75;
}

.desktop-search__submit {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 58px;

  background:
    linear-gradient(
      180deg,
      var(--color-gold-light),
      var(--color-gold)
    );

  border-left: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition-normal);
}

.desktop-search__submit:hover {
  filter: brightness(1.08);
}

.desktop-search__submit:active {
  transform: scale(0.97);
}

.desktop-search__submit img {
  width: 23px;
  height: 23px;

  object-fit: contain;
}

/* ==========================================================
   AÇÕES DA CONTA
========================================================== */

.desktop-header-actions {
  display: flex;

  align-items: center;

  gap: 22px;

  white-space: nowrap;
}

.desktop-header-action {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: var(--color-white);

  font-size: var(--font-size-sm);
}

.desktop-header-action:hover {
  color: var(--color-gold-light);
}

.desktop-header-action__icon {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
}

.desktop-header-action__icon img {
  width: 23px;
  height: 23px;

  object-fit: contain;
}

.desktop-header-action__badge {
  position: absolute;

  top: -8px;
  right: -7px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  color: var(--color-black);

  background: var(--color-gold);

  border-radius: var(--radius-pill);

  font-size: 0.66rem;
  font-weight: var(--font-weight-bold);

  box-shadow: var(--shadow-small);
}

/* ==========================================================
   CONTA DO USUÁRIO
========================================================== */

.desktop-account {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  color: var(--color-white);
}

.desktop-account:hover {
  color: var(--color-gold-light);
}

.desktop-account__icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 32px;
  height: 32px;
}

.desktop-account__icon img {
  width: 27px;
  height: 27px;

  object-fit: contain;
}

.desktop-account__content {
  display: flex;

  flex-direction: column;

  line-height: 1.15;
}

.desktop-account__content strong {
  color: inherit;

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.desktop-account__content small {
  margin-top: 3px;

  color: var(--color-text-muted);

  font-size: var(--font-size-xs);
}

/* ==========================================================
   LINHA DE NAVEGAÇÃO
========================================================== */

.desktop-header__navigation {
  min-height: var(--header-navigation-height);

  background: rgba(8, 10, 12, 0.98);
}

.desktop-header__navigation-content {
  display: flex;

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

  min-height: var(--header-navigation-height);

  gap: 24px;
}

/* ==========================================================
   MENU PRINCIPAL
========================================================== */

.desktop-main-menu {
  display: flex;

  align-items: stretch;

  gap: 2px;

  min-width: 0;
}

.desktop-main-menu__link {
  position: relative;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: var(--header-navigation-height);

  padding: 0 17px;

  color: var(--color-white);

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);

  text-transform: uppercase;

  white-space: nowrap;
}

.desktop-main-menu__link img {
  width: 10px;
  height: 10px;

  opacity: 0.75;
}

.desktop-main-menu__link::after {
  content: "";

  position: absolute;

  left: 17px;
  right: 17px;
  bottom: 0;

  height: 3px;

  background: var(--color-gold);

  transform: scaleX(0);

  transform-origin: center;

  transition: var(--transition-normal);
}

.desktop-main-menu__link:hover,
.desktop-main-menu__link--active {
  color: var(--color-gold-light);
}

.desktop-main-menu__link:hover::after,
.desktop-main-menu__link--active::after {
  transform: scaleX(1);
}

/* ==========================================================
   BOTÃO ANUNCIAR
========================================================== */

.desktop-announce-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  min-width: 218px;
  height: 40px;

  padding: 0 24px;

  color: var(--color-white);

  background:
    linear-gradient(
      180deg,
      var(--color-gold-light),
      var(--color-gold)
    );

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-gold);

  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);

  text-transform: uppercase;

  transition: var(--transition-normal);
}

.desktop-announce-button:hover {
  color: var(--color-white);

  transform: translateY(-1px);

  filter: brightness(1.08);
}

.desktop-announce-button img {
  width: 20px;
  height: 20px;

  object-fit: contain;
}

/* ==========================================================
   AJUSTES PARA NOTEBOOKS
========================================================== */

@media (max-width: 1380px) {
  .desktop-header__top-content {
    grid-template-columns:
      190px
      minmax(360px, 1fr)
      auto;

    gap: 18px;
  }

  .desktop-header__logo {
    width: 168px;
  }

  .desktop-search {
    grid-template-columns:
      minmax(0, 1fr)
      170px
      54px;
  }

  .desktop-header-actions {
    gap: 14px;
  }

  .desktop-main-menu__link {
    padding: 0 12px;
  }

  .desktop-announce-button {
    min-width: 190px;

    padding: 0 18px;
  }
}

@media (max-width: 1180px) {
  .desktop-header__top-content {
    grid-template-columns:
      170px
      minmax(320px, 1fr)
      auto;
  }

  .desktop-header__logo {
    width: 150px;
  }

  .desktop-header-action__text {
    display: none;
  }

  .desktop-search {
    grid-template-columns:
      minmax(0, 1fr)
      155px
      52px;
  }

  .desktop-main-menu__link {
    padding: 0 9px;

    font-size: 0.74rem;
  }

  .desktop-announce-button {
    min-width: 172px;

    font-size: 0.74rem;
  }
}