/**
 * ViViDio Connect — Standard PWA header bar
 * Canonical location: common/theme/
 * Order: load after design-system.css, header.css, theme-dark.css.
 */

.popup-wrapper { padding-top: var(--header-height, clamp(2.75rem, 5vw + 2.25rem, 4rem)); }
.content-with-header { padding-top: 0; }

.header.vvc-header,
header.header.vvc-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--header-height, clamp(2.75rem, 5vw + 2.25rem, 4rem)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(0.75rem, 2vw + 0.5rem, 1.5rem) !important;
  padding: 0 var(--main-padding-x, clamp(0.75rem, 2vw + 0.5rem, 1.5rem)) !important;
  background: rgba(2, 6, 23, 0.92) !important;
  border-bottom: 1px solid var(--vvc-card-border, rgba(255, 255, 255, 0.08)) !important;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 100;
  box-sizing: border-box;
}

.vvc-header-right { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw + 0.25rem, 1rem); flex-shrink: 1; min-width: 0; }
/* Brand title + subtitle +50% (matches header.css) */
.vvc-header-brand { display: flex; align-items: center; gap: clamp(0.5rem, 1vw + 0.35rem, 0.75rem); flex-shrink: 0; font-size: clamp(1.5rem, 1.8vw + 1.125rem, 1.6875rem); }
.vvc-header-brand img, .brand-logo-img { width: clamp(2.25rem, 6vw + 1.5rem, 3.375rem); height: clamp(2.25rem, 6vw + 1.5rem, 3.375rem); object-fit: contain; border-radius: 10px; }
.vvc-header-brand-text .vvc-header-title { font-size: inherit; }
.vvc-header-brand-text .vvc-header-subtitle { font-size: clamp(0.975rem, 1.2vw + 0.75rem, 1.125rem); }
.header-brand-link { text-decoration: none; color: inherit; display: flex; align-items: center; gap: clamp(0.5rem, 1vw + 0.35rem, 0.75rem); }
.vvc-header .pwa-nav { gap: clamp(0.5rem, 1.5vw + 0.25rem, 1rem); }
.vvc-header-actions { gap: clamp(0.35rem, 0.6vw + 0.25rem, 0.6rem); flex-shrink: 0; }
.vvc-header-tutorial { margin-right: 0; gap: clamp(0.35rem, 0.6vw + 0.25rem, 0.6rem); }

/* Header action buttons: 📖 हिंदी, 📖 English, My Account — dark fill + thin gradient border + white text + simple corners */
.header.vvc-header .vvc-header-actions .vvc-header-btn.vvc-btn {
  width: auto;
  min-width: auto;
  height: auto;
  min-height: clamp(1.75rem, 3.5vw + 1rem, 2rem);
  padding: clamp(0.2rem, 0.4vw + 0.15rem, 0.35rem) clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 8px;
}
.header.vvc-header .vvc-header-actions .vvc-btn-1 {
  --vvc-btn1-fill: var(--vvc-bg-deep, #020617);
  background: linear-gradient(var(--vvc-btn1-fill), var(--vvc-btn1-fill)) padding-box, var(--vvc-btn-border-gradient) border-box !important;
  background-size: 100% 100%, 200% 200%;
  background-position: 0 0, 0% 50%;
  color: #fff !important;
  border: 2px solid transparent;
  box-shadow: none !important;
  animation: vvc-btn-border-gradient-loop 5s ease-in-out infinite alternate;
}
.header.vvc-header .vvc-header-actions .vvc-btn-1:hover {
  background: linear-gradient(var(--vvc-btn1-fill), var(--vvc-btn1-fill)) padding-box, var(--vvc-btn-border-gradient) border-box !important;
  background-size: 100% 100%, 200% 200%;
  color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-1px);
}
/* 📖 हिंदी, 📖 English: same vvc-btn-1 look as My Account (override marketing.css tutorial blue/sky style) */
.header.vvc-header .vvc-header-actions .vvc-header-tutorial a.vvc-btn-1,
.header.vvc-header .vvc-header-actions a.vvc-btn-1[href*="tutorial-hi"],
.header.vvc-header .vvc-header-actions a.vvc-btn-1[href*="tutorial-en"] {
  --vvc-btn1-fill: var(--vvc-bg-deep, #020617);
  background: linear-gradient(var(--vvc-btn1-fill), var(--vvc-btn1-fill)) padding-box, var(--vvc-btn-border-gradient) border-box !important;
  background-size: 100% 100%, 200% 200%;
  background-position: 0 0, 0% 50%;
  color: #fff !important;
  border: 2px solid transparent !important;
  box-shadow: none !important;
  animation: vvc-btn-border-gradient-loop 5s ease-in-out infinite alternate;
  padding: clamp(0.2rem, 0.4vw + 0.15rem, 0.35rem) clamp(0.75rem, 1.5vw + 0.5rem, 1rem) !important;
  min-height: clamp(1.75rem, 3.5vw + 1rem, 2rem) !important;
  border-radius: 8px !important;
}
.header.vvc-header .vvc-header-actions .vvc-header-tutorial a.vvc-btn-1:hover,
.header.vvc-header .vvc-header-actions a.vvc-btn-1[href*="tutorial-hi"]:hover,
.header.vvc-header .vvc-header-actions a.vvc-btn-1[href*="tutorial-en"]:hover {
  background: linear-gradient(var(--vvc-btn1-fill), var(--vvc-btn1-fill)) padding-box, var(--vvc-btn-border-gradient) border-box !important;
  background-size: 100% 100%, 200% 200%;
  color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}
/* My Account: same vvc-btn-1 look (override marketing.css .header-btn-account) */
.header.vvc-header .vvc-header-actions .vvc-btn-1.header-btn-account,
.header.vvc-header .vvc-header-actions a.vvc-btn-1.header-btn-account {
  --vvc-btn1-fill: var(--vvc-bg-deep, #020617);
  background: linear-gradient(var(--vvc-btn1-fill), var(--vvc-btn1-fill)) padding-box, var(--vvc-btn-border-gradient) border-box !important;
  background-size: 100% 100%, 200% 200%;
  background-position: 0 0, 0% 50%;
  color: #fff !important;
  border: 2px solid transparent !important;
  box-shadow: none !important;
  animation: vvc-btn-border-gradient-loop 5s ease-in-out infinite alternate;
  padding: clamp(0.2rem, 0.4vw + 0.15rem, 0.35rem) clamp(0.75rem, 1.5vw + 0.5rem, 1rem) !important;
  min-height: clamp(1.75rem, 3.5vw + 1rem, 2rem) !important;
}
.header.vvc-header .vvc-header-actions .vvc-btn-1.header-btn-account:hover,
.header.vvc-header .vvc-header-actions a.vvc-btn-1.header-btn-account:hover {
  background: linear-gradient(var(--vvc-btn1-fill), var(--vvc-btn1-fill)) padding-box, var(--vvc-btn-border-gradient) border-box !important;
  background-size: 100% 100%, 200% 200%;
  color: rgba(255, 255, 255, 0.95) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

/* ≤900px: header as flexbox, wraps to 2 rows; nav + actions in .vvc-header-right with smaller gaps */
@media (max-width: 900px) {
  .popup-wrapper {
    padding-top: clamp(4.5rem, 10vw + 3.5rem, 6.5rem) !important; /* room for header when 2 rows */
  }
  .header.vvc-header,
  header.header.vvc-header {
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: var(--header-height, clamp(2.75rem, 5vw + 2.25rem, 4rem)) !important;
    padding: clamp(0.35rem, 1.5vw + 0.25rem, 0.75rem) var(--main-padding-x, clamp(0.75rem, 2vw + 0.5rem, 1.5rem)) !important;
    gap: clamp(0.35rem, 1.2vw + 0.2rem, 0.65rem) !important;
    align-content: center !important;
  }
  .vvc-header-right {
    flex: 1 1 100% !important;
    flex-wrap: wrap !important;
    gap: clamp(0.25rem, 1vw + 0.15rem, 0.5rem) !important;
  }
}
