/* ── Shared site styles (all pages) ── */

.site-page {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: #334155;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
.tt-link {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}
.tt-link:hover { color: #3b82f6; text-decoration: underline; }

.tt-pipe {
  color: #cbd5e1;
  margin: 0 0.35rem;
  user-select: none;
}

/* Footer (matches home) */
.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  background: #ffffff;
}

.site-footer-links {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Breadcrumb */
.site-breadcrumb {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  padding: 0.75rem 0;
}

.site-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-breadcrumb a:hover { color: #2563eb; }

/* Inner page hero (matches home blue aesthetic) */
.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 30%, #eff6ff 65%, #f8fafc 100%);
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.inner-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(80px);
  pointer-events: none;
}

.inner-hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 40%;
  height: 70%;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.15);
  filter: blur(70px);
  pointer-events: none;
}

.inner-hero > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.inner-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #020617;
  margin-bottom: 1.25rem;
}

.inner-hero-lead {
  color: #64748b;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* CTA band */
.site-cta {
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  color: #fff;
}

.site-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.site-cta p {
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.site-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 0.875rem;
  box-shadow: 0 8px 28px -4px rgba(37, 99, 235, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px -4px rgba(37, 99, 235, 0.6);
}

/* Cards & panels */
.site-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.site-card:hover {
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.12);
}

/* Section label */
.site-label {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Check marks */
.site-check { color: #2563eb; font-weight: bold; }

/* Step numbers */
.site-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* Image styling */
.site-img {
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.08);
}

/* Code blocks */
.site-code {
  background: #0f172a;
  color: #7dd3fc;
  border-radius: 0.875rem;
  padding: 1rem;
  font-size: 0.875rem;
  overflow-x: auto;
}

/* Changelog panels (home) */
.tt-bar {
  background: linear-gradient(to bottom, #dbeafe, #bfdbfe);
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  font-weight: 700;
  text-align: center;
  padding: 0.45rem 1rem;
  font-size: 1.125rem;
}

.tt-version-bar {
  background: linear-gradient(to bottom, #eff6ff, #dbeafe);
  border-bottom: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  font-size: 0.9375rem;
}

.tt-panel {
  border: 1px solid #bfdbfe;
  background: #fff;
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.07);
  transition: box-shadow 0.3s ease;
}

.tt-panel:hover {
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.12);
}

.tt-panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .tt-panel-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 1.25rem 1.25rem;
  }

  [dir="rtl"] .tt-panel-body {
    flex-direction: row-reverse;
  }
}

.tt-panel-media {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  max-width: 340px;
}

@media (min-width: 640px) {
  .tt-panel-media {
    width: 40%;
    max-width: 380px;
  }
}

.tt-panel-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.tt-panel-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.125rem;
}

.tt-check {
  color: #16a34a;
  font-weight: bold;
  margin-right: 0.35rem;
}

.section-donation {
  position: relative;
  margin-top: -2.5rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  background: #ffffff;
}

@media (min-width: 640px) {
  .section-donation {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }
}

/* Lightbox */
.lightbox-trigger { cursor: zoom-in; }
#lightbox.hidden { display: none; }
#lightbox:not(.hidden) { display: flex; }

/* Accordion (FAQ) */
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-icon { transition: transform 0.35s ease; }

/* 404 page */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #bfdbfe 0%, #eff6ff 50%, #f8fafc 100%);
}

.page-404-card {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  box-shadow: 0 24px 64px rgba(59, 130, 246, 0.15);
}

.page-404-card h1 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #020617;
  margin-bottom: 0.75rem;
}

.page-404-card p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.page-404-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.page-404-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 0.625rem;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.page-404-nav a:hover {
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}
