/*
 * wildfire.css — AllFirefighter Wildfire Platform
 * Replaces Tailwind CDN. Scoped to #wildfire-app and .wf-* utilities.
 * Zero conflict with Bootstrap navbar.
 */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  --fire-50:  #fff1f2;
  --fire-100: #ffe4e6;
  --fire-300: #fda4af;
  --fire-400: #fb7185;
  --fire-500: #f43f5e;
  --fire-600: #e11d48;
  --fire-900: #881337;
  --dark-700: #272b36;
  --dark-800: #1a1d24;
  --dark-900: #0f1115;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --orange-400: #fb923c;
  --orange-500: #f97316;
}

/* ── Base wrapper ───────────────────────────────────────── */
#wildfire-app {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--dark-900);
  color: var(--gray-200);
  min-height: 100vh;
  margin-top: -1rem;
  padding-bottom: 3rem;
}

/* ── Shared components ──────────────────────────────────── */
#wildfire-app .glass-panel {
  background: rgba(26, 29, 36, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
}
#wildfire-app .alert-panel {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
}
#wildfire-app .text-glow {
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}
#wildfire-app .hover-scale {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
#wildfire-app .hover-scale:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
#wildfire-app .search-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
#wildfire-app .search-result {
  background: rgba(26,29,36,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}

/* ── Reset only inside wildfire-app ────────────────────── */
#wildfire-app h1, #wildfire-app h2, #wildfire-app h3,
#wildfire-app h4, #wildfire-app p { margin-bottom: 0; }
#wildfire-app a { text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */
#wildfire-app .wf-container  { max-width: 80rem; margin-left: auto; margin-right: auto; }
#wildfire-app .wf-container-md { max-width: 56rem; margin-left: auto; margin-right: auto; }
#wildfire-app .wf-container-sm { max-width: 42rem; margin-left: auto; margin-right: auto; }
#wildfire-app .wf-px  { padding-left: 1rem; padding-right: 1rem; }
#wildfire-app .wf-section { padding-top: 2rem; padding-bottom: 2rem; }

/* grid */
#wildfire-app .wf-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
#wildfire-app .wf-grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) {
  #wildfire-app .wf-grid   { grid-template-columns: 2fr 1fr; }
  #wildfire-app .wf-grid-2 { grid-template-columns: 1fr 1fr; }
  #wildfire-app .wf-col-span-2 { grid-column: span 2; }
}

/* flex helpers */
#wildfire-app .wf-flex        { display: flex; }
#wildfire-app .wf-flex-col    { display: flex; flex-direction: column; }
#wildfire-app .wf-flex-wrap   { flex-wrap: wrap; }
#wildfire-app .wf-items-center { align-items: center; }
#wildfire-app .wf-items-end    { align-items: flex-end; }
#wildfire-app .wf-items-start  { align-items: flex-start; }
#wildfire-app .wf-justify-between { justify-content: space-between; }
#wildfire-app .wf-justify-center  { justify-content: center; }
#wildfire-app .wf-flex-1 { flex: 1; }
#wildfire-app .wf-grow   { flex-grow: 1; }
#wildfire-app .wf-inline-flex  { display: inline-flex; }
#wildfire-app .wf-inline-block { display: inline-block; }
#wildfire-app .wf-block  { display: block; }

@media (min-width: 768px) {
  #wildfire-app .wf-md-flex-row { flex-direction: row; }
  #wildfire-app .wf-md-items-center { align-items: center; }
}

/* spacing gaps */
#wildfire-app .wf-gap-1 { gap: 0.25rem; }
#wildfire-app .wf-gap-2 { gap: 0.5rem; }
#wildfire-app .wf-gap-3 { gap: 0.75rem; }
#wildfire-app .wf-gap-4 { gap: 1rem; }
#wildfire-app .wf-gap-6 { gap: 1.5rem; }
#wildfire-app .wf-gap-8 { gap: 2rem; }

/* space-y */
#wildfire-app .wf-space-y-4 > * + * { margin-top: 1rem; }
#wildfire-app .wf-space-y-6 > * + * { margin-top: 1.5rem; }
#wildfire-app .wf-space-y-8 > * + * { margin-top: 2rem; }

/* ── Spacing helpers ────────────────────────────────────── */
#wildfire-app .wf-p-2  { padding: 0.5rem; }
#wildfire-app .wf-p-3  { padding: 0.75rem; }
#wildfire-app .wf-p-4  { padding: 1rem; }
#wildfire-app .wf-p-5  { padding: 1.25rem; }
#wildfire-app .wf-p-6  { padding: 1.5rem; }
#wildfire-app .wf-p-8  { padding: 2rem; }
#wildfire-app .wf-px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
#wildfire-app .wf-px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
#wildfire-app .wf-px-4 { padding-left: 1rem; padding-right: 1rem; }
#wildfire-app .wf-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
#wildfire-app .wf-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
#wildfire-app .wf-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
#wildfire-app .wf-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
#wildfire-app .wf-py-8 { padding-top: 2rem; padding-bottom: 2rem; }
#wildfire-app .wf-py-10{ padding-top: 2.5rem; padding-bottom: 2.5rem; }
#wildfire-app .wf-py-12{ padding-top: 3rem; padding-bottom: 3rem; }
#wildfire-app .wf-pb-2 { padding-bottom: 0.5rem; }
#wildfire-app .wf-pb-3 { padding-bottom: 0.75rem; }
#wildfire-app .wf-pb-12{ padding-bottom: 3rem; }
#wildfire-app .wf-pt-4 { padding-top: 1rem; }
#wildfire-app .wf-pl-3 { padding-left: 0.75rem; }
#wildfire-app .wf-pl-4 { padding-left: 1rem; }
#wildfire-app .wf-pl-6 { padding-left: 1.5rem; }
#wildfire-app .wf-mb-1 { margin-bottom: 0.25rem; }
#wildfire-app .wf-mb-2 { margin-bottom: 0.5rem; }
#wildfire-app .wf-mb-4 { margin-bottom: 1rem; }
#wildfire-app .wf-mb-6 { margin-bottom: 1.5rem; }
#wildfire-app .wf-mb-8 { margin-bottom: 2rem; }
#wildfire-app .wf-mt-1 { margin-top: 0.25rem; }
#wildfire-app .wf-mt-2 { margin-top: 0.5rem; }
#wildfire-app .wf-mt-3 { margin-top: 0.75rem; }
#wildfire-app .wf-ml-2 { margin-left: 0.5rem; }
#wildfire-app .wf-ml-4 { margin-left: 1rem; }
#wildfire-app .wf-mx-auto { margin-left: auto; margin-right: auto; }

/* ── Sizing ─────────────────────────────────────────────── */
#wildfire-app .wf-w-full   { width: 100%; }
#wildfire-app .wf-h-full   { height: 100%; }
#wildfire-app .wf-min-h-screen { min-height: 100vh; }
#wildfire-app .wf-h-64     { height: 16rem; }
#wildfire-app .wf-h-600    { height: 600px; }
#wildfire-app .wf-min-w-100 { min-width: 100px; }
#wildfire-app .wf-min-w-120 { min-width: 120px; }
#wildfire-app .wf-w-2  { width: 0.5rem; }
#wildfire-app .wf-w-3  { width: 0.75rem; }
#wildfire-app .wf-h-2  { height: 0.5rem; }
#wildfire-app .wf-h-3  { height: 0.75rem; }

/* ── Typography ─────────────────────────────────────────── */
#wildfire-app .wf-text-xs  { font-size: 0.75rem; line-height: 1rem; }
#wildfire-app .wf-text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
#wildfire-app .wf-text-base{ font-size: 1rem; line-height: 1.5rem; }
#wildfire-app .wf-text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
#wildfire-app .wf-text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
#wildfire-app .wf-text-2xl { font-size: 1.5rem; line-height: 2rem; }
#wildfire-app .wf-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
#wildfire-app .wf-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
@media (min-width: 768px) {
  #wildfire-app .wf-md-text-5xl { font-size: 3rem; line-height: 1; }
}
#wildfire-app .wf-font-black  { font-weight: 900; }
#wildfire-app .wf-font-bold   { font-weight: 700; }
#wildfire-app .wf-font-medium { font-weight: 500; }
#wildfire-app .wf-font-normal { font-weight: 400; }
#wildfire-app .wf-uppercase   { text-transform: uppercase; }
#wildfire-app .wf-italic      { font-style: italic; }
#wildfire-app .wf-text-center { text-align: center; }
#wildfire-app .wf-leading-relaxed { line-height: 1.625; }
#wildfire-app .wf-tracking-tight   { letter-spacing: -0.025em; }
#wildfire-app .wf-tracking-wider   { letter-spacing: 0.05em; }
#wildfire-app .wf-tracking-widest  { letter-spacing: 0.1em; }

/* ── Colors ─────────────────────────────────────────────── */
#wildfire-app .wf-text-white    { color: #ffffff; }
#wildfire-app .wf-text-gray-200 { color: var(--gray-200); }
#wildfire-app .wf-text-gray-300 { color: var(--gray-300); }
#wildfire-app .wf-text-gray-400 { color: var(--gray-400); }
#wildfire-app .wf-text-gray-500 { color: var(--gray-500); }
#wildfire-app .wf-text-gray-600 { color: var(--gray-600); }
#wildfire-app .wf-text-fire-100 { color: var(--fire-100); }
#wildfire-app .wf-text-fire-300 { color: var(--fire-300); }
#wildfire-app .wf-text-fire-400 { color: var(--fire-400); }
#wildfire-app .wf-text-fire-500 { color: var(--fire-500); }
#wildfire-app .wf-text-emerald-400 { color: var(--emerald-400); }
#wildfire-app .wf-text-emerald-500 { color: var(--emerald-500); }
#wildfire-app .wf-text-orange-500  { color: var(--orange-500); }
#wildfire-app .wf-text-red-500     { color: #ef4444; }

/* bg colors */
#wildfire-app .wf-bg-dark-900  { background-color: var(--dark-900); }
#wildfire-app .wf-bg-dark-800  { background-color: var(--dark-800); }
#wildfire-app .wf-bg-dark-700  { background-color: var(--dark-700); }
#wildfire-app .wf-bg-gray-800  { background-color: var(--gray-800); }
#wildfire-app .wf-bg-gray-900  { background-color: var(--gray-900); }
#wildfire-app .wf-bg-fire-500  { background-color: var(--fire-500); }
#wildfire-app .wf-bg-fire-600  { background-color: var(--fire-600); }
#wildfire-app .wf-bg-fire-900-40 { background-color: rgba(136,19,55,0.4); }
#wildfire-app .wf-bg-fire-900-50 { background-color: rgba(136,19,55,0.5); }
#wildfire-app .wf-bg-fire-600-10 { background-color: rgba(225,29,72,0.1); }

/* gradient text */
#wildfire-app .wf-gradient-fire {
  background: linear-gradient(to right, var(--fire-500), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#wildfire-app .wf-gradient-orange {
  background: linear-gradient(to right, var(--orange-400), var(--fire-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Borders ────────────────────────────────────────────── */
#wildfire-app .wf-border       { border: 1px solid; }
#wildfire-app .wf-border-b     { border-bottom: 1px solid; }
#wildfire-app .wf-border-t     { border-top: 1px solid; }
#wildfire-app .wf-border-l-2   { border-left: 2px solid; }
#wildfire-app .wf-border-gray-700  { border-color: var(--gray-700); }
#wildfire-app .wf-border-gray-800  { border-color: var(--gray-800); }
#wildfire-app .wf-border-fire-500  { border-color: var(--fire-500); }
#wildfire-app .wf-border-fire-500-30 { border-color: rgba(244,63,94,0.3); }
#wildfire-app .wf-border-red-900-30  { border-color: rgba(127,29,29,0.3); }
#wildfire-app .wf-rounded      { border-radius: 0.25rem; }
#wildfire-app .wf-rounded-lg   { border-radius: 0.5rem; }
#wildfire-app .wf-rounded-xl   { border-radius: 0.75rem; }
#wildfire-app .wf-rounded-2xl  { border-radius: 1rem; }
#wildfire-app .wf-rounded-full { border-radius: 9999px; }

/* ── Positioning ────────────────────────────────────────── */
#wildfire-app .wf-relative   { position: relative; }
#wildfire-app .wf-absolute   { position: absolute; }
#wildfire-app .wf-sticky     { position: sticky; }
#wildfire-app .wf-top-0      { top: 0; }
#wildfire-app .wf-top-24     { top: 6rem; }
#wildfire-app .wf-top-15     { top: 1.5rem; }
#wildfire-app .wf-left-0     { left: 0; }
#wildfire-app .wf-right-0    { right: 0; }
#wildfire-app .wf-inset-0    { inset: 0; }
#wildfire-app .wf-z-0        { z-index: 0; }
#wildfire-app .wf-z-10       { z-index: 10; }
#wildfire-app .wf-overflow-hidden { overflow: hidden; }
#wildfire-app .wf-pointer-events-none { pointer-events: none; }

/* ── Effects ────────────────────────────────────────────── */
#wildfire-app .wf-shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
#wildfire-app .wf-shadow-fire { box-shadow: 0 0 8px rgba(244,63,94,0.8); }
#wildfire-app .wf-transition-colors    { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
#wildfire-app .wf-transition-transform { transition: transform 0.15s ease; }

/* blur glow orbs (decorative) */
#wildfire-app .wf-glow-orb {
  border-radius: 9999px;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ── Pulse animation ────────────────────────────────────── */
@keyframes wf-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
#wildfire-app .wf-pulse { animation: wf-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ── Hover states ───────────────────────────────────────── */
#wildfire-app .wf-hover-fire:hover  { color: var(--fire-500); }
#wildfire-app .wf-hover-fire4:hover { color: var(--fire-400); }
#wildfire-app .wf-hover-white:hover { color: #fff; }
#wildfire-app .wf-hover-scale105:hover { transform: scale(1.05); }
#wildfire-app .wf-hover-bg-gray:hover  { background-color: var(--gray-700); }
#wildfire-app .wf-hover-bg-fire:hover  { background-color: var(--fire-500); }

/* ── Group hover ────────────────────────────────────────── */
#wildfire-app .wf-group:hover .wf-group-text-fire { color: var(--fire-500); }

/* ── Timeline dot ───────────────────────────────────────── */
#wildfire-app .wf-timeline-dot {
  width: 0.75rem; height: 0.75rem;
  background: var(--fire-500);
  border-radius: 9999px;
  position: absolute;
  left: -7px; top: 0.375rem;
  box-shadow: 0 0 8px rgba(244,63,94,0.8);
}
#wildfire-app .wf-timeline-line {
  position: relative;
  border-left: 2px solid var(--gray-800);
  margin-left: 1rem;
}
#wildfire-app .wf-timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

/* ── Focus ──────────────────────────────────────────────── */
#wildfire-app .wf-focus-none:focus { outline: none; }

/* ── Stat cards ─────────────────────────────────────────── */
#wildfire-app .wf-stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 100px; padding: 1rem;
  border-radius: 1rem;
}

/* ── Arbitrary-value utility classes (bracket notation) ──────────────── */
/* These were referenced in markup as Tailwind-style arbitrary values but
   never had real CSS backing them; adding literal rules here fixes
   layout bugs (timeline dot overlap, stat card sizing, hero blur glow). */
#wildfire-app .wf-blur-\[120px\] { filter: blur(120px); }
#wildfire-app .wf-blur-\[150px\] { filter: blur(150px); }
#wildfire-app .wf-h-\[150\%\] { height: 150%; }
#wildfire-app .wf-h-\[200\%\] { height: 200%; }
#wildfire-app .wf-h-\[600px\] { height: 600px; }
#wildfire-app .wf-h-\[800px\] { height: 800px; }
#wildfire-app .wf-min-w-\[100px\] { min-width: 100px; }
#wildfire-app .wf-min-w-\[120px\] { min-width: 120px; }
#wildfire-app .wf-min-w-\[70px\] { min-width: 70px; }
#wildfire-app .wf-neg-left-\[7px\] { left: -7px; }
#wildfire-app .wf-neg-right-\[10\%\] { right: -10%; }
#wildfire-app .wf-neg-right-\[20\%\] { right: -20%; }
#wildfire-app .wf-neg-top-\[20\%\] { top: -20%; }
#wildfire-app .wf-neg-top-\[50\%\] { top: -50%; }
#wildfire-app .wf-shadow-\[0_0_8px_rgba\(244\,63\,94\,0\.8\)\] { box-shadow: 0 0 8px rgba(244,63,94,0.8); }
#wildfire-app .wf-w-\[50\%\] { width: 50%; }
#wildfire-app .wf-w-\[80\%\] { width: 80%; }
#wildfire-app .wf-w-\[800px\] { width: 800px; }


/* ── Slash-notation (opacity/fraction) utility classes ────────────────── */
/* Same root cause as the bracket-notation fix above: these were never
   given real CSS, so colors/positioning silently did nothing. */
#wildfire-app .wf-bg-fire-600\/10 { background-color: rgba(244, 63, 94, 0.14); }
#wildfire-app .wf-bg-fire-900\/40 { background-color: rgba(136, 19, 55, 0.40); }
#wildfire-app .wf-bg-fire-900\/50 { background-color: rgba(136, 19, 55, 0.50); }
#wildfire-app .wf-bg-gray-800\/60 { background-color: rgba(31, 41, 55, 0.60); }
#wildfire-app .wf-border-fire-500\/30 { border-color: rgba(244, 63, 94, 0.30); }
#wildfire-app .wf-border-gray-700\/50 { border-color: rgba(55, 65, 81, 0.50); }
#wildfire-app .wf-border-red-900\/30 { border-color: rgba(136, 19, 55, 0.30); }
#wildfire-app .wf-text-emerald-500\/70 { color: rgba(16, 185, 129, 0.70); }
#wildfire-app .wf-text-fire-500\/70 { color: rgba(244, 63, 94, 0.70); }
#wildfire-app .wf-left-1\/2 { left: 50%; }
#wildfire-app .wf-neg-top-1\/2 { top: -50%; }
#wildfire-app .wf-neg-translate-x-1\/2 { transform: translateX(-50%); }
#wildfire-app .wf-flex-wrap { flex-wrap: wrap; }
