:root {
  --header-primary: #2563eb;
  --header-primary-dark: #1d4ed8;
  --header-primary-light: #3b82f6;
  --header-text: #111827;
  --header-border: #e5e7eb;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  z-index: 1000;
  padding: max(1rem, env(safe-area-inset-top)) 0 1rem;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(1.5rem, env(safe-area-inset-left)) 0 max(1.5rem, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand a {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-brand a:hover {
  opacity: 0.9;
}

.nav-logo {
  height: 10.5rem;
  max-height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  background: linear-gradient(135deg, var(--header-primary-light), var(--header-primary));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.nav-btn:hover {
  background: linear-gradient(135deg, var(--header-primary), var(--header-primary-dark));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.nav-btn-outline {
  background: transparent;
  color: var(--header-primary);
  border: 2px solid var(--header-primary);
  box-shadow: none;
}

.nav-btn-outline:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--header-primary-dark);
  border-color: var(--header-primary-dark);
}

body.with-public-header .auth-container {
  margin-top: 7.5rem;
}

body.with-public-header .blog-container {
  margin-top: 9rem;
}

@media (max-width: 768px) {
  body.with-public-header .auth-container {
    margin-top: 8.25rem;
  }

  body.with-public-header .blog-container {
    margin-top: 8.5rem;
  }
}
