/* --- Navigation Header --- */
.app-header {
  background-color: #0d1117;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Brand Logo Area --- */
.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-family: system-ui, -apple-system, sans-serif;
}

.brand-subtitle {
  color: #007bff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

/* --- Navigation Links --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #8a99ad;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* Active State */
.nav-link.active {
  color: #ffffff;
  background-color: rgba(0, 123, 255, 0.15);
  border: 1px solid rgba(0, 123, 255, 0.3);
}

/* TV Display Button Badge */
.nav-link.tv-link {
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
  background-color: rgba(40, 167, 69, 0.08);
}

.nav-link.tv-link:hover {
  background-color: rgba(40, 167, 69, 0.2);
  color: #ffffff;
}

.external-arrow {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 640px) {
  .nav-container {
    padding: 0 12px;
    height: 56px;
  }
  
  .brand-subtitle {
    display: none; /* Keep header compact on phone screens */
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .nav-icon {
    display: none; /* Hide icons on small mobile screens to save space */
  }
}