/* /guides/ archive — V2 styling for the filter/sort bar + card grid.
   Scoped under body.ccs-rev-fullwidth so it only applies when the V2
   predicate (ccs_guides_v2_is_active) is true. */

body.ccs-rev-fullwidth .guide-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  padding: 16px 20px;
  margin: 0 0 24px;
  font-family: var(--ccs-font-display);
}

body.ccs-rev-fullwidth .guide-filter-cats,
body.ccs-rev-fullwidth .guide-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.ccs-rev-fullwidth .guide-sort-label {
  font-family: var(--ccs-font-label, "Inter"), sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccs-outline);
  margin-right: 4px;
}

body.ccs-rev-fullwidth .guide-filter-btn,
body.ccs-rev-fullwidth .guide-sort-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--ccs-radius-full, 999px);
  font-family: var(--ccs-font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ccs-primary);
  background: var(--ccs-primary-fixed, #f3e9ff);
  transition: background 0.15s ease, color 0.15s ease;
}
body.ccs-rev-fullwidth .guide-filter-btn:hover,
body.ccs-rev-fullwidth .guide-sort-btn:hover {
  background: var(--ccs-primary);
  color: #fff;
}
body.ccs-rev-fullwidth .guide-filter-btn.active,
body.ccs-rev-fullwidth .guide-sort-btn.active {
  background: var(--ccs-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(49, 0, 88, 0.25);
}

/* 4-up grid of guide cards, 2-up on tablet, 1-up on mobile. */
body.ccs-rev-fullwidth .guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 32px;
}
@media (min-width: 600px) {
  body.ccs-rev-fullwidth .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  body.ccs-rev-fullwidth .guide-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1400px) {
  body.ccs-rev-fullwidth .guide-grid { grid-template-columns: repeat(4, 1fr); }
}

body.ccs-rev-fullwidth .guide-card {
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
body.ccs-rev-fullwidth .guide-card:hover {
  box-shadow: var(--ccs-shadow-card-hover);
  transform: translateY(-2px);
}
body.ccs-rev-fullwidth .guide-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
body.ccs-rev-fullwidth .guide-card-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
body.ccs-rev-fullwidth .guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.ccs-rev-fullwidth .guide-card-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ccs-font-display);
  font-size: 72px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
body.ccs-rev-fullwidth .guide-card-body {
  display: block;
  padding: 18px 20px 22px;
  flex: 1;
}
body.ccs-rev-fullwidth .guide-card-title {
  font-family: var(--ccs-font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ccs-primary);
  margin: 0 0 8px;
}
body.ccs-rev-fullwidth .guide-card-summary {
  font-family: var(--ccs-font-display);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ccs-on-surface-variant);
  margin: 0;
}

body.ccs-rev-fullwidth .guide-archive-pager {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 16px 0;
  font-family: var(--ccs-font-display);
}
body.ccs-rev-fullwidth .guide-archive-pager a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border-radius: var(--ccs-radius-full, 999px);
  box-shadow: var(--ccs-shadow-card);
  color: var(--ccs-primary);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
body.ccs-rev-fullwidth .guide-archive-pager a:hover {
  background: var(--ccs-primary);
  color: #fff;
}

body.ccs-rev-fullwidth .guide-archive-empty,
body.ccs-rev-fullwidth .guide-archive-extra {
  background: #fff;
  border-radius: var(--ccs-radius-xl);
  box-shadow: var(--ccs-shadow-card);
  padding: 32px;
  margin: 0 0 32px;
  font-family: var(--ccs-font-display);
  color: var(--ccs-on-surface-variant);
}
@media (max-width: 1023px) {
  body.ccs-rev-fullwidth .guide-archive-empty,
  body.ccs-rev-fullwidth .guide-archive-extra {
    padding: 20px 16px;
  }
}
@media (max-width: 600px) {
  body.ccs-rev-fullwidth .guide-filters {
    padding: 12px;
  }
}
