/**
 * category.css — GamesDesert Category Archive Styles
 * Matches the design language of home.css
 * Requires: style.css (tokens) to be loaded first
 */

/* ============================================================
   SHELL
   ============================================================ */
.category-shell {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ============================================================
   CATEGORY HEADER
   ============================================================ */
.category-header {
  position: relative;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, var(--color-surface-container-low) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-surface-container);
}

.category-header-container {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .category-header-container {
    padding: 0 2.5rem;
  }
}

.category-header-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.category-header-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.category-header-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-header-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--color-on-surface);
}

.category-header-description {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-on-surface-variant);
  line-height: 1.6;
}

.category-header-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.category-post-count {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--color-surface-container);
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-on-surface-variant);
}

/* ============================================================
   SUBCATEGORY FILTER BAR
   ============================================================ */
.subcat-filter-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-surface-container);
  margin-bottom: 0;
}

.cat-count {
  font-size: 0.625rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 0.2rem;
}

/* ============================================================
   MAIN CONTENT GRID
   ============================================================ */
.category-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

@media (min-width: 768px) {
  .category-content-grid {
    padding: 0 2.5rem 5rem;
  }
}

@media (min-width: 1100px) {
  .category-content-grid {
    grid-template-columns: 1fr 22rem;
  }
}

/* ============================================================
   POSTS FEED
   ============================================================ */
.category-posts-feed {
  min-width: 0;
}

.category-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .category-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   CATEGORY INFO WIDGET
   ============================================================ */
.category-info-widget {
  text-align: center;
  color: #fff !important;
}

.category-info-widget .category-info-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.category-widget-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.category-widget-name {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.category-widget-desc {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.category-widget-stats {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 0.5rem;
}

/* ============================================================
   RELATED CATEGORIES LIST
   ============================================================ */
.related-cats-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-cat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-container);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.related-cat-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.related-cat-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.related-cat-item span {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-on-surface);
}

.related-cat-count {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-outline);
}

/* ============================================================
   CATEGORY PAGINATION
   ============================================================ */
.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-on-surface-variant);
  border: 1.5px solid var(--color-surface-container);
  background: var(--color-surface);
  transition: all 0.2s;
}

.category-pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.category-pagination .prev,
.category-pagination .next {
  width: auto;
  padding: 0 1.1rem;
  font-size: 0.75rem;
}

/* ============================================================
   SIDEBAR (reuses home.css styles)
   ============================================================ */
.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
  .category-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Tablet Portrait (768px) */
@media (max-width: 768px) {
  .category-header {
    padding: 2rem 0 1.5rem;
  }
  
  .category-header-badge-wrapper {
    gap: 0.75rem;
  }
  
  .category-header-icon {
    width: 48px;
    height: 48px;
  }
  
  .category-header-icon img {
    width: 24px;
    height: 24px;
  }
  
  .category-header-title {
    font-size: 1.75rem;
  }
  
  .category-header-description {
    font-size: 0.9375rem;
    margin-bottom: 1rem;
  }
  
  .category-content-grid {
    padding: 0 1.5rem 3rem;
    gap: 2rem;
  }
  
  .category-posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .post-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }
  
  .post-card--wide .post-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  
  .post-card--wide .post-card-body {
    padding: 1.25rem;
  }
  
  .category-sidebar {
    order: 2;
  }
  
  .category-posts-feed {
    order: 1;
  }
  
  .category-pagination {
    margin-top: 2rem;
  }
}

/* Mobile Large (430px) */
@media (max-width: 430px) {
  .category-header {
    padding: 1.5rem 0 1rem;
  }
  
  .category-header-container {
    padding: 0 1rem;
  }
  
  .category-header-badge-wrapper {
    gap: 0.5rem;
  }
  
  .category-header-icon {
    width: 40px;
    height: 40px;
  }
  
  .category-header-icon img {
    width: 20px;
    height: 20px;
  }
  
  .category-header-title {
    font-size: 1.5rem;
  }
  
  .category-header-description {
    font-size: 0.875rem;
  }
  
  .category-post-count {
    font-size: 0.6875rem;
    padding: 0.25rem 0.875rem;
  }
  
  .category-content-grid {
    padding: 0 1rem 2rem;
    gap: 1.5rem;
  }
  
  .subcat-filter-bar {
    padding: 1rem 1rem;
  }
  
  .cat-pill {
    padding: 0.3rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .category-posts-grid {
    gap: 1rem;
  }
  
  .category-pagination .page-numbers {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  
  .category-pagination .prev,
  .category-pagination .next {
    padding: 0 0.8rem;
    font-size: 0.6875rem;
  }
  
  .related-cat-item {
    padding: 0.4rem 0.6rem;
  }
  
  .related-cat-item span {
    font-size: 0.75rem;
  }
}

/* Mobile Medium (410px) */
@media (max-width: 410px) {
  .category-header-title {
    font-size: 1.375rem;
  }
  
  .category-header-description {
    font-size: 0.8125rem;
  }
  
  .cat-pill {
    padding: 0.25rem 0.65rem;
    font-size: 0.5625rem;
  }
  
  .post-card-body {
    padding: 0.875rem;
  }
  
  .post-card-title {
    font-size: 0.875rem;
  }
}

/* Mobile Small (390px) */
@media (max-width: 390px) {
  .category-header-title {
    font-size: 1.25rem;
  }
  
  .category-header-description {
    font-size: 0.75rem;
  }
  
  .cat-pill {
    padding: 0.2rem 0.6rem;
    font-size: 0.5rem;
  }
  
  .post-card-body {
    padding: 0.75rem;
  }
  
  .post-card-title {
    font-size: 0.8125rem;
  }
  
  .category-pagination .page-numbers {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.6875rem;
  }
}

/* Mobile Extra Small (370px) */
@media (max-width: 370px) {
  .category-header-icon {
    width: 36px;
    height: 36px;
  }
  
  .category-header-title {
    font-size: 1.125rem;
  }
  
  .category-header-description {
    font-size: 0.6875rem;
  }
  
  .cat-pill {
    padding: 0.2rem 0.5rem;
    font-size: 0.4375rem;
  }
  
  .post-card-body {
    padding: 0.625rem;
  }
  
  .post-card-title {
    font-size: 0.75rem;
  }
  
  .category-pagination .page-numbers {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
  }
}

/* ============================================================
   UTILITY CLASSES & TOUCH TARGETS
   ============================================================ */

/* No posts state */
.no-posts {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-outline);
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {
  .cat-pill,
  .related-cat-item,
  .pop-item,
  .trending-item,
  .post-card a,
  .category-pagination .page-numbers {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .cat-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  
  .category-pagination .page-numbers {
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Prevent zoom on input focus for mobile */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="search"] {
    font-size: 16px !important;
  }
}

/* home.css — GamesDesert Blog Homepage
   Requires: style.css (tokens) to be loaded first
   ================================================== */

/* ============================================================
   SHELL
   ============================================================ */
.home-shell {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ============================================================
   SPOTLIGHT HERO SECTION (Redesigned)
   ============================================================ */
.spotlight-section {
  position: relative;
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--color-surface-container-low) 0%, var(--color-surface) 100%);
  border-bottom: 1px solid var(--color-surface-container);
}

.spotlight-container {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .spotlight-container {
    padding: 0 2.5rem;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Left Content */
.spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
  transition: opacity 0.2s, transform 0.2s;
}

.spotlight-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.spotlight-title {
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--color-on-surface);
}

.spotlight-title a {
  transition: color 0.2s;
}

.spotlight-title a:hover {
  color: var(--color-primary);
}

.spotlight-excerpt {
  font-size: 1rem;
  color: var(--color-on-surface-variant);
  line-height: 1.65;
  font-family: var(--font-body);
  max-width: 48ch;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--color-outline);
  font-family: var(--font-headline);
  font-weight: 600;
  flex-wrap: wrap;
}

.spotlight-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface-container);
  flex-shrink: 0;
}

.spotlight-author {
  color: var(--color-on-surface);
  font-weight: 700;
}

.spotlight-dot {
  color: var(--color-surface-container-highest);
}

.spotlight-date,
.spotlight-read {
  font-weight: 500;
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-btn);
  transition: all 0.2s;
  width: fit-content;
}

.spotlight-cta svg {
  transition: transform 0.2s;
}

.spotlight-cta:hover {
  background: var(--color-primary-dim);
  transform: translateY(-2px);
}

.spotlight-cta:hover svg {
  transform: translateX(3px);
}

.spotlight-cta:active {
  transform: scale(0.97);
}

/* Right Media */
.spotlight-media {
  position: relative;
}

.spotlight-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.spotlight-image-wrapper:hover {
  transform: rotate(0deg);
}

.spotlight-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.spotlight-image-wrapper:hover .spotlight-image {
  transform: scale(1.02);
}

.spotlight-image-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

/* Replace old hero-section styles if needed - remove or comment out old hero styles */
.hero-section,
.hero-backdrop,
.hero-inner,
.hero-scroll-hint {
  display: none;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.cat-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1.75rem 1.5rem;
  max-width: 88rem;
  margin: 0 auto;
  width: 100%;
}

.cat-filter-bar::-webkit-scrollbar { display: none; }

@media (min-width: 768px) { .cat-filter-bar { padding: 1.75rem 2.5rem; } }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1.5px solid var(--color-surface-container);
  color: var(--color-on-surface-variant);
  background: var(--color-surface-container-low);
  transition: all 0.2s;
}

.cat-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-container);
}

.cat-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-btn);
}

/* ============================================================
   MAIN CONTENT GRID
   ============================================================ */
.home-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

@media (min-width: 768px) {
  .home-content-grid { padding: 0 2.5rem 5rem; }
}

@media (min-width: 1100px) {
  .home-content-grid { grid-template-columns: 1fr 22rem; }
}

/* ============================================================
   FEED HEADER
   ============================================================ */
.feed-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.feed-title {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-on-surface);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.feed-title-accent {
  color: var(--color-primary);
}

.feed-title-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary-container), transparent);
  border-radius: 99px;
}

/* ============================================================
   POST CARDS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Card base ── */
.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-container);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s, box-shadow 0.28s;
  box-shadow: var(--shadow-sm);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--color-primary-container);
}

/* Wide card (first card, spans 2 columns) */
@media (min-width: 640px) {
  .post-card--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
  }

  .post-card--wide .post-card-thumb-wrap {
    width: 55%;
    flex-shrink: 0;
    aspect-ratio: auto;
  }

  .post-card--wide .post-card-thumb {
    height: 100%;
    aspect-ratio: auto;
  }

  .post-card--wide .post-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
  }

  .post-card--wide .post-card-title {
    font-size: 1.375rem;
  }
}

@media (min-width: 1024px) {
  .post-card--wide { grid-column: span 2; }
}

/* Thumbnail */
.post-card-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.post-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}

.post-card:hover .post-card-thumb { transform: scale(1.04); }

.post-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.55) 0%, transparent 55%);
  pointer-events: none;
}

/* Category badge on card image */
.post-card-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 1;
}

/* Card body */
.post-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Title */
.post-card-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-on-surface);
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-title a { transition: color 0.2s; }
.post-card-title a:hover { color: var(--color-primary); }

/* Excerpt (wide card only) */
.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-on-surface-variant);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Meta row */
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  color: var(--color-outline);
  font-family: var(--font-headline);
  font-weight: 600;
  margin-top: auto;
  flex-wrap: wrap;
}

.post-card-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--color-surface-container);
}

.post-card-author { color: var(--color-on-surface); font-weight: 700; }
.post-card-sep    { color: var(--color-surface-container-highest); }

.post-card-date,
.post-card-read {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.home-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.home-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-on-surface-variant);
  border: 1.5px solid var(--color-surface-container);
  background: var(--color-surface);
  transition: all 0.2s;
}

.home-pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.home-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.home-pagination .prev,
.home-pagination .next {
  width: auto;
  padding: 0 1.1rem;
  font-size: 0.75rem;
}

/* No posts */
.no-posts {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-outline);
  font-family: var(--font-headline);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Sidebar widget shell ── */
.sidebar-widget {
  background: var(--color-surface-container-low);
  border: 1px solid var(--color-surface-container);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-widget-title {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--color-on-surface);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

/* WP search form override */
.sidebar-widget .search-form {
  display: flex;
  gap: 0.5rem;
}

.sidebar-widget .search-field {
  flex: 1;
  padding: 0.55rem 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-surface-container);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-on-surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sidebar-widget .search-field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}

.sidebar-widget .search-submit {
  padding: 0.55rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity 0.2s;
  cursor: pointer;
}

.sidebar-widget .search-submit:hover { opacity: 0.88; }

/* ── Trending widget ── */
.trending-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trending-rank {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-primary-container);
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-size: 0.625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trending-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.trending-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trending-name {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.trending-name:hover { color: var(--color-primary); }

.trending-score-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--color-surface);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  font-family: var(--font-headline);
  width: fit-content;
}

.btn-explore-full {
  width: 100%;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-container));
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-btn);
  transition: opacity 0.2s, transform 0.2s;
  text-align: center;
  display: block;
}

.btn-explore-full:hover { opacity: 0.9; }
.btn-explore-full:active { transform: scale(0.97); }

/* ── Popular posts ── */
.pop-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-surface-container);
  transition: opacity 0.2s;
}

.pop-item:last-child { border-bottom: none; }
.pop-item:hover { opacity: 0.8; }

.pop-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface-container);
}

.pop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pop-title {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-on-surface);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.pop-meta {
  font-size: 0.6875rem;
  color: var(--color-outline);
  font-weight: 500;
}

/* ── Tags cloud ── */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* tag-pill reused from single-v2.css — no redefinition needed */

/* ── Newsletter widget ── */
.newsletter-widget {
  position: relative;
  overflow: hidden;
  background: var(--color-on-surface) !important;
  color: #fff;
  border: none !important;
}

.newsletter-widget-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.newsletter-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.newsletter-widget h4 {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.newsletter-widget p {
  font-size: 0.825rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

.newsletter-widget .newsletter-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-widget .newsletter-input::placeholder {
  color: rgba(255,255,255,.4);
}

.newsletter-widget .newsletter-input:focus {
  border-color: var(--color-primary-fixed);
  box-shadow: 0 0 0 3px rgba(167,139,250,.2);
}

.btn-subscribe-full {
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-btn);
  transition: opacity 0.2s, transform 0.2s;
}

.btn-subscribe-full:hover  { opacity: 0.9; }
.btn-subscribe-full:active { transform: scale(0.97); }

.newsletter-widget .newsletter-glow {
  position: absolute;
  bottom: -3rem;
  right: -3rem;
  width: 10rem;
  height: 10rem;
  background: rgba(124,58,237,.25);
  border-radius: 50%;
  filter: blur(3.5rem);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   RESPONSIVE — stack sidebar below on mobile
   ============================================================ */
@media (max-width: 1099px) {
  .home-sidebar { order: 2; }
  .posts-feed   { order: 1; }
}

/* ============================================================
   SMALL SCREEN ADJUSTMENTS
   ============================================================ */
@media (max-width: 479px) {
  .hero-section   { min-height: 80vh; }
  .hero-title     { font-size: 2rem; }
  .hero-excerpt   { font-size: 0.9375rem; }
  .posts-grid     { grid-template-columns: 1fr; }
  .post-card--wide{ grid-column: span 1; flex-direction: column; }
  .post-card--wide .post-card-thumb-wrap { width: 100%; height: 14rem; }
  .hero-scroll-hint { display: none; }
}


/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-surface-container-low);
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.site-footer-inner {
  max-width: 88rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-on-surface);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-outline);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links li{
  list-style-type: none;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-outline);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* ============================================================
   ENHANCED RESPONSIVE BREAKPOINTS
   Breakpoints: 768px (tablet portrait), 1024px (tablet landscape),
   430px, 410px, 390px, 370px (mobile)
   ============================================================ */

/* ===== TABLET LANDSCAPE (1024px and below) ===== */
@media (max-width: 1024px) {
  .spotlight-container {
    gap: 2rem;
  }
  
  .spotlight-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  
  .spotlight-excerpt {
    font-size: 0.9375rem;
    max-width: 100%;
  }
  
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .post-card--wide {
    grid-column: span 2;
  }
}

/* ===== TABLET PORTRAIT (768px) ===== */
@media (max-width: 768px) {
  /* Hero Section */
  .spotlight-section {
    padding: 2rem 0 1.5rem;
  }
  
  .spotlight-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .spotlight-content {
    gap: 1rem;
    order: 1;
  }
  
  .spotlight-media {
    order: 0;
    max-width: 80%;
    margin: 0 auto;
  }
  
  .spotlight-image-wrapper {
    transform: rotate(0deg);
  }
  
  .spotlight-title {
    font-size: 1.75rem;
  }
  
  .spotlight-excerpt {
    font-size: 0.9375rem;
  }
  
  .spotlight-meta {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .spotlight-avatar {
    width: 28px;
    height: 28px;
  }
  
  .spotlight-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.8125rem;
  }
  
  /* Category Filter Bar */
  .cat-filter-bar {
    padding: 1.25rem 1.5rem;
    gap: 0.4rem;
  }
  
  .cat-pill {
    padding: 0.35rem 0.9rem;
    font-size: 0.6875rem;
  }
  
  .cat-pill img {
    width: 12px;
    height: 12px;
  }
  
  /* Content Grid */
  .home-content-grid {
    padding: 0 1.5rem 3rem;
    gap: 2rem;
  }
  
  /* Feed Header */
  .feed-header {
    margin-bottom: 1.5rem;
  }
  
  .feed-title {
    font-size: 1.25rem;
    white-space: normal;
  }
  
  .feed-title-line {
    display: none;
  }
  
  /* Posts Grid */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .post-card--wide {
    grid-column: span 1;
    flex-direction: column;
  }
  
  .post-card--wide .post-card-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  
  .post-card--wide .post-card-thumb {
    aspect-ratio: 16 / 9;
  }
  
  .post-card--wide .post-card-body {
    padding: 1.25rem;
  }
  
  .post-card--wide .post-card-title {
    font-size: 1rem;
  }
  
  .post-card--wide .post-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
  }
  
  .post-card-thumb-wrap {
    aspect-ratio: 16 / 9;
  }
  
  .post-card-body {
    padding: 1rem;
  }
  
  .post-card-title {
    font-size: 0.9375rem;
  }
  
  .post-card-meta {
    font-size: 0.625rem;
    gap: 0.3rem;
  }
  
  .post-card-avatar {
    width: 18px;
    height: 18px;
  }
  
  /* Sidebar */
  .home-sidebar {
    gap: 1.5rem;
  }
  
  .sidebar-widget {
    padding: 1.25rem;
  }
  
  .sidebar-widget-title {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  /* Trending Widget */
  .trending-list {
    gap: 0.7rem;
  }
  
  .trending-thumb {
    width: 36px;
    height: 36px;
  }
  
  .trending-name {
    font-size: 0.75rem;
  }
  
  /* Popular Posts */
  .pop-thumb {
    width: 48px;
    height: 48px;
  }
  
  .pop-title {
    font-size: 0.75rem;
  }
  
  /* Pagination */
  .home-pagination {
    margin-top: 2rem;
    gap: 0.4rem;
  }
  
  .home-pagination .page-numbers {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  
  .home-pagination .prev,
  .home-pagination .next {
    padding: 0 0.8rem;
    font-size: 0.6875rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 2rem 1.5rem;
  }
  
  .site-footer-inner {
    gap: 1.5rem;
  }
  
  .footer-brand {
    font-size: 1rem;
  }
  
  .footer-copy {
    font-size: 0.6875rem;
  }
  
  .footer-links {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-links a {
    font-size: 0.6875rem;
  }
}

/* ===== MOBILE LARGE (430px) ===== */
@media (max-width: 430px) {
  /* Hero */
  .spotlight-section {
    padding: 1.5rem 0 1rem;
  }
  
  .spotlight-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .spotlight-media {
    max-width: 100%;
  }
  
  .spotlight-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .spotlight-badge img {
    width: 10px;
    height: 10px;
  }
  
  .spotlight-title {
    font-size: 1.5rem;
    line-height: 1.25;
  }
  
  .spotlight-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .spotlight-meta {
    font-size: 0.6875rem;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  
  .spotlight-avatar {
    width: 24px;
    height: 24px;
  }
  
  .spotlight-cta {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
  }
  
  .spotlight-cta svg {
    width: 14px;
    height: 14px;
  }
  
  /* Category Filter Bar */
  .cat-filter-bar {
    padding: 1rem 1rem;
    gap: 0.35rem;
  }
  
  .cat-pill {
    padding: 0.3rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .cat-pill img {
    width: 10px;
    height: 10px;
  }
  
  /* Content Grid */
  .home-content-grid {
    padding: 0 1rem 2rem;
    gap: 1.5rem;
  }
  
  /* Feed Header */
  .feed-header {
    margin-bottom: 1.25rem;
  }
  
  .feed-title {
    font-size: 1.125rem;
  }
  
  /* Posts Grid */
  .posts-grid {
    gap: 1rem;
  }
  
  .post-card-body {
    padding: 0.875rem;
  }
  
  .post-card-title {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
  }
  
  .post-card-excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
  
  .post-card-meta {
    font-size: 0.5625rem;
  }
  
  .post-card-avatar {
    width: 16px;
    height: 16px;
  }
  
  .post-card-date img,
  .post-card-read img {
    width: 9px;
    height: 9px;
  }
  
  .post-card-cat {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.5625rem;
  }
  
  /* Sidebar Widgets */
  .sidebar-widget {
    padding: 1rem;
  }
  
  .sidebar-widget-title {
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
  }
  
  /* Search Form */
  .sidebar-widget .search-field {
    padding: 0.45rem 0.875rem;
    font-size: 0.75rem;
  }
  
  .sidebar-widget .search-submit {
    padding: 0.45rem 0.875rem;
    font-size: 0.7rem;
  }
  
  /* Trending */
  .trending-widget-header {
    margin-bottom: 1rem;
  }
  
  .trending-list {
    gap: 0.6rem;
  }
  
  .trending-rank {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.5625rem;
  }
  
  .trending-thumb {
    width: 32px;
    height: 32px;
  }
  
  .trending-name {
    font-size: 0.6875rem;
  }
  
  .trending-score-badge {
    font-size: 0.5rem;
    padding: 0.05rem 0.4rem;
  }
  
  .btn-explore-full {
    padding: 0.5rem 0.875rem;
    font-size: 0.7rem;
  }
  
  /* Popular */
  .pop-item {
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  
  .pop-thumb {
    width: 44px;
    height: 44px;
  }
  
  .pop-title {
    font-size: 0.6875rem;
  }
  
  .pop-meta {
    font-size: 0.625rem;
  }
  
  /* Tags Cloud */
  .tags-cloud {
    gap: 0.4rem;
  }
  
  .tag-pill {
    padding: 0.25rem 0.7rem;
    font-size: 0.6875rem;
  }
  
  /* Newsletter */
  .newsletter-widget h4 {
    font-size: 1rem;
  }
  
  .newsletter-widget p {
    font-size: 0.75rem;
  }
  
  .newsletter-widget .newsletter-input {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }
  
  .btn-subscribe-full {
    padding: 0.5rem 0.875rem;
    font-size: 0.7rem;
  }
  
  /* Pagination */
  .home-pagination {
    margin-top: 1.5rem;
  }
  
  .home-pagination .page-numbers {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.6875rem;
  }
  
  .home-pagination .prev,
  .home-pagination .next {
    padding: 0 0.6rem;
    font-size: 0.625rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 1.5rem 1rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
}

/* ===== MOBILE MEDIUM (410px) ===== */
@media (max-width: 410px) {
  .spotlight-title {
    font-size: 1.375rem;
  }
  
  .spotlight-excerpt {
    font-size: 0.8125rem;
  }
  
  .spotlight-meta {
    font-size: 0.625rem;
  }
  
  .spotlight-avatar {
    width: 22px;
    height: 22px;
  }
  
  .cat-filter-bar {
    padding: 0.875rem 0.75rem;
  }
  
  .cat-pill {
    padding: 0.25rem 0.65rem;
    font-size: 0.5625rem;
  }
  
  .feed-title {
    font-size: 1rem;
  }
  
  .post-card-title {
    font-size: 0.8125rem;
  }
  
  .post-card-meta {
    gap: 0.25rem;
  }
  
  .sidebar-widget {
    padding: 0.875rem;
  }
  
  .sidebar-widget-title {
    font-size: 0.75rem;
  }
}

/* ===== MOBILE SMALL (390px) ===== */
@media (max-width: 390px) {
  .spotlight-container {
    gap: 1.25rem;
  }
  
  .spotlight-title {
    font-size: 1.25rem;
  }
  
  .spotlight-excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
  
  .spotlight-meta {
    font-size: 0.5625rem;
  }
  
  .spotlight-cta {
    padding: 0.4rem 1rem;
    font-size: 0.6875rem;
  }
  
  .spotlight-cta svg {
    width: 12px;
    height: 12px;
  }
  
  .cat-pill {
    padding: 0.2rem 0.6rem;
    font-size: 0.5rem;
  }
  
  .cat-pill img {
    width: 8px;
    height: 8px;
  }
  
  .post-card-body {
    padding: 0.75rem;
  }
  
  .post-card-title {
    font-size: 0.75rem;
  }
  
  .post-card-meta {
    font-size: 0.5rem;
  }
  
  .post-card-avatar {
    width: 14px;
    height: 14px;
  }
  
  .post-card-cat {
    font-size: 0.5rem;
    padding: 0.1rem 0.4rem;
  }
  
  .sidebar-widget .search-field,
  .sidebar-widget .search-submit {
    padding: 0.4rem 0.75rem;
    font-size: 0.6875rem;
  }
  
  .trending-thumb {
    width: 28px;
    height: 28px;
  }
  
  .trending-name {
    font-size: 0.625rem;
  }
  
  .pop-thumb {
    width: 40px;
    height: 40px;
  }
  
  .btn-explore-full,
  .btn-subscribe-full {
    padding: 0.45rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .home-pagination .page-numbers {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.625rem;
  }
  
  .footer-links {
    gap: 0.875rem;
  }
}

/* ===== MOBILE EXTRA SMALL (370px) ===== */
@media (max-width: 370px) {
  .spotlight-section {
    padding: 1rem 0 0.75rem;
  }
  
  .spotlight-title {
    font-size: 1.125rem;
  }
  
  .spotlight-excerpt {
    font-size: 0.6875rem;
  }
  
  .spotlight-meta {
    font-size: 0.5rem;
    gap: 0.3rem;
  }
  
  .spotlight-avatar {
    width: 20px;
    height: 20px;
  }
  
  .spotlight-cta {
    padding: 0.35rem 0.875rem;
    font-size: 0.625rem;
  }
  
  .cat-filter-bar {
    padding: 0.75rem 0.5rem;
    gap: 0.3rem;
  }
  
  .cat-pill {
    padding: 0.2rem 0.5rem;
    font-size: 0.4375rem;
  }
  
  .feed-title {
    font-size: 0.9375rem;
  }
  
  .posts-grid {
    gap: 0.875rem;
  }
  
  .post-card-body {
    padding: 0.625rem;
    gap: 0.4rem;
  }
  
  .post-card-title {
    font-size: 0.6875rem;
  }
  
  .post-card-meta {
    font-size: 0.4375rem;
    gap: 0.2rem;
  }
  
  .post-card-avatar {
    width: 12px;
    height: 12px;
  }
  
  .post-card-date img,
  .post-card-read img {
    width: 8px;
    height: 8px;
  }
  
  .sidebar-widget {
    padding: 0.75rem;
  }
  
  .sidebar-widget-title {
    font-size: 0.6875rem;
    margin-bottom: 0.75rem;
  }
  
  .trending-item {
    gap: 0.5rem;
  }
  
  .trending-rank {
    width: 1rem;
    height: 1rem;
    font-size: 0.5rem;
  }
  
  .trending-thumb {
    width: 24px;
    height: 24px;
  }
  
  .trending-name {
    font-size: 0.5625rem;
  }
  
  .pop-item {
    gap: 0.5rem;
  }
  
  .pop-thumb {
    width: 36px;
    height: 36px;
  }
  
  .pop-title {
    font-size: 0.625rem;
  }
  
  .pop-meta {
    font-size: 0.5rem;
  }
  
  .tag-pill {
    padding: 0.2rem 0.6rem;
    font-size: 0.625rem;
  }
  
  .home-pagination {
    gap: 0.3rem;
  }
  
  .home-pagination .page-numbers {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.5625rem;
  }
  
  .home-pagination .prev,
  .home-pagination .next {
    padding: 0 0.5rem;
    font-size: 0.5625rem;
  }
  
  .footer-brand {
    font-size: 0.875rem;
  }
  
  .footer-copy {
    font-size: 0.625rem;
  }
  
  .footer-links a {
    font-size: 0.625rem;
  }
}

/* ============================================================
   UTILITY CLASSES FOR RESPONSIVE BEHAVIOR
   ============================================================ */

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* Show on mobile only */
@media (min-width: 769px) {
  .show-on-mobile {
    display: none !important;
  }
}

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {
  .cat-pill,
  .tag-pill,
  .pop-item,
  .trending-item,
  .post-card a,
  .spotlight-cta,
  .btn-explore-full,
  .btn-subscribe-full,
  .home-pagination .page-numbers {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Increase touch target size */
  .cat-pill,
  .tag-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  
  .home-pagination .page-numbers {
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Prevent zoom on input focus for mobile (iOS) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="search"],
  textarea {
    font-size: 16px !important;
  }
}

/* Smooth scrolling for mobile menu interactions */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}