/* ============================================================
   Task #1517997: Visual QA Batch A — Homepage, Pricing,
   Settlements Directory, Settlement Detail (375px + 1440px)

   SCOPE: Fix CSS issues identified during visual audit.

   Fixes:
   1. Homepage: hp-unclaimed section invisible (white-on-white)
   2. Global trust bar: overflow clipping at 375px mobile
   3. Settlement detail: view-gate modals stacking (hide by default)
   4. Settlements directory: drawer row label/value spacing
   ============================================================ */


/* ── 1. HOMEPAGE: hp-unclaimed section — force dark bg + white text ─────
   The CSS cascade war between 11+ files caused the dark background
   to be overridden to white while text remained white = invisible.
   This rule uses maximum specificity to guarantee dark bg + white text.
   ────────────────────────────────────────────────────────────────────── */

html body section.hp-unclaimed {
  background: #0A0A0A !important;
  color: #FFFFFF !important;
}

html body section.hp-unclaimed .hp-unclaimed__inner {
  background: transparent !important;
  color: #FFFFFF !important;
}

html body section.hp-unclaimed .hp-unclaimed__eyebrow {
  color: rgba(255, 255, 255, 0.7) !important;
}

html body section.hp-unclaimed .hp-unclaimed__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e !important;
  margin-right: 0.4rem;
  animation: hp-unclaimed-pulse 2s ease-in-out infinite;
}

@keyframes hp-unclaimed-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

html body section.hp-unclaimed .hp-unclaimed__number {
  color: #FFFFFF !important;
  font-family: 'Fraunces', Georgia, serif !important;
  font-weight: 900 !important;
  font-size: clamp(3rem, 10vw, 5.5rem) !important;
  display: block !important;
  line-height: 1.1 !important;
  margin: 1rem 0 0.5rem !important;
}

html body section.hp-unclaimed .hp-unclaimed__label {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 1.1rem !important;
  line-height: 1.5 !important;
}

html body section.hp-unclaimed .hp-unclaimed__label strong {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

/* Category breakdown pills */
html body section.hp-unclaimed .hp-unclaimed__breakdown {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 1.5rem 0 !important;
}

html body section.hp-unclaimed .hp-unclaimed__pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 100px !important;
  white-space: nowrap !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

html body section.hp-unclaimed .hp-unclaimed__pill-dot {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  min-width: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

/* CTA button */
html body section.hp-unclaimed .hp-unclaimed__cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  background: #FFFFFF !important;
  color: #0A0A0A !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 0.85rem 2rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  margin-top: 1.5rem !important;
  min-height: 44px !important;
  transition: background 0.2s, transform 0.15s !important;
}

html body section.hp-unclaimed .hp-unclaimed__cta:hover {
  background: #f0fdf4 !important;
  transform: translateY(-1px) !important;
}

html body section.hp-unclaimed .hp-unclaimed__cta svg {
  stroke: #0A0A0A !important;
}

/* Mobile adjustments for hp-unclaimed */
@media (max-width: 768px) {
  html body section.hp-unclaimed {
    padding: 2.5rem 1rem !important;
  }

  html body section.hp-unclaimed .hp-unclaimed__number {
    font-size: clamp(2.5rem, 12vw, 4rem) !important;
  }

  html body section.hp-unclaimed .hp-unclaimed__breakdown {
    gap: 0.4rem !important;
  }

  html body section.hp-unclaimed .hp-unclaimed__pill {
    font-size: 0.78rem !important;
    padding: 0.35rem 0.7rem !important;
  }
}


/* ── 2. GLOBAL TRUST BAR: prevent overflow clipping at 375px ───────────
   The .sr-gtb has inline overflow:hidden + flex-wrap:nowrap which clips
   items at narrow widths. Override to allow wrapping on mobile.
   ────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .sr-gtb {
    overflow: visible !important;
  }

  .sr-gtb > div {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  /* Trust bar items: allow wrapping, reduce padding on mobile */
  .sr-gtb > div > a,
  .sr-gtb > div > span {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 1 !important;
    white-space: nowrap !important;
  }

  /* Remove bottom border from last row */
  .sr-gtb > div > *:last-child {
    border-bottom: none !important;
  }
}

/* Ensure trust bar doesn't cause horizontal scroll on any page */
@media (max-width: 480px) {
  .sr-gtb > div > a,
  .sr-gtb > div > span {
    padding: 5px 8px !important;
    font-size: 0.68rem !important;
  }
}


/* ── 3. SETTLEMENT DETAIL: hide view-gate modals by default ────────────
   All three view-gate elements (soft banner, firm modal, hard gate)
   are in the HTML but should only show when JavaScript reveals them.
   Default to hidden; JS sets display via inline style when triggered.
   Using plain CSS (no !important) so JS inline styles can override.
   ────────────────────────────────────────────────────────────────────── */

#sr-view-soft-banner {
  display: none;
}

#sr-view-firm-backdrop {
  display: none;
}

#sr-view-hard-gate {
  display: none;
}


/* ── 4. SETTLEMENTS DIRECTORY: drawer row label/value spacing ──────────
   The sr2-drawer-row has label and value spans side-by-side without
   any gap between them, causing "CategoryTechnology" concatenation.
   ────────────────────────────────────────────────────────────────────── */

.sr2-drawer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 0.75rem;
}

.sr2-drawer-row:last-child {
  border-bottom: none;
}

.sr2-drawer-row-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  flex-shrink: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.sr2-drawer-row-val {
  font-size: 0.78rem;
  font-weight: 500;
  color: #1f2a37;
  text-align: right;
  font-family: 'DM Sans', system-ui, sans-serif;
}


/* ── 5. PRICING PAGE: urgency bar mobile overflow prevention ───────────
   The urgency bar text can overflow on narrow viewports.
   ────────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .pr-urgency-bar {
    font-size: 0.78rem !important;
    padding: 0.6rem 1rem !important;
    text-align: center !important;
    line-height: 1.4 !important;
  }

  .pr-urgency-bar span#urgencyText {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}


/* ============================================================
   END Task #1517997
   ============================================================ */
