/* 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'] {
  padding-left: 1.1em;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpolygon points='0,0 6,0 9,3 9,12 0,12' fill='%23cc0000'/%3E%3Cpolygon points='6,0 6,3 9,3' fill='%23990000'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 0.7em 0.9em;
}

.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; }
}
