/* ════════════════════════════════════════════════════════════════════
   DiaCare AI — runtime overrides (v3)
   Vyoma Group design language: Playfair Display headings, italic
   emphasis, warm cream palette, minimal aesthetic.
   ════════════════════════════════════════════════════════════════════ */

/* ─── 0. Bring in Vyoma's brand font ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

:root {
  --vyoma-orange: #e8622a;
  --vyoma-orange-deep: #c14d1a;
  --vyoma-ink: #1a1714;
  --vyoma-ink-soft: #3a3530;
  --vyoma-muted: #6b6560;
  --vyoma-cream: #fdf5e8;
  --vyoma-cream-soft: #f7eedf;
  --vyoma-border: #e0d5c2;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ─── 1. THE HERO GRADIENT — deep, peaceful, warm ───────────────── */
.bg-warm-gradient {
  background: linear-gradient(
    160deg,
    #9c3a16 0%,
    #b8451a 22%,
    #d4561f 45%,
    #e8784a 68%,
    #efa57e 88%,
    #f5cda8 100%
  ) !important;
}
.dark .bg-warm-gradient,
[data-theme="dark"] .bg-warm-gradient {
  background: linear-gradient(
    160deg,
    #0f0a06 0%,
    #1a1208 35%,
    #2a1810 70%,
    #3d2415 100%
  ) !important;
}

/* ─── 2. PROFILE WIDGET — re-skinned as Vyoma cream pill ────────── */
/* .glass on the warm hero was translucent white → camouflage with
   white text. Re-skin it: cream card, dark ink, subtle warm border. */

.bg-warm-gradient .glass {
  background: rgba(253, 245, 232, 0.92) !important;
  border: 1px solid rgba(232, 98, 42, 0.2) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(26, 23, 20, 0.08);
}
.bg-warm-gradient .glass .text-white\/90,
.bg-warm-gradient .glass .text-white\/80 {
  color: var(--vyoma-ink) !important;
  text-shadow: none !important;
  font-weight: 600;
}
.bg-warm-gradient .glass .text-white\/55,
.bg-warm-gradient .glass .text-white\/50,
.bg-warm-gradient .glass .text-white\/70 {
  color: var(--vyoma-muted) !important;
  text-shadow: none !important;
}
.bg-warm-gradient .glass .text-white\/20 {
  color: rgba(232, 98, 42, 0.2) !important;   /* the empty progress ring */
}
.bg-warm-gradient .glass .text-orange-500 {
  color: var(--vyoma-orange) !important;       /* the filled progress arc */
}
.bg-warm-gradient .glass .bg-orange-500\/20 {
  background-color: rgba(232, 98, 42, 0.14) !important;
  border: 1px solid rgba(232, 98, 42, 0.25);
}
.bg-warm-gradient .glass .text-orange-300 {
  color: var(--vyoma-orange-deep) !important;
}

/* ─── 3. HERO TYPOGRAPHY — Playfair Display, italic emphasis ────── */
.bg-warm-gradient h1,
.bg-warm-gradient h2 {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em;
  line-height: 1.08;
}

/* The big hero headline ("What do you need help with today?") */
.bg-warm-gradient .text-3xl,
.bg-warm-gradient .sm\:text-4xl,
.bg-warm-gradient .md\:text-5xl {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em;
}

/* The hero sub ("Tell me what you need…") — gentler weight */
.bg-warm-gradient p.text-sm,
.bg-warm-gradient p.sm\:text-base {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 400 !important;
}

/* DiaCare AI brand name in the top-left logo — apply serif + italic accent */
.bg-warm-gradient header h1,
header span:where(:has(+ span)) {
  font-family: var(--font-serif) !important;
  letter-spacing: -0.01em;
}

/* ─── 4. CHAT INPUT — warm cream card, no harsh whites ──────────── */
.bg-warm-gradient input,
.bg-warm-gradient textarea {
  background-color: rgba(253, 245, 232, 0.96) !important;
  color: var(--vyoma-ink) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}
.bg-warm-gradient input::placeholder,
.bg-warm-gradient textarea::placeholder {
  color: var(--vyoma-muted) !important;
  opacity: 0.7;
}

/* The actual chat input container (input wrapper card) */
.bg-warm-gradient [class*="rounded-3xl"],
.bg-warm-gradient [class*="rounded-2xl"]:has(input),
.bg-warm-gradient [class*="rounded-2xl"]:has(textarea) {
  /* keep the rounded shape but soften the shadow */
}

/* Send button — keep the brand orange */
.bg-warm-gradient button[type="submit"],
.bg-warm-gradient .bg-orange-500 {
  background-color: var(--vyoma-orange) !important;
}
.bg-warm-gradient button[type="submit"]:hover,
.bg-warm-gradient .hover\:bg-orange-600:hover {
  background-color: var(--vyoma-orange-deep) !important;
}

/* ─── 5. SUGGESTION CHIPS — minimal cream pills ─────────────────── */
.bg-warm-gradient button:where([class*="rounded-full"]):not([type="submit"]) {
  background: rgba(253, 245, 232, 0.92) !important;
  border: 1px solid rgba(232, 98, 42, 0.18) !important;
  color: var(--vyoma-ink) !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.bg-warm-gradient button:where([class*="rounded-full"]):not([type="submit"]):hover {
  background: rgba(253, 245, 232, 1) !important;
  border-color: rgba(232, 98, 42, 0.45) !important;
  transform: translateY(-1px);
}

/* ─── 6. LEFT SIDEBAR — match the minimal style ─────────────────── */
.sidebar-glass,
[class*="sidebar-glas"] {
  background: rgba(26, 23, 20, 0.92) !important;
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(232, 98, 42, 0.12) !important;
}

/* ─── 7. BODY — warm off-white instead of stark white ───────────── */
body {
  background-color: #fdf8ef;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Restore Playfair to all big headings across the app, not just hero */
h1, h2 {
  font-family: var(--font-serif);
}
h3, h4, h5 {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ─── 8. HELIX 1 MODEL CHIP utility ─────────────────────────────── */
.helix-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(253, 245, 232, 0.92);
  border: 1px solid rgba(232, 98, 42, 0.25);
  border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--vyoma-orange-deep);
  letter-spacing: 0.01em;
}
.helix-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vyoma-orange);
}

/* ─── 9. MESSAGE BUBBLES — minimal, warm ────────────────────────── */
.bg-warm-gradient [class*="from-orange-500"][class*="to-orange-600"] {
  background: linear-gradient(135deg, var(--vyoma-orange), var(--vyoma-orange-deep)) !important;
}

/* ─── 10. MOBILE — preserve readability ─────────────────────────── */
@media (max-width: 480px) {
  .bg-warm-gradient {
    background: linear-gradient(
      170deg,
      #b8451a 0%,
      #c95821 25%,
      #db6f3a 55%,
      #ed9a72 80%,
      #f5c9a6 100%
    ) !important;
  }
  .bg-warm-gradient .text-3xl,
  .bg-warm-gradient .sm\:text-4xl,
  .bg-warm-gradient .md\:text-5xl {
    font-size: 2rem !important;
  }
  .bg-warm-gradient .glass {
    padding: 0.625rem !important;
  }
}

/* ─── 11. ACCESSIBILITY: focus rings using brand orange ─────────── */
.bg-warm-gradient *:focus-visible {
  outline: 2px solid var(--vyoma-orange) !important;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─── 12. SCROLL — gentle warm scrollbar ────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(193, 77, 26, 0.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(193, 77, 26, 0.4); }
