/*
 * settlement-detail-premium.css
 * Premium polish layer for SettlementRadar settlement detail pages.
 * Loaded async after settlement-detail-ramsey.css.
 * Purpose: tighter layout, better trust signals, premium feel.
 * v1 — Task #914558
 */

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --sr-premium-shadow: 0 2px 12px rgba(31,36,38,0.08), 0 8px 32px rgba(31,36,38,0.06);
  --sr-premium-radius: 18px;
  --sr-badge-green: #f0fdf4;
  --sr-badge-green-border: rgba(22,163,74,0.22);
  --sr-badge-green-text: #15803d;
  --sr-source-bg: #f8fbff;
  --sr-source-border: rgba(37,99,235,0.2);
  --sr-source-text: #1d4ed8;
  --sr-trust-chip-bg: rgba(22,163,74,0.06);
  --sr-trust-chip-border: rgba(22,163,74,0.18);
}

/* ════════════════════════════════════════════════════════════════════
   HERO SECTION — tighter, cleaner
   ════════════════════════════════════════════════════════════════════ */

/* Remove excess padding from hero inner on desktop */
@media (min-width: 768px) {
  .detail-inner {
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
}

/* Tighter breadcrumb */
.breadcrumb-nav {
  margin-bottom: 0.75rem;
}

/* Better meta row spacing */
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

/* Tighter H1 */
.detail-header h1 {
  margin-bottom: 0.4rem !important;
}

/* ── Premium Trust Row ──────────────────────────────────────────────── */
.sr-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
  margin-bottom: 0.6rem;
}

.sr-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--sr-badge-green-text);
  font-weight: 600;
  background: var(--sr-trust-chip-bg);
  border: 1px solid var(--sr-trust-chip-border);
  border-radius: 20px;
  padding: 0.18rem 0.58rem;
  letter-spacing: 0.01em;
}

/* Official source link — styled as a trust indicator, not a CTA */
.sr-source-link-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sr-source-text);
  background: var(--sr-source-bg);
  border: 1px solid var(--sr-source-border);
  border-radius: 20px;
  padding: 0.18rem 0.65rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.sr-source-link-premium:hover {
  background: #eff6ff;
  border-color: rgba(37,99,235,0.35);
}
.sr-source-link-premium svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Last updated/verified chip */
.sr-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #6b7280;
  font-weight: 500;
  padding: 0.18rem 0;
}
.sr-last-updated svg {
  opacity: 0.5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   HERO CONVERSION BLOCK — premium card
   ════════════════════════════════════════════════════════════════════ */

.hero-conv-block {
  border-radius: var(--sr-premium-radius) !important;
  box-shadow: var(--sr-premium-shadow) !important;
  border-width: 1.5px !important;
}

/* Gradient header in hero conv block */
.hero-conv-payout {
  border-radius: calc(var(--sr-premium-radius) - 1.5px) calc(var(--sr-premium-radius) - 1.5px) 0 0 !important;
}

/* CTA button — bigger, more premium */
.hero-conv-cta {
  font-size: 1.05rem !important;
  padding: 1rem 1.75rem !important;
  border-radius: 14px !important;
  letter-spacing: -0.01em !important;
}

/* ════════════════════════════════════════════════════════════════════
   KEY INFO CARDS (detail-stats) — premium treatment
   ════════════════════════════════════════════════════════════════════ */

.detail-stats {
  border-radius: 16px !important;
  box-shadow: var(--sr-premium-shadow) !important;
  border-color: rgba(22,163,74,0.16) !important;
  margin-top: 1.25rem !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.detail-stat {
  padding: 1.1rem 1.35rem !important;
  position: relative;
}

/* Subtle top accent line on first stat (deadline) */
.detail-stat:first-child {
  border-top: 3px solid #16a34a;
}

.detail-stat-label {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: #9ca3af !important;
  margin-bottom: 0.35rem !important;
}

.detail-stat-value {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #1f2426 !important;
  line-height: 1.2 !important;
}

/* No-proof badge inside stat */
.detail-stat .no-proof-badge {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
  border-radius: 20px !important;
  padding: 0.2rem 0.7rem !important;
}

@media (max-width: 600px) {
  .detail-stats {
    border-radius: 12px !important;
  }
  .detail-stat {
    padding: 0.9rem 1.1rem !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(22,163,74,0.1) !important;
  }
  .detail-stat:last-child {
    border-bottom: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════════
   ABOVE-FOLD CTA STRIP — premium
   ════════════════════════════════════════════════════════════════════ */

.above-fold-cta-btn {
  border-radius: 14px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  padding: 0.9rem 1.75rem !important;
  box-shadow: 0 4px 20px rgba(22,163,74,0.35) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.above-fold-cta-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 28px rgba(22,163,74,0.48) !important;
}

/* ════════════════════════════════════════════════════════════════════
   IMPORTANT DATES TIMELINE — new component
   ════════════════════════════════════════════════════════════════════ */

.sr-dates-timeline {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  box-shadow: 0 2px 8px rgba(31,36,38,0.05);
}

.sr-dates-timeline-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 1rem;
}

.sr-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.55rem 0;
  position: relative;
}
.sr-timeline-row + .sr-timeline-row {
  border-top: 1px solid #f3f4f6;
}

.sr-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
  border: 2px solid;
}
.sr-timeline-dot.dot-past {
  background: #d1fae5;
  border-color: #6ee7b7;
}
.sr-timeline-dot.dot-active {
  background: #16a34a;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.sr-timeline-dot.dot-urgent {
  background: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
  animation: timeline-pulse 1.8s ease-in-out infinite;
}
.sr-timeline-dot.dot-future {
  background: #f3f4f6;
  border-color: #d1d5db;
}
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0.08); }
}

.sr-timeline-content {
  flex: 1;
  min-width: 0;
}
.sr-timeline-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  display: block;
  line-height: 1.3;
}
.sr-timeline-date {
  font-size: 0.73rem;
  color: #6b7280;
  display: block;
  margin-top: 1px;
}
.sr-timeline-status {
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 0.12rem 0.5rem;
  display: inline-block;
  margin-top: 0.2rem;
}
.sr-timeline-status.status-open {
  background: #dcfce7;
  color: #15803d;
}
.sr-timeline-status.status-urgent {
  background: #fef2f2;
  color: #dc2626;
}
.sr-timeline-status.status-closed {
  background: #f3f4f6;
  color: #6b7280;
}

/* ════════════════════════════════════════════════════════════════════
   FILING STEPS — polished numbered list
   ════════════════════════════════════════════════════════════════════ */

.sr-how-to-file {
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 8px rgba(31,36,38,0.05) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.25rem !important;
}

.sr-htf-step {
  border: none !important;
  background: transparent !important;
  padding: 0.9rem 0 !important;
}
.sr-htf-step + .sr-htf-step {
  border-top: 1px solid #f3f4f6 !important;
}

.sr-htf-step-num {
  width: 32px !important;
  height: 32px !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22,163,74,0.35) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0.1rem !important;
}

.sr-htf-step-content h3 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #1f2426 !important;
  margin-bottom: 0.3rem !important;
}
.sr-htf-step-content p {
  font-size: 0.87rem !important;
  color: #4b5563 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* CTA in how-to-file */
.sr-htf-cta {
  border-radius: 12px !important;
  font-size: 1rem !important;
  padding: 0.9rem 1.5rem !important;
  box-shadow: 0 4px 16px rgba(22,163,74,0.3) !important;
}

/* ════════════════════════════════════════════════════════════════════
   SHARE STRIP — clean, polished
   ════════════════════════════════════════════════════════════════════ */

.detail-share-strip {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 1.15rem 1.35rem !important;
  box-shadow: none !important;
}

.detail-share-headline {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #1f2426 !important;
  margin-bottom: 0.35rem !important;
}

/* ════════════════════════════════════════════════════════════════════
   RELATED SETTLEMENTS — premium cards
   ════════════════════════════════════════════════════════════════════ */

.related-card {
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(31,36,38,0.07) !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.related-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(31,36,38,0.12) !important;
}

/* ════════════════════════════════════════════════════════════════════
   CONTENT BODY SECTIONS — consistent card treatment
   ════════════════════════════════════════════════════════════════════ */

.detail-section {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 1px 6px rgba(31,36,38,0.05) !important;
  margin-bottom: 1.25rem !important;
}

.detail-section h2 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #1f2426 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin-bottom: 0.75rem !important;
}

/* ════════════════════════════════════════════════════════════════════
   MOBILE STICKY CTA — premium pill style
   ════════════════════════════════════════════════════════════════════ */

.mobile-sticky-cta {
  background: #ffffff !important;
  border-top: 1.5px solid rgba(22,163,74,0.2) !important;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1) !important;
  padding: max(0.75rem, env(safe-area-inset-bottom)) 1rem 0.75rem !important;
}

.msfc-btn {
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  padding: 0.85rem 1.5rem !important;
  box-shadow: 0 3px 14px rgba(22,163,74,0.35) !important;
}

/* ════════════════════════════════════════════════════════════════════
   PAYOUT ESTIMATOR — premium widget
   ════════════════════════════════════════════════════════════════════ */

.pe-widget {
  border-radius: 16px !important;
  box-shadow: var(--sr-premium-shadow) !important;
  border-color: rgba(22,163,74,0.18) !important;
}

/* ════════════════════════════════════════════════════════════════════
   CROSS-SELL — "You may also qualify for" section
   ════════════════════════════════════════════════════════════════════ */

.sr-crosssell-heading {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1f2426;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sr-crosssell-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: #16a34a;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════
   SIDEBAR (desktop) — sticky panel
   ════════════════════════════════════════════════════════════════════ */

.detail-sidebar {
  top: 1.25rem !important;
}

.detail-sidebar .sidebar-card,
.detail-sidebar > div {
  border-radius: 16px !important;
  box-shadow: var(--sr-premium-shadow) !important;
}

/* ════════════════════════════════════════════════════════════════════
   SOCIAL PROOF STRIP — cleaner treatment
   ════════════════════════════════════════════════════════════════════ */

.ssp-strip {
  border-radius: 12px !important;
  background: #f8fafb !important;
  border: 1px solid #e5e7eb !important;
}

/* ════════════════════════════════════════════════════════════════════
   KEY TAKEAWAYS BOX — more prominent
   ════════════════════════════════════════════════════════════════════ */

.sr-key-takeaways {
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(31,36,38,0.05) !important;
}

/* ════════════════════════════════════════════════════════════════════
   CLOSED SETTLEMENT BANNER — cleaner
   ════════════════════════════════════════════════════════════════════ */

.settlement-closed-banner {
  border-radius: 0 !important;
}

/* ════════════════════════════════════════════════════════════════════
   BODY TYPOGRAPHY — slightly improved line-height
   ════════════════════════════════════════════════════════════════════ */

.detail-content p {
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .sr-trust-row {
    gap: 0.35rem 0.5rem;
  }
  .sr-trust-chip,
  .sr-source-link-premium,
  .sr-last-updated {
    font-size: 0.68rem;
  }
  .sr-dates-timeline {
    padding: 1rem;
    border-radius: 12px;
  }
  .detail-section {
    padding: 1.1rem 1rem !important;
    border-radius: 12px !important;
  }
  .sr-how-to-file {
    padding: 1.1rem 1rem !important;
    border-radius: 12px !important;
  }
}
