/* ==========================================================================
   Vazi App - Header Component Styles
   Author: Shorea Solutions
   Version: 1.0
   ========================================================================== */

/* Content sections */
.content {
  display: grid;
  gap: 1.5rem;
  text-align: center;
  padding-inline: 1rem;
}




/* Header section */
.content__header {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

/* Header description text */
/* First paragraph in header description */
.content__header-desc > p:first-child {
  margin-block: 0;
}

/* Second paragraph in header description */
.content__header-desc > p:nth-child(2) {
  margin: 0;
}

/* Responsive adjustments */
@media screen and (min-width: 768px) {
  .content__header-desc {
    text-align: center;
  }
}

/* ==========================================================================
   Header Component Styles
   Consolidated from try-on/multisteps.css for reuse across all pages
   ========================================================================== */

/* Header Container - Reserve space to prevent layout shift */
#header-container {
  min-height: 48px;
  width: 100%;
}

/* Header for try-on and general pages */
.tryon__header {
  z-index: 1000;
  background: var(--surface, #ffffff);
  padding-top: env(safe-area-inset-top);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 1rem;
}

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

#user-button-mount {
  display: flex;
  align-items: center;
}

.auth-buttons {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.btn-auth {
  padding: 0.4rem .53rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

@media (min-width: 480px) {
  .btn-auth{
    padding: 0.75rem 1.5rem;
  }
}


.btn-signin {
  background: white;
  color: #000;
  border: 1px solid #000;
}

.btn-signin:hover {
  background: #000;
  color: white;
}

.btn-signup {
  background: #000;
  color: white;
  border: 1px solid #000;
}

.btn-signup:hover {
  background: #333;
}

.btn-profile {
  background: #000;
  color: white;
  border: 1px solid #000;
}

.btn-profile:hover {
  background: #333;
}

.btn-logout {
  background: white;
  color: #000;
  border: 1px solid #000;
}

.btn-logout:hover {
  background: #000;
  color: white;
}

.user-info {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

/* Show/hide based on auth state */
.header-actions[data-auth-state="loading"] .user-info,
.header-actions[data-auth-state="loading"] .auth-buttons {
  display: none;
}

.header-actions[data-auth-state="signed-in"] .user-info {
  display: flex;
}

.header-actions[data-auth-state="signed-in"] .auth-buttons {
  display: none;
}

.header-actions[data-auth-state="signed-out"] .user-info {
  display: none;
}

.header-actions[data-auth-state="signed-out"] .auth-buttons {
  display: flex;
}

/* ===== Auth Switch Link Button ===== */
.link-btn {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
  font-size: inherit;
  font-weight: 600;
  transition: all 0.2s;
}

.link-btn:hover {
  color: #0056b3;
  text-decoration: none;
  background: rgba(0, 123, 255, 0.1);
  border-radius: 4px;
}

.auth-switch {
  color: #374151; /* Darker grey for better readability - meets WCAG AA */
  font-size: 0.95rem;
  padding: 1rem 0 1.5rem 0;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.auth-switch p {
  margin: 0;
}
.tryon__header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Responsive Header Styles ===== */
@media (max-width: 480px) {
  
  .auth-buttons {
    flex-direction: column;
  }

}