/* Trump platform -- shared content styles
   Source: Ploutos/trump -> src/app/globals.css (.page-content section)
   Usage: wrap page content in <div class="page-content"> */

.page-content {
  font-family: 'Georgia', serif;
  color: #1a1a2e;
  counter-reset: balancecounter categorycounter category2counter;
}
.page-content h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.page-content h2 { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #94a3b8; margin-bottom: 1rem; }
.page-content h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: #334155; color: #fff; text-align: center; padding: 0.375rem 0.5rem; margin-bottom: 0.5rem; margin-top: 1.25rem; width: 100%; display: block; }
.page-content h4 { font-size: 0.9rem; font-weight: 600; color: #475569; margin-bottom: 0.25rem; }
.page-content p   { font-size: 0.95rem; line-height: 1.8; color: #475569; }
.page-content a   { color: #4f46e5; }
.page-content a:hover { text-decoration: underline; }
.page-content a[href$='.pdf']::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 4px;
  vertical-align: -0.15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cc0000'%3E%3Cpath d='M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm0 1h8a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1'/%3E%3Cpath d='M4.603 12.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.187-.012.395-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.065.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.6 11.6 0 0 0-1.997.406 11.3 11.3 0 0 1-1.021 1.51c-.29.35-.608.655-.926.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.244.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 5.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.page-content ul  { list-style: none; padding: 0; }
.page-content ul li {
  font-size: 0.9rem; color: #475569;
  padding: 0.4rem 0; border-bottom: 1px solid #f1f5f9;
  display: flex; gap: 0.75rem;
}
.page-content ul li::before { content: "—"; color: #cbd5e1; flex-shrink: 0; }

.page-content ol { list-style: decimal; padding-left: 1.5rem; }
.page-content ol li { font-size: 0.9rem; color: #475569; padding: 0.25rem 0; }

.page-content table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.page-content th { text-align: left; padding: 0.5rem 0.75rem; background: #334155; color: #fff; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.page-content td { padding: 0.5rem 0.75rem; border-bottom: 1px solid #f1f5f9; color: #475569; }
.page-content tr:nth-child(even) td { background: #f8fafc; }

/* Auto-numbering counters */
.balanceCounter  { font-size: 1.5rem; font-weight: 700; color: #fff; vertical-align: middle; padding-top: 0.3rem; }
.categoryCounter { font-size: 1.5rem; font-weight: 700; color: #15803d; vertical-align: middle; padding-top: 0.3rem; }
.category2Counter { font-weight: 700; vertical-align: middle; }

.balanceCounter::before  { content: counter(balancecounter)  ".\00a0\00a0"; counter-increment: balancecounter; }
.categoryCounter::before { content: counter(categorycounter) ".\00a0\00a0"; counter-increment: categorycounter; }
.category2Counter::before { content: counter(category2counter) ".\00a0\00a0"; counter-increment: category2counter; }

/* Section header bar -- apply to any element */
.section-header {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: #15803d; color: #fff; text-align: center;
  display: block; width: 100%;
  margin-bottom: 0.5rem; margin-top: 1.25rem;
}

/* Staggered fade-up on page load */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.page-content > * { animation: fadeUp 0.5s ease both; }
.page-content > *:nth-child(2) { animation-delay: 0.10s; }
.page-content > *:nth-child(3) { animation-delay: 0.15s; }
.page-content > *:nth-child(4) { animation-delay: 0.20s; }
.page-content > *:nth-child(5) { animation-delay: 0.25s; }
.page-content > *:nth-child(6) { animation-delay: 0.30s; }

/* Hero banner with animated glow */
@keyframes shimmer { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0369a1 70%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(14,165,233,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(99,102,241,0.2) 0%, transparent 50%);
  animation: shimmer 4s ease-in-out infinite;
}
.hero-gradient::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to top, white, transparent);
}

/* Card with lift-on-hover */
.content-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Large gradient stat number */
.stat-num {
  font-size: 2.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #0369a1, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Print -- hides chrome, prints only content */
@media print {
  aside, header, footer, nav, .print-btn { display: none !important; }
  *, *::before, *::after { overflow: visible !important; height: auto !important; max-height: none !important; }
  body, main, .page-content { margin: 0 !important; padding: 0 !important; }
  .page-break { display: block; break-before: page; page-break-before: always; }
  tr { break-inside: avoid; }
  .page-content > * { animation: none !important; }
}
