/* Starry night theme — public site only (body.starry-site). Admin is unchanged. */
html.starry-html {
  background-color: #05060f;
  color-scheme: dark;
}

body.starry-site {
  background-color: transparent;
  color: #f3f4f8;
  min-height: 100vh;
}

/* Gradient lives on the fixed layer so a z-index:-1 canvas stays visible
   under scrolling content without covering sticky/fixed UI. */
.starry-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% -8%, #1a1040 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 90% 100%, #10183a 0%, transparent 50%),
    linear-gradient(180deg, #05060f 0%, #070b1a 42%, #0c0820 100%);
}
.starry-sky canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Type --- */
body.starry-site .text-ink,
body.starry-site .text-navy,
body.starry-site .text-navy\/80,
body.starry-site .text-gray-800 {
  color: #f5f6fa;
}
body.starry-site .text-ink\/80,
body.starry-site .text-ink\/75,
body.starry-site .text-ink\/70 {
  color: #d2d4de;
}
body.starry-site .text-ink\/60,
body.starry-site .text-ink\/50,
body.starry-site .text-cream\/60 {
  color: #c5c7d4;
}
body.starry-site .text-royal,
body.starry-site .hover\:text-royal:hover {
  color: #e6c77a;
}
body.starry-site .eyebrow {
  color: #e6c77a;
}
body.starry-site .h2,
body.starry-site .label {
  color: #f5f6fa;
}
body.starry-site .err,
body.starry-site .text-red-700,
body.starry-site .text-red-800,
body.starry-site .text-red-900 {
  color: #ff9b9b;
}
body.starry-site .text-gold-dark {
  color: #e6c77a;
}

/* Gold CTA keeps navy text for contrast on the gold fill. */
body.starry-site .btn-gold,
body.starry-site a.bg-gold,
body.starry-site button.bg-gold,
body.starry-site .bg-gold.text-navy,
body.starry-site [class*="bg-gold"].text-navy {
  color: #0e1a3a;
}
body.starry-site .btn-gold:hover,
body.starry-site a.bg-gold:hover,
body.starry-site button.bg-gold:hover,
body.starry-site .hover\:bg-gold-light:hover.text-navy {
  color: #0e1a3a;
}

/* --- Surfaces --- */
body.starry-site .card,
body.starry-site .bg-white,
body.starry-site .bg-cream,
body.starry-site .bg-cream-dark,
body.starry-site .bg-cream-dark\/50,
body.starry-site .bg-cream-dark\/60,
body.starry-site .bg-cream-dark\/70,
body.starry-site .bg-cream\/50,
body.starry-site .hover\:bg-cream:hover {
  background-color: #141418;
}
body.starry-site .card,
body.starry-site .bg-white {
  background-color: rgba(20, 20, 24, 0.92);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
body.starry-site .bg-white\/5,
body.starry-site .hover\:bg-white\/5:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

body.starry-site .border-cream-dark,
body.starry-site .border-navy,
body.starry-site .divide-cream-dark > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Header / footer stay deep navy; slightly more see-through so stars peek through. */
body.starry-site > header.bg-navy\/95,
body.starry-site header.sticky {
  background-color: rgba(5, 6, 15, 0.88);
}
body.starry-site #mobileNav.bg-navy {
  background-color: #05060f;
}
body.starry-site > footer,
body.starry-site footer.bg-navy-deep {
  background-color: #080916;
  color: #d2d4de;
}

body.starry-site .btn-outline {
  border-color: rgba(230, 199, 122, 0.55);
  color: #f5f6fa;
  background-color: transparent;
}
body.starry-site .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #f5f6fa;
  border-color: #e6c77a;
}
body.starry-site .btn-navy {
  background-color: #1c2b5a;
  color: #fbf6ea;
}
body.starry-site .btn-navy:hover {
  background-color: #2a3d74;
}

/* WhatsApp green: white text must meet WCAG AA (~4.5:1). #157a3d on white ≈ 4.7:1. */
body.starry-site .bg-wa,
body.starry-site a.bg-wa {
  background-color: #157a3d;
  color: #fff;
}
body.starry-site a.bg-wa:hover,
body.starry-site .bg-wa:hover,
body.starry-site a.hover\:bg-\[\#0E5A30\]:hover {
  background-color: #0f6a33;
  color: #fff;
}
body.starry-site .text-wa {
  color: #5ee092;
}

/* --- Forms --- */
body.starry-site .field,
body.starry-site input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="image"]),
body.starry-site select,
body.starry-site textarea {
  background-color: #0d0e16;
  color: #f5f6fa;
  border-color: rgba(255, 255, 255, 0.2);
  color-scheme: dark;
}
body.starry-site .field::placeholder,
body.starry-site input::placeholder,
body.starry-site textarea::placeholder {
  color: #b4b7c5;
  opacity: 1;
}
body.starry-site .field:focus,
body.starry-site input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
body.starry-site select:focus,
body.starry-site textarea:focus {
  border-color: #d4a84b;
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.4);
  outline: none;
}
body.starry-site input[type="checkbox"],
body.starry-site input[type="radio"] {
  accent-color: #d4a84b;
}
body.starry-site option {
  background-color: #141418;
  color: #f5f6fa;
}

/* Official Google button stays white; do not restyle. */
body.starry-site .google-login-btn {
  background-color: #fff !important;
  color: #1f1f1f !important;
  border-color: #747775 !important;
}

/* --- Alerts, badges, tables --- */
body.starry-site .bg-green-50,
body.starry-site .bg-green-100 {
  background-color: #143626;
  border-color: #2f6b4a;
  color: #c8f0d6;
}
body.starry-site .text-green-900,
body.starry-site .border-green-200 {
  color: #c8f0d6;
  border-color: #2f6b4a;
}
body.starry-site .bg-red-50,
body.starry-site .bg-red-100 {
  background-color: #3a1518;
  border-color: #8a3a40;
  color: #ffc4c4;
}
body.starry-site .border-red-200,
body.starry-site .border-red-300 {
  border-color: #8a3a40;
}
body.starry-site .bg-amber-50,
body.starry-site .bg-amber-100 {
  background-color: #3a2a10;
  border-color: #8a6a1f;
  color: #ffe4a8;
}
body.starry-site .text-amber-900,
body.starry-site .border-amber-200 {
  color: #ffe4a8;
  border-color: #8a6a1f;
}
body.starry-site .bg-blue-100,
body.starry-site .bg-emerald-100 {
  background-color: #14304a;
  color: #d0e8ff;
}
body.starry-site .text-blue-900,
body.starry-site .text-emerald-900 {
  color: #d0e8ff;
}
body.starry-site .bg-gray-100 {
  background-color: #2a2b33;
  color: #ececf1;
}
body.starry-site .badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.starry-site .admin-table th {
  background-color: rgba(255, 255, 255, 0.08);
  color: #f5f6fa;
}
body.starry-site .admin-table td {
  border-color: rgba(255, 255, 255, 0.12);
  color: #e6e7ee;
}

/* Illustration captions + product images stay readable on dark cards. */
body.starry-site img {
  background-color: rgba(255, 255, 255, 0.04);
}
body.starry-site header img,
body.starry-site footer img {
  background-color: transparent;
}

/* Sticky bottom CTAs (puja book) already use fixed; keep them above the sky. */
body.starry-site .fixed.z-50 {
  background-color: rgba(5, 6, 15, 0.94);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Links in muted body copy */
body.starry-site a.underline,
body.starry-site .prose a {
  color: #e6c77a;
}

/* Pagination / lists inherited from Laravel */
body.starry-site nav[role="navigation"] a,
body.starry-site nav[role="navigation"] span {
  color: #f5f6fa;
}


/* Blog article body (allowlisted HTML) */
body.starry-site .blog-body h2 {
  font-family: "Cinzel", "Tiro Devanagari Hindi", serif;
  font-size: 1.5rem;
  color: #e6c77a;
  margin: 1.75rem 0 0.75rem;
}
body.starry-site .blog-body h3 {
  font-family: "Cinzel", "Tiro Devanagari Hindi", serif;
  font-size: 1.2rem;
  color: #e6c77a;
  margin: 1.4rem 0 0.6rem;
}
body.starry-site .blog-body p { margin: 0.85rem 0; }
body.starry-site .blog-body ul,
body.starry-site .blog-body ol { margin: 0.85rem 0 0.85rem 1.25rem; }
body.starry-site .blog-body li { margin: 0.25rem 0; }
body.starry-site .blog-body a { color: #e6c77a; text-decoration: underline; }
body.starry-site .blog-body blockquote {
  border-left: 3px solid #e6c77a;
  padding-left: 1rem;
  margin: 1rem 0;
  color: rgba(245, 246, 250, 0.8);
}
body.starry-site .blog-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
body.starry-site .blog-body th,
body.starry-site .blog-body td {
  border: 1px solid rgba(230, 199, 122, 0.3);
  padding: 0.4rem 0.6rem;
  text-align: left;
}
