/* ===================== SITE PAGES CSS ===================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* ---- NAV ---- */
.site-nav {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  flex-shrink: 0;
}
.site-nav__brand-name { color: var(--text); }
.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav__link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.site-nav__link:hover { background: var(--bg-elevated-2); color: var(--text); }
.site-nav__link--active { background: var(--accent); color: #fff; }
.site-nav__link--active:hover { background: var(--accent-hover); color: #fff; }

/* ---- MAIN ---- */
.site-main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 20px;
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a { color: var(--text-faint); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); }

.site-smartlink-bar {
  background: linear-gradient(135deg, #18181b, #18181b);
  border-top: 1px solid var(--accent);
  padding: 5px 10px;
  text-align: center;
}
.site-smartlink-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(21, 94, 239, 0.4);
}
.site-smartlink-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ---- ADS ---- */
.site-ad {
  width: 100%;
  margin: 16px 0;
  text-align: center;
  overflow: visible;
}
.site-ad--banner_top  { margin-bottom: 24px; min-height: 100px; }
.site-ad--banner_mid  { margin: 32px 0; min-height: 100px; }
.site-ad--banner_bottom {
  background: var(--bg-elevated);
  padding: 20px;
  border-top: 1px solid var(--border);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- PAGE HERO ---- */
.page-hero { margin-bottom: 40px; }
.page-hero__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.page-hero__title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
}
.page-hero__sub { color: var(--text-muted); font-size: 16px; max-width: 560px; }

/* ---- BLOG GRID ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg-elevated-2); }
.blog-card__img--placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-elevated-2), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.blog-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card__date { font-size: 11.5px; color: var(--text-faint); margin-bottom: 8px; }
.blog-card__title { font-size: 17px; font-weight: 700; margin: 0 0 8px; line-height: 1.35; }
.blog-card__excerpt { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.blog-card__read { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: 14px; }

/* ---- BLOG POST ---- */
.post-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.post-date { font-size: 12px; color: var(--text-faint); margin-bottom: 10px; }
.post-title { font-size: 32px; font-weight: 800; margin: 0 0 14px; line-height: 1.2; }
.post-body { font-size: 16px; line-height: 1.75; color: var(--text-muted); max-width: 720px; }
.post-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.post-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body a { color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 18px; }
.post-body li { margin-bottom: 6px; }
.post-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 18px;
  margin: 20px 0;
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

/* ---- SCHEDULE ---- */
.schedule-grid { display: flex; flex-direction: column; gap: 12px; }
.schedule-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.schedule-card__day {
  min-width: 100px;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
}
.schedule-card__time {
  min-width: 80px;
  font-size: 14px;
  color: var(--text-muted);
}
.schedule-card__title { font-weight: 700; font-size: 15px; }
.schedule-card__desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ---- ABOUT / PRIVACY ---- */
.prose { max-width: 720px; font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.prose h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 36px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.empty-state__title { font-size: 20px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .site-nav__links { gap: 0; }
  .site-nav__link { padding: 6px 8px; font-size: 12px; }
  .page-hero__title { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
  .schedule-card { flex-wrap: wrap; gap: 8px; }
}
