/* layout.css — HealthPilot AI: glass tabs + backend glass pill (for .hp-tabs/.hp-tab HTML) */

html, body { height: 100%; }
body { margin: 0; }

/* Keep page padded so controls never get cut on left */
.page{
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px 70px;
  position: relative;
  z-index: 5; /* above background layers */
}

/* ===== TOP BAR WRAPPER ===== */
.stepper{
  margin-top: 12px;
}

/* IMPORTANT: no big bar behind buttons */
.stepper-inner{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  padding: 10px 8px;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  position: relative;
}

/* Optional subtle sparkle behind the top row */
.stepper-inner::before{
  content:"";
  position:absolute;
  inset:-26px -20px;
  pointer-events:none;
  opacity:.35;
  background:
    radial-gradient(2px 2px at 15% 35%, rgba(255,255,255,.50), transparent 60%),
    radial-gradient(2px 2px at 35% 20%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(2px 2px at 55% 60%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(2px 2px at 75% 28%, rgba(255,255,255,.40), transparent 60%),
    radial-gradient(2px 2px at 90% 50%, rgba(255,255,255,.32), transparent 60%);
}

.stepper-left,
.hp-tabs,
.stepper-right{
  position: relative;
  z-index: 1;
}

/* ===== LEFT BRAND ===== */
.stepper-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.hp-header-back[hidden],
.stepper-brand[hidden]{
  display: none !important;
}

.hp-header-back{
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
}

.stepper-brand-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(120, 205, 255, 1);
  box-shadow:
    0 0 0 6px rgba(90,160,255,0.18),
    0 0 18px rgba(80,170,255,0.45);
}

.stepper-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.94);
  font-size: 20px;
}

.stepper-brand-text{
  position: relative;
  line-height: 1;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(242, 248, 255, 0.96);
  text-shadow: 0 1px 10px rgba(7, 31, 54, 0.35);
}

.stepper-brand-text::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(122, 214, 255, 0.9), rgba(147, 180, 255, 0.85));
  opacity: 0.75;
}

.stepper-brand-accent{
  color: rgba(156, 220, 255, 0.96);
  font-weight: 700;
}

.stepper-brand-right{
  white-space: nowrap;
}

/* =========================================================
   CENTER TABS — YOUR HTML uses .hp-tabs + .hp-tab (buttons)
   This is what makes Symptoms / AI Analysis / Care / Hospitals glassy
========================================================= */
.hp-tabs{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* HARD reset for default button styling */
.hp-tab{
  appearance: none;
  -webkit-appearance: none;

  border: 0;
  outline: 0;
  background: transparent;

  font: inherit; /* inherit site font */
  line-height: 1;

  cursor: pointer;
  user-select: none;

  position: relative;

  height: 44px;
  padding: 0 16px;
  border-radius: 10px;

  /* ✅ GLASS */
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  color: rgba(255,255,255,0.90);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10);

  transition: transform .10s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

/* subtle shine */
.hp-tab::before{
  content:"";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  opacity: 0.9;
}

.hp-tab:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
}

.hp-tab:active{
  transform: translateY(1px);
}

/* Active glow */
.hp-tab.is-active{
  background: rgba(120, 205, 255, 0.18);
  border-color: rgba(140, 220, 255, 0.34);

  box-shadow:
    0 14px 30px rgba(0,0,0,0.22),
    0 0 18px rgba(120, 205, 255, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

/* =========================================================
   RIGHT BACKEND PILL
========================================================= */
.stepper-right{
  min-width: 220px;
  display: flex;
  justify-content: flex-end;
}

/* Your HTML uses: <span class="pill pill-dark" id="backendPill">... */
#backendPill{
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  color: rgba(255,255,255,0.90) !important;

  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;

  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.12) !important;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .page{ padding: 14px 16px 56px; }
  .stepper-left{ min-width: auto; }
  .stepper-right{ min-width: auto; }
  .hp-tabs{ gap: 10px; }
  .hp-tab{ font-size: 14px; padding: 0 12px; }
}

@media (max-width: 620px){
  .stepper-inner{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }

  .hp-tabs{
    justify-content: space-between;
    width: 100%;
  }

  .hp-tab{
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    height: 42px;
  }

  .stepper-right{
    justify-content: flex-start;
  }
  .stepper-brand-right{
    font-size: 18px;
  }
}


/*test
.hp-tabs{
  justify-content: flex-start;
  margin-left: 0;
}*/

/* ===============================
   MOBILE FIX: Tabs never wrap + horizontal scroll
   (prevents Symptoms/AI/Care/Hospitals breaking out)
================================= */
@media (max-width: 720px){
  /* make the nav row scroll instead of wrapping */
  #steps{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
  }
  #steps::-webkit-scrollbar{ display:none; } /* Safari/Chrome */

  /* keep all tabs in one line */
  .hp-tabs{
    flex-wrap: nowrap !important;
    width: max-content;             /* shrink-to-content */
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  /* each button stays single-line and compact */
  .hp-tab{
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    line-height: 1 !important;

    font-size: clamp(12px, 3.2vw, 14px) !important;
    padding: 0 12px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }
}
