/* ============================================================
   VARIABLES & TOKENS
   ============================================================ */
:root {
  --brand:          #bc1717;
  --brand-dark:     #3e130f;
  --brand-light:    #f1ebdf;
  --bg-page:        #eee9e1;
  --bg-card:        #faf7f3;
  --text-primary:   #0d0d0d;
  --text-secondary: #4a4744;
  --text-muted:     #7a7571;
  --border-color:   #d8d2c8;
  --shadow-card:    0 1px 2px rgba(0,0,0,0.07);
  --radius-card:    4px;
  --font-body:      'Alegreya', Georgia, serif;
  --font-heading:   'Alegreya Sans', sans-serif;
  --navbar-height:  68px;

  /* Category colors */
  --cat-filing:        #bc1717;
  --cat-communication: #0891b2;
  --cat-action:        #6d6875;
  --cat-ruling:        #b45309;
  --cat-payment:       #059669;
  --cat-breach:        #92400e;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 21px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.15;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--brand-dark); }

/* ============================================================
   NAVBAR — light, matching luckyhare.com
   ============================================================ */
.site-navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  height: var(--navbar-height);
}

.navbar-logo-lh {
  height: 36px;
  width: auto;
}

.navbar-logo-ntp {
  height: 40px;
  width: auto;
}

.navbar-logo-divider {
  color: var(--border-color);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  padding: 0 4px;
}

.site-navbar .nav-link {
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  padding: 6px 14px !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--brand) !important;
  text-decoration: none;
}

.site-navbar .navbar-toggler {
  border-color: var(--border-color);
}

.site-navbar .navbar-toggler-icon {
  filter: invert(0.4);
}

/* ============================================================
   MAIN CONTENT OFFSET
   ============================================================ */
.main-content {
  padding-top: calc(var(--navbar-height) + 40px);
  padding-bottom: 80px;
  min-height: calc(100vh - var(--navbar-height));
}

/* ============================================================
   CARD COMPONENT
   ============================================================ */
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  margin-bottom: 24px;
}

.site-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* ============================================================
   HERO / CASE HEADER
   ============================================================ */
.case-hero {
  padding: 0 0 40px 0;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}

.case-hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 16px;
}

.case-hero h1 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 16px;
  line-height: 1.1;
}

.case-hero-sub {
  color: var(--text-secondary);
  font-size: 24px;
  margin-bottom: 28px;
  max-width: 680px;
}

.case-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 2px;
  padding: 5px 14px;
  font-size: 13px;
}

/* ============================================================
   STATUS BADGE
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-secondary);
}

.status-badge .status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.status-active .status-dot { background: #bc1717; }

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

/* ============================================================
   KEY FACTS CARDS
   ============================================================ */
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 20px;
  height: 100%;
}

.fact-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.fact-card h5 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.fact-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-color);
  line-height: 1.2;
}

.section-heading-icon {
  color: var(--brand);
  font-size: 20px;
  margin-right: 4px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 16px;
}

.sidebar-card-header {
  background: var(--brand-dark);
  color: white;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card-body { padding: 14px 16px; }

.sidebar-stat {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-stat:last-child { border-bottom: none; }

.sidebar-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.sidebar-stat-value {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-link-list { list-style: none; padding: 0; margin: 0; }

.sidebar-link-list li {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-link-list li:last-child { border-bottom: none; }

.sidebar-link-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 21px;
  color: var(--brand);
  font-weight: 500;
}

.sidebar-link-list a:hover {
  color: var(--brand-dark);
  text-decoration: none;
}

/* ============================================================
   LEGAL BASIS SECTION
   ============================================================ */
.claim-card {
  border-left: 3px solid var(--brand);
  background: var(--bg-card);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.claim-card h5 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.claim-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   TIMELINE PAGE
   ============================================================ */
.timeline-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timeline-filter-bar .filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.filter-btn[data-cat="filing"].active      { background: var(--cat-filing); border-color: var(--cat-filing); }
.filter-btn[data-cat="communication"].active { background: var(--cat-communication); border-color: var(--cat-communication); }
.filter-btn[data-cat="action"].active      { background: var(--cat-action); border-color: var(--cat-action); }
.filter-btn[data-cat="ruling"].active      { background: var(--cat-ruling); border-color: var(--cat-ruling); }
.filter-btn[data-cat="payment"].active     { background: var(--cat-payment); border-color: var(--cat-payment); }
.filter-btn[data-cat="breach"].active      { background: var(--cat-breach); border-color: var(--cat-breach); }

/* Vertical timeline */
.timeline-track {
  position: relative;
  padding-left: 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-node {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--bg-page);
  color: white;
  font-size: 18px;
  background: var(--brand);
}

/* Category dot colors */
.timeline-entry[data-cat="filing"]        .timeline-dot { background: var(--cat-filing); }
.timeline-entry[data-cat="communication"] .timeline-dot { background: var(--cat-communication); }
.timeline-entry[data-cat="action"]        .timeline-dot { background: var(--cat-action); }
.timeline-entry[data-cat="ruling"]        .timeline-dot { background: var(--cat-ruling); }
.timeline-entry[data-cat="payment"]       .timeline-dot { background: var(--cat-payment); }
.timeline-entry[data-cat="breach"]        .timeline-dot { background: var(--cat-breach); }

.timeline-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.timeline-body-header {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  margin-top: 2px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
  flex: 1;
}

.timeline-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pill-filing        { background: #fce8e8; color: var(--cat-filing); }
.pill-communication { background: #cffafe; color: var(--cat-communication); }
.pill-action        { background: #ede9fe; color: var(--cat-action); }
.pill-ruling        { background: #fef3c7; color: var(--cat-ruling); }
.pill-payment       { background: #d1fae5; color: var(--cat-payment); }
.pill-breach        { background: #fee2e2; color: var(--cat-breach); }

.timeline-body-content { padding: 14px 18px; }

.timeline-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.timeline-docs {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  background: var(--bg-page);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}

.doc-link:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-dark);
  color: white;
  margin-top: 64px;
}

.footer-divider { border-color: rgba(255,255,255,0.12); margin: 0; }

.text-footer-muted { color: rgba(255,255,255,0.55) !important; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-blue      { color: var(--brand) !important; }
.bg-blue-light  { background: var(--brand-light) !important; }

.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 6px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 0;
}

/* ============================================================
   DOCUMENT LIST (Evidence Packet page)
   ============================================================ */
.doc-list { }

.doc-list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.doc-list-item:last-child { border-bottom: none; }

.doc-list-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.doc-list-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.doc-list-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.doc-list-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* ============================================================
   POST CONTENT
   ============================================================ */
.post-content {
  font-size: 18px;
  line-height: 1.75;
}

.post-content h5 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.post-content p { margin-bottom: 1.1rem; }

.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.post-content li { margin-bottom: 0.4rem; }

.post-content hr {
  margin: 1.5rem 0;
  border-color: var(--border-color);
}

.post-content strong { color: var(--text-primary); }

/* ============================================================
   NAVBAR DROPDOWN
   ============================================================ */
.site-navbar .dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 6px 0;
  min-width: 180px;
  background: var(--bg-card);
}

.site-navbar .dropdown-item {
  font-size: 21px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.site-navbar .dropdown-item:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .case-hero { padding: 0 0 28px 0; }
  .case-hero h1 { font-size: 2rem; }
  .case-meta-chips { gap: 6px; }
  .case-meta-chip { font-size: 12px; padding: 4px 10px; }
  .timeline-track::before { left: 20px; }
  .timeline-dot { width: 40px; height: 40px; font-size: 14px; }
  .timeline-body-header { flex-direction: column; gap: 6px; }
  .main-content { padding-top: calc(var(--navbar-height) + 24px); }
  .site-card { padding: 22px 20px; }
  .section-heading { font-size: 1.5rem; }
}
