/*
 * ParkingHawker light theme layer.
 * The inner pages were built with a dark palette (text-white, bg-white/5, glass-card ...).
 * Inside <main class="theme-light"> this file maps that palette onto the new light UI
 * (white surfaces, navy text #0B1F44, blue accent #1A6DFF) without rebuilding Tailwind.
 * Plain (un-layered) CSS wins over Tailwind's @layer utilities, so no !important is needed
 * except where Tailwind itself uses it.
 * Opt out for a block (e.g. a dark photo banner) with class "theme-keep".
 */

.theme-light {
  --ph-navy: #0B1F44;
  --ph-blue: #1A6DFF;
  --ph-blue-dark: #0F5BE0;
  --ph-tint: #EEF5FF;
  --ph-soft: #F5F8FD;
  --ph-line: #E2E8F0;
  --ph-muted: #475569;
  --ph-faint: #64748B;
  background: #fff;
  color: var(--ph-navy);
}

/* ---------- Text ---------- */
.theme-light .text-white,
.theme-light .text-slate-100,
.theme-light .text-neutral-100 { color: var(--ph-navy); }
.theme-light .text-neutral-200,
.theme-light .text-neutral-300,
.theme-light .text-slate-300 { color: #334155; }
.theme-light .text-neutral-400,
.theme-light .text-slate-400 { color: var(--ph-muted); }
.theme-light .text-neutral-500 { color: var(--ph-faint); }
.theme-light .text-neutral-600,
.theme-light .text-neutral-700 { color: #94A3B8; }
.theme-light .text-white\/80,
.theme-light .text-white\/70,
.theme-light .text-white\/60 { color: var(--ph-muted); }
.theme-light .text-brand-cyan,
.theme-light .text-\[\#06b6d4\] { color: var(--ph-blue); }
.theme-light .text-brand-purple { color: #6D28D9; }
.theme-light .text-brand-accent { color: #047857; }
.theme-light .text-yellow-400 { color: #F59E0B; }
.theme-light .text-red-400 { color: #DC2626; }
.theme-light .text-dark-primary { color: var(--ph-navy); }

.theme-light .text-gradient-cyan-purple,
.theme-light .bg-clip-text.text-transparent {
  background-image: linear-gradient(135deg, #1A6DFF 0%, #4C9BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.theme-light .hover\:text-white:hover,
.theme-light .group:hover .group-hover\:text-white,
.theme-light .hover\:text-brand-cyan:hover,
.theme-light .group:hover .group-hover\:text-brand-cyan { color: var(--ph-blue); }

.theme-light .placeholder-neutral-500::placeholder,
.theme-light .placeholder-neutral-600::placeholder,
.theme-light .placeholder\:text-neutral-600::placeholder,
.theme-light input::placeholder,
.theme-light textarea::placeholder { color: #94A3B8; }

/* ---------- Surfaces ---------- */
.theme-light .glass-card,
.theme-light .glass-panel {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid var(--ph-line);
  box-shadow: 0 6px 24px -12px rgba(10, 42, 94, 0.18);
}
.theme-light .glass-card:hover { border-color: #BFD6FF; box-shadow: 0 14px 34px -14px rgba(10, 42, 94, 0.28); }

.theme-light .bg-white\/5,
.theme-light .bg-white\/10,
.theme-light .bg-white\/\[0\.01\],
.theme-light .bg-white\/\[0\.02\],
.theme-light .bg-white\/\[0\.025\],
.theme-light .bg-white\/\[0\.03\],
.theme-light .bg-white\/\[0\.04\] { background-color: #fff; }

.theme-light .bg-dark-primary,
.theme-light .bg-dark-secondary,
.theme-light .bg-dark-tertiary,
.theme-light .bg-dark-secondary\/40,
.theme-light .bg-dark-secondary\/20,
.theme-light .bg-dark-primary\/60 { background-color: var(--ph-soft); }
.theme-light .bg-dark-primary\/80,
.theme-light .bg-dark-primary\/95 { background-color: rgba(255, 255, 255, 0.92); }

.theme-light .hover\:bg-white\/5:hover,
.theme-light .hover\:bg-white\/10:hover { background-color: var(--ph-tint); }

/* Form controls placed on dark fills */
.theme-light input.bg-dark-primary,
.theme-light select.bg-dark-primary,
.theme-light select.bg-dark-secondary,
.theme-light textarea.bg-dark-primary,
.theme-light input.bg-white\/5,
.theme-light textarea.bg-white\/5,
.theme-light .glass-input { background-color: #fff; color: var(--ph-navy); border-color: #CBD5E1; }
.theme-light .glass-input:focus,
.theme-light .focus\:border-brand-cyan:focus { border-color: var(--ph-blue); }

/* ---------- Borders ---------- */
.theme-light .border-white\/5,
.theme-light .border-white\/8,
.theme-light .border-white\/10,
.theme-light .border-white\/15,
.theme-light .border-white\/20,
.theme-light .border-dark-primary { border-color: var(--ph-line); }
.theme-light .hover\:border-white\/15:hover,
.theme-light .hover\:border-white\/30:hover,
.theme-light .hover\:border-white\/35:hover { border-color: #CBD5E1; }
.theme-light .divide-white\/5 > :not(:last-child) { border-color: var(--ph-line); }
.theme-light .border-brand-cyan\/20,
.theme-light .border-brand-cyan\/25,
.theme-light .border-brand-cyan\/30,
.theme-light .hover\:border-brand-cyan\/30:hover,
.theme-light .hover\:border-brand-cyan\/40:hover { border-color: #BFD6FF; }
.theme-light .border-brand-cyan { border-color: var(--ph-blue); }

/* ---------- Accent fills & buttons ---------- */
.theme-light .bg-brand-cyan { background-color: var(--ph-blue); color: #fff; }
.theme-light .hover\:bg-brand-cyan\/95:hover,
.theme-light .hover\:bg-brand-cyan\/90:hover { background-color: var(--ph-blue-dark); }
.theme-light .bg-brand-cyan\/5,
.theme-light .bg-brand-cyan\/10,
.theme-light .bg-brand-cyan\/20 { background-color: var(--ph-tint); }
.theme-light .bg-brand-purple\/10 { background-color: #F3EEFF; }
.theme-light .bg-brand-accent\/10 { background-color: #ECFDF5; }

.theme-light .bg-gradient-to-r.from-brand-cyan,
.theme-light .bg-gradient-to-br.from-brand-cyan {
  background-image: linear-gradient(90deg, var(--ph-blue), var(--ph-blue-dark));
}

/* Text on a solid blue / gradient button stays white */
.theme-light .bg-brand-cyan,
.theme-light .bg-brand-cyan *,
.theme-light .bg-brand-purple,
.theme-light .bg-brand-purple *,
.theme-light .bg-brand-accent,
.theme-light .bg-brand-accent *,
.theme-light .from-brand-cyan.bg-gradient-to-r,
.theme-light .from-brand-cyan.bg-gradient-to-r *,
.theme-light .bg-\[\#1A6DFF\],
.theme-light .bg-\[\#1A6DFF\] * { color: #fff; }

/* White buttons ("bg-white text-dark-primary") become blue outline buttons */
.theme-light a.bg-white.text-dark-primary,
.theme-light button.bg-white.text-dark-primary {
  background: var(--ph-blue);
  color: #fff;
}
.theme-light a.bg-white.text-dark-primary:hover,
.theme-light button.bg-white.text-dark-primary:hover { background: var(--ph-blue-dark); }

/* Heavy dark shadows look muddy on white */
.theme-light .shadow-2xl { box-shadow: 0 20px 45px -20px rgba(10, 42, 94, 0.28); }

/* Decorative blurred glows: keep very soft */
.theme-light [class*="blur-["] { opacity: 0.35; }

/* ---------- Dark banners (photo heroes) become navy banners with white text ----------
 * Matches the old dark heroes (inline #04060d gradient), image cards with a dark overlay,
 * and anything marked .theme-keep. */
.theme-light [style*="#04060d"] {
  background: linear-gradient(135deg, #071D45 0%, #0A2A5E 60%, #0B3A80 100%) !important;
}
.theme-light [style*="#04060d"] .from-\[\#04060d\] {
  background-image: linear-gradient(to top, #071D45, rgba(7, 29, 69, 0.7), rgba(7, 29, 69, 0));
}
.theme-light .theme-keep,
.theme-light [style*="#04060d"],
.theme-light :has(> [class*="from-dark-primary"]),
.theme-light :has(> [class*="from-\[\#04060d\]"]) { color: #fff; }

.theme-light :is(.theme-keep, [style*="#04060d"], :has(> [class*="from-dark-primary"]), :has(> [class*="from-\[\#04060d\]"])) :is(.text-white, .text-slate-100, .text-neutral-100, .text-neutral-200) { color: #fff; }
.theme-light :is(.theme-keep, [style*="#04060d"], :has(> [class*="from-dark-primary"]), :has(> [class*="from-\[\#04060d\]"])) :is(.text-neutral-300, .text-slate-300) { color: rgba(255, 255, 255, 0.88); }
.theme-light :is(.theme-keep, [style*="#04060d"], :has(> [class*="from-dark-primary"]), :has(> [class*="from-\[\#04060d\]"])) :is(.text-neutral-400, .text-neutral-500, .text-neutral-600, .text-slate-400) { color: rgba(255, 255, 255, 0.72); }
.theme-light :is(.theme-keep, [style*="#04060d"]) .text-brand-cyan { color: #6FB1FF; }
.theme-light :is(.theme-keep, [style*="#04060d"]) :is(.bg-white\/5, .bg-white\/10, .bg-white\/\[0\.03\], .bg-white\/\[0\.04\]) { background-color: rgba(255, 255, 255, 0.1); }
.theme-light :is(.theme-keep, [style*="#04060d"]) :is(.border-white\/5, .border-white\/10, .border-white\/15, .border-white\/20) { border-color: rgba(255, 255, 255, 0.2); }
.theme-light :is(.theme-keep, [style*="#04060d"]) .hover\:text-brand-cyan:hover { color: #9CCBFF; }
.theme-light :has(> [class*="from-dark-primary"]) > [class*="from-dark-primary"] {
  background-image: linear-gradient(to top, rgba(7, 29, 69, 0.92), rgba(7, 29, 69, 0.45), rgba(7, 29, 69, 0));
}

/* Scrollbars */
.theme-light ::-webkit-scrollbar-track { background: #F1F5F9; }
.theme-light ::-webkit-scrollbar-thumb { background: #CBD5E1; }
