/* ── Skeleton Loading ──
   Shared across all pages. Auto-injected by skeleton.js.
   Shimmer animation with theme-matching colors.
*/

/* Base skeleton element */
.sk {
  background: #f0f0f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.sk::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: skShimmer 1.5s ease-in-out infinite;
}

@keyframes skShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Shape variants */
.sk-line { height: 14px; margin-bottom: 10px; }
.sk-line-sm { height: 10px; margin-bottom: 8px; }
.sk-line-lg { height: 20px; margin-bottom: 12px; }
.sk-heading { height: 28px; margin-bottom: 16px; }
.sk-circle { border-radius: 50%; }
.sk-rect { border-radius: 8px; }
.sk-pill { border-radius: 20px; }

/* Width helpers */
.sk-w100 { width: 100%; }
.sk-w90 { width: 90%; }
.sk-w80 { width: 80%; }
.sk-w70 { width: 70%; }
.sk-w60 { width: 60%; }
.sk-w50 { width: 50%; }
.sk-w40 { width: 40%; }
.sk-w30 { width: 30%; }
.sk-w20 { width: 20%; }

/* ── Skeleton Templates ── */

/* Article title */
.sk-article-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* Tags row */
.sk-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.sk-tag {
  width: 80px;
  height: 24px;
  border-radius: 20px;
}

/* Featured image */
.sk-featured-img {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  margin-bottom: 32px;
}

/* Article body paragraphs */
.sk-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

/* Response item */
.sk-response {
  display: flex;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.sk-response-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sk-response-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Related article card (sidebar) */
.sk-related {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.sk-related-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  flex-shrink: 0;
}
.sk-related-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

/* News card (grid) */
.sk-news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sk-news-card-img {
  width: 100%;
  height: 200px;
  border-radius: 12px;
}

/* Newsletter sidebar */
.sk-newsletter {
  padding: 28px;
  background: #f2f2f2;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Hero section */
.sk-hero {
  width: 100%;
  height: 480px;
  border-radius: 16px;
}

/* Ticker */
.sk-ticker {
  display: flex;
  gap: 32px;
  padding: 0 32px;
  align-items: center;
  height: 100%;
}
.sk-ticker-item {
  height: 10px;
  width: 160px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
}

/* Navbar menu */
.sk-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.sk-nav-item {
  height: 12px;
  width: 70px;
  border-radius: 4px;
}

/* Calendar event row */
.sk-event-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}
.sk-event-date {
  width: 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

/* Footer columns */
.sk-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .sk-featured-img { height: 280px; }
  .sk-hero { height: 300px; }
}
