/* header.css — shared header styles for MindVizu (v2.1.0)
   Load this AFTER your page stylesheet so these become the single source of truth.
*/

:root {
  --accent-color: #4A90E2;
  --accent-hover: #357ABD;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* --- Header & Navigation (unified) --- */
.main-header {
  background-color: rgba(248, 250, 252, 0.8);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.5em;
  margin-bottom: 0.2em;
}

.beta-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #e67e22;
  background-color: #fdf2e9;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 0.25rem;
  align-self: flex-start;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
  white-space: nowrap; /* Prevents text from wrapping */
}

.nav-link:hover {
  color: var(--accent-color);
}

/* Language switcher (desktop) */
.language-switcher {
  margin-left: 1rem;
}
.language-switcher select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708 .708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1em;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 1000px) { /* CHANGED FROM 768px */
  .main-nav { display: none; }
  .hamburger-menu { display: block; } 
}

/* Optional: dashboard button alignment used on index */
#nav-dashboard-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}
#nav-dashboard-button svg {
  width: 22px;
  height: 22px;
}