/* Shared header styles used on the main content pages. Matches index.html. */

header {
  padding: 20px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.logo {
  font-family: var(--font-display, 'Inter Tight', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.04em;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-image {
  display: none;
  height: 28px;
  width: auto;
  vertical-align: middle;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-link .material-icons {
  font-size: 20px;
}

.nav-link span {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.burger-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.burger-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
  margin-top: 12px;
}

.nav-dropdown.active {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-item .material-icons {
  font-size: 18px;
  color: var(--text-muted);
}

.nav-link.nav-news-mobile {
  display: none;
}

.profile-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, 'Inter Tight', sans-serif);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-pill:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.profile-pill:focus-visible {
  outline: 2px solid var(--card-blue);
  outline-offset: 2px;
}

.profile-pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@media (min-width: 850px) {
  .nav-link span {
    display: inline;
  }
}

@media (max-width: 650px) {
  .logo-text {
    display: none;
  }

  .logo-image {
    display: inline-block;
  }

  .nav-link.nav-news-mobile {
    display: flex;
  }
}
