/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  height: 72px;

  background: rgba(8, 11, 16, .82);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.header-inner {
  width: min(100%, 1440px);
  height: 100%;

  margin: 0 auto;
  padding: 0 28px;

  display: flex;
  align-items: center;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;

  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;

  object-fit: contain;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;

  line-height: 1;
}

.brand-text strong {
  color: #000000;

  font-size: 16px;
  font-weight: 800;

  letter-spacing: .04em;
}

.brand-text small {
  margin-top: 5px;

  color: var(--muted);

  font-size: 8px;
  letter-spacing: .08em;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 10px;
}


/* =========================================================
   HEADER SEARCH
   ========================================================= */

.header-search-btn,
.profile-btn {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-radius: 50%;

  background: rgba(255, 255, 255, .035);

  color: var(--text);

  cursor: pointer;

  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.header-search-btn {
  font-size: 23px;
  line-height: 1;
}

.header-search-btn:hover,
.profile-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.profile-btn {
  font-size: 20px;
}


/* =========================================================
   THEME
   ========================================================= */

.theme-btn {
  position: relative;

  width: 74px;
  height: 38px;

  padding: 3px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: #171d27;

  cursor: pointer;
}

.theme-btn .sun,
.theme-btn .moon {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-size: 17px;
  line-height: 1;
}

.theme-btn .sun {
  background: var(--accent);
  color: #18140a;

  box-shadow:
    0 0 14px rgba(255, 201, 74, .22);
}

.theme-btn .moon {
  color: var(--muted);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .header-inner {
    padding: 0 20px;
  }

  .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text small {
    display: none;
  }

  .header-actions {
    gap: 7px;
  }

  .header-search-btn,
  .profile-btn {
    width: 36px;
    height: 36px;
  }

  .theme-btn {
    width: 66px;
    height: 34px;
  }

  .theme-btn .sun,
  .theme-btn .moon {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
}