/* ═══════════════════════════════════════════════════════════════
   LUCANIX — Category Archive Styles
═══════════════════════════════════════════════════════════════ */

:root {
  --lxca-green:       #1e4d2b;
  --lxca-green-mid:   #2a6b3c;
  --lxca-green-light: #3a8f52;
  --lxca-green-soft:  #e8f4ec;
  --lxca-green-muted: #c8e6d0;
  --lxca-black:       #0e0e0e;
  --lxca-dark-gray:   #2e2e2e;
  --lxca-mid-gray:    #5a5a5a;
  --lxca-light-gray:  #a8a8a8;
  --lxca-border:      #e2e2e2;
  --lxca-white:       #ffffff;
  --lxca-off-white:   #f8f7f5;
}

/* Full width reset */
body.category .site-main,
body.category article,
body.category .hentry,
body.category .page-content,
body.category .entry-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.lx-ca-hero {
  background: var(--lxca-off-white);
  padding: 80px 60px 0;
  position: relative;
  overflow: hidden;
}
.lx-ca-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, #c8e6d0 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4; pointer-events: none;
}
.lx-ca-hero::after {
  content: '';
  position: absolute; top: -150px; right: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,107,60,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.lx-ca-hero-inner {
  position: relative; z-index: 2;
  padding-bottom: 48px;
}

/* Back link */
.lx-ca-back {
  margin-bottom: 28px;
}
.lx-ca-back a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--lxca-mid-gray);
  text-decoration: none; transition: color 0.2s;
}
.lx-ca-back a:hover { color: var(--lxca-green); }
.lx-ca-back a svg { transition: transform 0.2s; }
.lx-ca-back a:hover svg { transform: translateX(-3px); }

/* Category badge */
.lx-ca-badge-wrap { margin-bottom: 20px; }
.lx-ca-badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Heading */
.lx-ca-heading {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--lxca-black);
  margin-bottom: 20px;
}
.lx-ca-heading span {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-weight: 400;
  color: var(--lxca-green-mid);
}

/* Description */
.lx-ca-desc {
  font-size: 1.05rem; color: var(--lxca-mid-gray);
  line-height: 1.75; max-width: 620px;
  margin-bottom: 24px; font-weight: 300;
}

/* Meta row */
.lx-ca-meta-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem; color: var(--lxca-light-gray);
}
.lx-ca-count { font-weight: 600; color: var(--lxca-mid-gray); }
.lx-ca-dot   { color: var(--lxca-border); }

/* Category switcher pills */
.lx-ca-switcher {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--lxca-border);
  margin-top: 8px;
}
.lx-ca-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
  border: 1px solid var(--lxca-border);
  background: var(--lxca-white); color: var(--lxca-dark-gray);
  text-decoration: none; transition: all 0.2s;
}
.lx-ca-pill:hover {
  border-color: var(--lxca-green-muted);
  background: var(--lxca-green-soft);
  color: var(--lxca-green);
}
.lx-ca-pill.active {
  background: var(--lxca-green);
  border-color: var(--lxca-green);
  color: var(--lxca-white);
  font-weight: 600;
}
.lx-ca-pill.active .lx-ca-pill-count {
  background: rgba(255,255,255,0.2);
  color: var(--lxca-white);
}
.lx-ca-pill-count {
  font-size: 0.62rem; font-weight: 700;
  background: var(--lxca-off-white);
  color: var(--lxca-mid-gray);
  padding: 2px 7px; border-radius: 100px;
  transition: all 0.2s;
}
.lx-ca-pill:hover .lx-ca-pill-count {
  background: var(--lxca-green-muted);
  color: var(--lxca-green);
}

/* ════════════════════════════════════════
   POSTS WRAPPER
════════════════════════════════════════ */
.lx-ca-wrap {
  padding: 60px 60px 100px;
  background: var(--lxca-white);
}

/* ════════════════════════════════════════
   GRID
════════════════════════════════════════ */
.lx-ca-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Wide featured card (first post) ── */
.lx-ca-wide {
  grid-column: 1 / -1;
  display: flex !important;
  flex-direction: row !important;
  text-decoration: none; color: inherit;
  border: 1px solid var(--lxca-border);
  border-radius: 20px; overflow: hidden;
  background: var(--lxca-white);
  transition: box-shadow 0.3s, transform 0.3s;
}
.lx-ca-wide:hover {
  box-shadow: 0 16px 56px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.lx-ca-wide-img {
  width: 440px; flex-shrink: 0;
  min-height: 300px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lx-ca-wide-img-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.lx-ca-wide:hover .lx-ca-wide-img-bg { transform: scale(1.04); }
.lx-ca-wide-img-icon {
  position: relative; z-index: 1;
  font-size: 5rem; opacity: 0.2;
}
.lx-ca-wide-body {
  flex: 1; padding: 44px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.lx-ca-wide-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--lxca-black);
  margin-bottom: 14px; transition: color 0.2s;
}
.lx-ca-wide:hover .lx-ca-wide-body h2 { color: var(--lxca-green); }
.lx-ca-wide-body p {
  font-size: 0.92rem; color: var(--lxca-mid-gray);
  line-height: 1.75; margin-bottom: 28px;
  font-weight: 300;
}

/* ── Regular cards ── */
.lx-ca-card {
  text-decoration: none; color: inherit;
  border: 1px solid var(--lxca-border);
  border-radius: 18px; overflow: hidden;
  background: var(--lxca-white);
  display: flex; flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.lx-ca-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.lx-ca-card-img {
  height: 200px;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lx-ca-card-icon {
  position: relative; z-index: 1;
  font-size: 2.5rem; opacity: 0.22;
  transition: transform 0.3s;
}
.lx-ca-card:hover .lx-ca-card-icon { transform: scale(1.1); opacity: 0.32; }
.lx-ca-card-body {
  padding: 22px 20px;
  flex: 1; display: flex; flex-direction: column;
}
.lx-ca-card-meta {
  font-size: 0.7rem; color: var(--lxca-light-gray); margin-bottom: 10px;
}
.lx-ca-card-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  line-height: 1.3; color: var(--lxca-black);
  margin-bottom: 10px; flex: 1;
  transition: color 0.2s;
}
.lx-ca-card:hover .lx-ca-card-body h3 { color: var(--lxca-green); }
.lx-ca-card-body p {
  font-size: 0.82rem; color: var(--lxca-mid-gray);
  line-height: 1.65; margin-bottom: 16px; font-weight: 300;
}

/* Category badge on cards */
.lx-ca-card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 100px; z-index: 2;
}

/* Read more */
.lx-ca-read-more {
  font-size: 0.78rem; font-weight: 600;
  color: var(--lxca-green);
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto;
}

/* ════════════════════════════════════════
   PAGINATION
════════════════════════════════════════ */
.lx-ca-pagination {
  margin-top: 56px;
  display: flex; justify-content: center;
}
.lx-ca-pagination .page-numbers {
  display: flex; gap: 8px; list-style: none;
  padding: 0; margin: 0; align-items: center; flex-wrap: wrap;
}
.lx-ca-pagination .page-numbers li a,
.lx-ca-pagination .page-numbers li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 10px; font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--lxca-border);
  color: var(--lxca-dark-gray); text-decoration: none;
  transition: all 0.2s; background: var(--lxca-white);
  font-family: 'Inter', sans-serif;
}
.lx-ca-pagination .page-numbers li a:hover {
  background: var(--lxca-green-soft);
  border-color: var(--lxca-green-muted);
  color: var(--lxca-green);
}
.lx-ca-pagination .page-numbers li span.current {
  background: var(--lxca-green);
  border-color: var(--lxca-green);
  color: var(--lxca-white); font-weight: 700;
}
.lx-ca-pagination .page-numbers li a.prev,
.lx-ca-pagination .page-numbers li a.next {
  padding: 0 20px; font-weight: 600;
}

/* ════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════ */
.lx-ca-empty {
  text-align: center; padding: 80px 0;
  max-width: 480px; margin: 0 auto;
}
.lx-ca-empty-icon { font-size: 3.5rem; margin-bottom: 24px; display: block; }
.lx-ca-empty h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px;
  color: var(--lxca-black);
}
.lx-ca-empty p {
  font-size: 0.95rem; color: var(--lxca-mid-gray);
  line-height: 1.7; margin-bottom: 28px;
}
.lx-ca-browse-btn {
  display: inline-flex; align-items: center;
  background: var(--lxca-green); color: var(--lxca-white);
  padding: 13px 28px; border-radius: 8px;
  font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700;
  text-decoration: none; transition: background 0.2s, transform 0.2s;
}
.lx-ca-browse-btn:hover {
  background: var(--lxca-green-mid);
  transform: translateY(-2px);
  color: var(--lxca-white);
}

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 1100px) {
  .lx-ca-hero { padding: 72px 40px 0; }
  .lx-ca-wrap { padding: 40px 40px 80px; }
  .lx-ca-grid { grid-template-columns: repeat(2, 1fr); }
  .lx-ca-wide { flex-direction: column !important; }
  .lx-ca-wide-img { width: 100%; min-height: 260px; }
  .lx-ca-wide-body { padding: 32px; }
}

@media (max-width: 768px) {
  .lx-ca-hero { padding: 64px 20px 0; }
  .lx-ca-wrap { padding: 40px 20px 40px; }
  .lx-ca-grid { grid-template-columns: 1fr; }
  .lx-ca-wide-body { padding: 24px; }
  .lx-ca-switcher { padding-bottom: 32px; }
}
