/**
 * AITechSpark — Component Styles
 * Toasts, skeletons, share bar, author box, AMTake blocks, search overlay,
 * archive hero, 404, newsletter widget, back-to-top, reading progress
 */

/* ── Reading Progress ─────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary, #00c8f8));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Back to Top ─────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary, #0066ff);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 16px rgba(0,102,255,0.35);
  z-index: 900;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--color-primary-dark, #0050cc); transform: translateY(-2px); }

/* ── Toast Notifications ─────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--color-bg-card, #1a1a2e);
  color: var(--color-text, #fff);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
  max-width: 360px;
  text-align: center;
}
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--success { border-left: 4px solid #22c55e; }
.toast--error   { border-left: 4px solid #ef4444; }
.toast--info    { border-left: 4px solid var(--color-primary, #0066ff); }
.toast--warning { border-left: 4px solid #f59e0b; }

/* ── Skeleton Loader ─────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--color-border, #e5e7eb) 25%, var(--color-bg-muted, #f3f4f6) 50%, var(--color-border, #e5e7eb) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.skeleton--img     { width: 60px; height: 60px; border-radius: 8px; flex-shrink: 0; }
.skeleton--line    { height: 14px; width: 100%; margin: 6px 0; }
.skeleton--short   { width: 60%; }
.skeleton--shorter { width: 35%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Search Overlay ──────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 8000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }

.search-overlay__box {
  background: var(--color-bg-card, #fff);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s;
}
.search-overlay.is-open .search-overlay__box { transform: translateY(0); }

.search-overlay__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.search-overlay__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 18px;
  color: var(--color-text, #111);
  font-family: var(--font-body);
}
.search-overlay__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted, #666);
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.2s;
}
.search-overlay__close:hover { color: var(--color-text, #111); }

.search-overlay__body { padding: 16px; max-height: 480px; overflow-y: auto; }

.search-popular { margin-bottom: 8px; }
.search-popular__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, #888); margin-bottom: 10px; }
.search-popular__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-popular-tag {
  background: var(--color-bg-muted, #f3f4f6);
  color: var(--color-text, #333);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.search-popular-tag:hover { background: var(--color-primary, #0066ff); color: #fff; }

.search-result-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.search-result-card:hover, .search-result-card:focus { background: var(--color-bg-muted, #f3f4f6); outline: none; }
.search-result-card__img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.search-result-card__no-img { width: 60px; height: 60px; border-radius: 8px; background: var(--color-bg-muted, #f0f3fa); flex-shrink: 0; }
.search-result-card__body { flex: 1; min-width: 0; }
.search-result-card__cat { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--color-primary, #0066ff); }
.search-result-card__title { font-size: 14px; font-weight: 600; color: var(--color-text, #111); margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-card__title mark { background: rgba(0,102,255,0.15); color: var(--color-primary, #0066ff); border-radius: 2px; padding: 0 2px; }
.search-result-card__date { font-size: 12px; color: var(--color-text-muted, #888); }
.search-result-card--skeleton { pointer-events: none; }
.search-results__empty { text-align: center; padding: 32px; color: var(--color-text-muted, #888); }
.search-results__empty span { font-size: 32px; display: block; margin-bottom: 12px; }
.search-results__footer { padding: 12px; text-align: center; border-top: 1px solid var(--color-border, #e2e8f0); }
.search-results__all { font-size: 13px; color: var(--color-primary, #0066ff); font-weight: 600; text-decoration: none; }

/* ── Share Bar ────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}
.share-bar__label { font-weight: 700; font-size: 14px; color: var(--color-text-muted, #4a5568); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--facebook { background: #1877f2; color: #fff; }
.share-btn--linkedin { background: #0a66c2; color: #fff; }
.share-btn--telegram { background: #0088cc; color: #fff; }
.share-btn--copy     { background: var(--color-bg-muted, #f3f4f6); color: var(--color-text, #333); }

/* ── Author Box ───────────────────────────── */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  padding: 24px;
  margin: 40px 0;
}
.author-box__avatar { flex-shrink: 0; }
.author-box__img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-primary, #0066ff); }
.author-box__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted, #4a5568); margin: 0 0 4px; }
.author-box__name { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.author-box__name a { color: var(--color-text, #111); text-decoration: none; }
.author-box__name a:hover { color: var(--color-primary, #0066ff); }
.author-box__bio { font-size: 14px; color: var(--color-text-muted, #666); margin: 0 0 12px; line-height: 1.6; }
.author-box__meta { display: flex; align-items: center; gap: 12px; }
.author-box__posts { font-size: 13px; font-weight: 600; color: var(--color-text-muted, #4a5568); }
.author-box__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-bg-muted, #f0f3fa);
  color: var(--color-text-muted, #4a5568);
  transition: background 0.2s, color 0.2s;
}
.author-box__social:hover { background: var(--color-primary, #0066ff); color: #fff; }

/* ── Key Takeaways ────────────────────────── */
.key-takeaways {
  background: linear-gradient(135deg, rgba(0,102,255,0.06), rgba(0,200,248,0.06));
  border: 1px solid rgba(0,102,255,0.2);
  border-left: 4px solid var(--color-primary, #0066ff);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 32px 0;
}
.key-takeaways__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--color-primary, #0066ff);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.key-takeaways__list { margin: 0; padding-left: 20px; }
.key-takeaways__list li { margin-bottom: 8px; line-height: 1.6; font-size: 15px; color: var(--color-text, #333); }
.key-takeaways__list li::marker { color: var(--color-primary, #0066ff); }

/* ── Inline Newsletter ────────────────────── */
.inline-newsletter {
  background: linear-gradient(135deg, var(--color-primary, #0066ff) 0%, var(--color-secondary, #00c8f8) 100%);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  color: #fff;
  margin: 40px 0;
}
.inline-newsletter__icon { font-size: 36px; margin-bottom: 8px; }
.inline-newsletter__title { font-size: 22px; font-weight: 800; margin: 0 0 8px; }
.inline-newsletter__sub { font-size: 15px; opacity: 0.9; margin: 0 0 20px; }
.inline-newsletter__row { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.inline-newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.inline-newsletter__btn { flex-shrink: 0; white-space: nowrap; }

/* ── AMTake Blocks ────────────────────────── */
.amtake-block {
  background: linear-gradient(135deg, rgba(0,102,255,0.05) 0%, rgba(0,200,248,0.08) 100%);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: 16px;
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}
.amtake-block__badge {
  display: inline-block;
  background: var(--color-primary, #0066ff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.amtake-block__title { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.amtake-block__desc  { font-size: 15px; color: var(--color-text-muted, #666); margin: 0 0 20px; }
.amtake-block__tags  { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.amtake-tag {
  background: var(--color-bg-muted, #f0f4ff);
  color: var(--color-primary, #0066ff);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.amtake-tag:hover { background: var(--color-primary, #0066ff); color: #fff; }

/* AMTake Inline CTA (in-content) */
.amtake-cta--inline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-left: 4px solid var(--color-primary, #0066ff);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 28px 0;
  text-decoration: none;
}
.amtake-cta__icon { font-size: 28px; flex-shrink: 0; }
.amtake-cta__content { flex: 1; }
.amtake-cta__title { display: block; font-size: 15px; font-weight: 700; color: var(--color-text, #111); margin-bottom: 2px; }
.amtake-cta__desc { font-size: 13px; color: var(--color-text-muted, #666); }
.amtake-cta__btn { flex-shrink: 0; white-space: nowrap; }

/* ── Archive Hero ─────────────────────────── */
.archive-hero {
  background: linear-gradient(135deg, var(--color-bg-muted, #f8faff) 0%, var(--color-bg, #fff) 100%);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  padding: 48px 0 32px;
}
[data-theme="dark"] .archive-hero { background: linear-gradient(135deg, #0d0d1a 0%, #0a0a14 100%); }

.archive-hero__inner { max-width: 760px; }
.archive-hero__badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.archive-hero__title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin: 0 0 12px; line-height: 1.15; }
.archive-hero__desc  { font-size: 16px; color: var(--color-text-muted, #666); margin: 0 0 16px; max-width: 560px; line-height: 1.6; }
.archive-hero__meta  { font-size: 14px; color: var(--color-text-muted, #888); }
.archive-hero__author { display: flex; align-items: center; gap: 20px; }
.archive-hero__avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color-primary, #0066ff); }
.archive-hero__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted, #4a5568); margin: 0 0 4px; }
.date-badge, .tag-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--color-primary, #0066ff); color: #fff; padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; margin-bottom: 16px; }

/* ── Archive Filter Bar ───────────────────── */
.archive-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 24px;
  font-size: 14px;
  color: var(--color-text-muted, #666);
}
.sort-select {
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--color-text, #0d1117);
  cursor: pointer;
}

/* ── Archive Featured Post ────────────────── */
.archive-featured-post {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.archive-featured-post__image-wrap { position: absolute; inset: 0; }
.archive-featured-post__image { width: 100%; height: 100%; object-fit: cover; }
.archive-featured-post__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.archive-featured-post__content {
  position: relative;
  z-index: 1;
  padding: 32px;
  color: #fff;
}
.archive-featured-post__title { font-size: clamp(22px, 3vw, 36px); font-weight: 800; margin: 10px 0; }
.archive-featured-post__title a { color: inherit; text-decoration: none; }
.archive-featured-post__title a:hover { opacity: 0.85; }
.archive-featured-post__excerpt { font-size: 15px; opacity: 0.85; max-width: 560px; margin: 0 0 16px; }

/* ── Load More / Pagination ───────────────── */
.archive-pagination { text-align: center; padding: 32px 0; }
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary, #0066ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-bottom: 20px;
}
.load-more-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,255,0.35); }
.load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── No Results ───────────────────────────── */
.no-results {
  text-align: center;
  padding: 64px 24px;
}
.no-results__icon { font-size: 56px; margin-bottom: 16px; }
.no-results__title { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.no-results__text { font-size: 16px; color: var(--color-text-muted, #4a5568); margin: 0 0 24px; }

/* ── 404 Page ─────────────────────────────── */
.error-404 { padding: 64px 0; }
.error-404__visual { text-align: center; margin-bottom: 40px; }
.error-404__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary, #0066ff);
  font-family: var(--font-display);
}
.error-404__zero svg { width: 1em; height: 1em; }
.error-404__label { font-size: 18px; font-weight: 600; color: var(--color-text-muted, #4a5568); text-transform: uppercase; letter-spacing: 0.2em; }
.error-404__content { max-width: 520px; margin: 0 auto 48px; text-align: center; }
.error-404__title { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.error-404__desc { color: var(--color-text-muted, #4a5568); margin: 0 0 24px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.error-404__search { margin-top: 16px; }
.error-404__recent { margin-top: 48px; }
.error-404__recent-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

/* ── Search Page ─────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, var(--color-bg-muted, #f8faff), var(--color-bg, #fff));
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  padding: 48px 0;
  text-align: center;
}
.search-hero__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 0 0 20px; }
.search-hero__query { color: var(--color-primary, #0066ff); }
.search-hero__form { max-width: 560px; margin: 0 auto 16px; }
.search-hero__count { font-size: 14px; color: var(--color-text-muted, #4a5568); }

.search-result-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.search-result-item__thumb { flex-shrink: 0; width: 120px; height: 80px; border-radius: 10px; overflow: hidden; }
.search-result-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__content { flex: 1; min-width: 0; }
.search-result-item__title { font-size: 17px; font-weight: 700; margin: 6px 0 8px; }
.search-result-item__title a { color: var(--color-text, #111); text-decoration: none; }
.search-result-item__title a:hover { color: var(--color-primary, #0066ff); }
.search-result-item__excerpt { font-size: 14px; color: var(--color-text-muted, #666); margin: 0 0 8px; }

/* ── Page Article ─────────────────────────── */
.page-article { max-width: 860px; }
.page-hero { margin-bottom: 32px; }
.page-hero__image-wrap { border-radius: 16px; overflow: hidden; margin-bottom: 24px; }
.page-hero__image { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.page-hero__title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin: 12px 0 0; }
.page-content { font-size: 17px; line-height: 1.75; }

/* ── Breadcrumb ───────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-text-muted, #888);
  margin-bottom: 16px;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary, #0066ff); }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb span[aria-current] { color: var(--color-text, #333); font-weight: 600; }

/* ── Comments ─────────────────────────────── */
.comments-area { margin-top: 48px; border-top: 1px solid var(--color-border, #e5e7eb); padding-top: 40px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment { margin-bottom: 24px; }
.comment-body { display: flex; gap: 16px; }
.comment-author img { border-radius: 50%; width: 48px; height: 48px; }
.comment-content { flex: 1; }
.comment-meta { font-size: 13px; color: var(--color-text-muted, #888); margin-bottom: 8px; }
.comment-form { margin-top: 32px; }
.comment-form .comment-form-comment label,
.comment-form .comment-form-author label,
.comment-form .comment-form-email label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  background: var(--color-bg-card, #fff);
  color: var(--color-text, #0d1117);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-primary, #0066ff); outline: none; }
.comment-submit-btn { margin-top: 16px; }

/* ── Related Posts ────────────────────────── */
.related-posts { margin-top: 48px; border-top: 1px solid var(--color-border, #e5e7eb); padding-top: 40px; }
.related-posts__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* ── Pagination (WP) ──────────────────────── */
.wp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.wp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-bg-card, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
  color: var(--color-text, #333);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.wp-pagination .page-numbers.current,
.wp-pagination .page-numbers:hover { background: var(--color-primary, #0066ff); border-color: var(--color-primary, #0066ff); color: #fff; }
.wp-pagination .page-numbers.prev,
.wp-pagination .page-numbers.next { width: auto; padding: 0 16px; }

/* ── Numeric Pagination ───────────────────── */
.numeric-pagination .page-numbers { display: flex; list-style: none; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 32px 0; }

/* ── Post Pagination (multi-page posts) ────── */
.post-pagination { display: flex; align-items: center; gap: 8px; margin: 24px 0; }
.post-pagination__label { font-weight: 600; font-size: 13px; color: var(--color-text-muted, #4a5568); }
.post-pagination__page a,
.post-pagination__page span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 6px;
  padding: 0 8px;
  background: var(--color-bg-muted, #f0f3fa);
  color: var(--color-text, #0d1117);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.post-pagination__page a { background: var(--color-primary, #0066ff); color: #fff; }

/* ── Tag Cloud ────────────────────────────── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-bg-muted, #f3f4f6);
  color: var(--color-text-muted, #555);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 13px !important; /* Override WP's size variation */
}
.tag-cloud a:hover { background: var(--color-primary, #0066ff); color: #fff; }

/* ── Edit Link ────────────────────────────── */
.edit-link { margin-top: 32px; }
.edit-link a { font-size: 13px; color: var(--color-text-muted, #4a5568); border: 1px dashed var(--color-border, #e2e8f0); padding: 4px 12px; border-radius: 6px; text-decoration: none; }
.edit-link a:hover { color: var(--color-primary, #0066ff); border-color: var(--color-primary, #0066ff); }

/* ── Embed Responsive ─────────────────────── */
.embed-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; margin: 24px 0; }
.embed-responsive iframe,
.embed-responsive video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ── Mobile Responsive ────────────────────── */
@media (max-width: 768px) {
  .search-overlay { padding-top: 40px; padding-left: 12px; padding-right: 12px; }
  .author-box { flex-direction: column; }
  .archive-featured-post { min-height: 280px; }
  .archive-featured-post__content { padding: 20px; }
  .error-404__code { font-size: 80px; }
  .inline-newsletter__row { flex-direction: column; }
  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 180px; }
  .amtake-cta--inline { flex-direction: column; text-align: center; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}
