/* ============================================================
   category-style.css — Strawberry Kale Category Pages
   --cat-color is set per-category via body class in functions.php
   ============================================================ */

:root { --cat-color: var(--blush); }

/* ── Section Separator (shared, also loaded on cat pages) ── */
.section-sep { width:100%; padding:0 48px; display:flex; align-items:center; gap:24px; margin-bottom:48px; }
.section-sep--blush { background:var(--blush); }
.section-sep--sage  { background:var(--sage); }
.section-sep--rose  { background:var(--deep-rose); }
.section-sep--tan   { background:var(--warm-tan); }
.section-sep--dark  { background:var(--dark); }
.section-sep__title { font-family:'Cormorant Garamond',serif; font-size:clamp(1.6rem,3vw,2.2rem); font-weight:600; color:#fff; line-height:1; padding:14px 0; white-space:nowrap; }
.section-sep--tan .section-sep__title { color:var(--dark); }
.section-sep__line  { flex:1; height:1px; background:rgba(255,255,255,0.3); }
.section-sep--tan .section-sep__line { background:rgba(59,47,47,0.2); }
.section-sep__label { font-family:'Jost',sans-serif; font-size:10px; font-weight:600; letter-spacing:0.22em; text-transform:uppercase; color:rgba(255,255,255,0.75); white-space:nowrap; padding:10px 0; }
.section-sep--tan .section-sep__label { color:var(--mid); }
.section-sep__cta   { font-family:'Jost',sans-serif; font-size:11px; font-weight:500; letter-spacing:0.16em; text-transform:uppercase; color:rgba(255,255,255,0.9); border:1px solid rgba(255,255,255,0.5); padding:7px 18px; border-radius:2px; white-space:nowrap; transition:background 0.2s; }
.section-sep__cta:hover { background:rgba(255,255,255,0.15); }


/* ── Category Hero ── */
.cat-hero {
  position: relative; width: 100%; height: 52vh;
  min-height: 340px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cat-hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #d4a880 0%, #a06848 60%, #7a4830 100%);
  background-size: cover; background-position: center;
}
.cat-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(30,16,10,0.38);
}
.cat-hero__placeholder {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 160px; opacity: 0.15; pointer-events: none; user-select: none;
}
.cat-hero__inner { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.cat-hero__eyebrow {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 14px; display: block;
}
.cat-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 600;
  color: #fff; line-height: 1; letter-spacing: -0.01em;
}
.cat-hero__desc {
  font-family: 'Lato', sans-serif; font-size: 15px;
  color: rgba(255,255,255,0.65); max-width: 480px;
  margin: 16px auto 0; line-height: 1.7;
}


/* ── Colored Divider ── */
.cat-divider {
  width: 100%; background: var(--cat-color);
  display: flex; align-items: center;
  padding: 0 48px; gap: 24px; min-height: 52px;
}
.cat-divider__count {
  font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); white-space: nowrap;
}
.cat-divider__line { flex: 1; height: 1px; background: rgba(255,255,255,0.25); }
.cat-divider__sort { display: flex; gap: 6px; align-items: center; }
.cat-divider__sort label {
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.65);
}
.cat-divider__sort select {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-family: 'Jost', sans-serif; font-size: 10px;
  letter-spacing: 0.1em; padding: 4px 10px; border-radius: 2px; cursor: pointer; outline: none;
}
.cat-divider__sort select option { color: var(--dark); background: #fff; }


/* ── Recipe Grid ── */
.cat-grid-wrap { max-width: 1280px; margin: 0 auto; padding: 56px 40px 80px; }
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 36px 28px; }

.recipe-card { display: block; cursor: pointer; }
.recipe-card__img {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  margin-bottom: 18px; position: relative;
}
.recipe-card__img-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 72px;
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
  position: relative;
}
.recipe-card:hover .recipe-card__img-inner { transform: scale(1.05); }

.recipe-card:nth-child(1)  .recipe-card__img-inner { background:linear-gradient(135deg,#e8b898,#c07858); }
.recipe-card:nth-child(2)  .recipe-card__img-inner { background:linear-gradient(135deg,#f0d0a0,#c89060); }
.recipe-card:nth-child(3)  .recipe-card__img-inner { background:linear-gradient(135deg,#c8d8a8,#889858); }
.recipe-card:nth-child(4)  .recipe-card__img-inner { background:linear-gradient(135deg,#e0b8b0,#b07870); }
.recipe-card:nth-child(5)  .recipe-card__img-inner { background:linear-gradient(135deg,#c0d8c8,#708880); }
.recipe-card:nth-child(6)  .recipe-card__img-inner { background:linear-gradient(135deg,#d8c8a0,#907860); }
.recipe-card:nth-child(7)  .recipe-card__img-inner { background:linear-gradient(135deg,#e8d0b8,#c09070); }
.recipe-card:nth-child(8)  .recipe-card__img-inner { background:linear-gradient(135deg,#b8d0b0,#689070); }
.recipe-card:nth-child(9)  .recipe-card__img-inner { background:linear-gradient(135deg,#d8b8c8,#987080); }

/* Colored left-edge accent on hover */
.recipe-card__img::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--cat-color); z-index: 2;
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s ease;
}
.recipe-card:hover .recipe-card__img::before { transform: scaleY(1); }

.recipe-card__cat {
  font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cat-color); display: block; margin-bottom: 7px;
}
.recipe-card__title {
  font-family: 'Cormorant Garamond', serif; font-size: 1.35rem;
  font-weight: 600; color: var(--dark); line-height: 1.25; margin-bottom: 8px;
  transition: color 0.2s;
}
.recipe-card:hover .recipe-card__title { color: var(--cat-color); }
.recipe-card__excerpt { font-size: 13.5px; color: var(--mid); line-height: 1.7; margin-bottom: 12px; }
.recipe-card__meta {
  display: flex; gap: 14px; font-family: 'Jost', sans-serif;
  font-size: 10px; color: #bbb; letter-spacing: 0.08em; align-items: center;
}
.recipe-card__meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--warm-tan); flex-shrink: 0; }

/* Real thumbnail inside card */
.recipe-card__img-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* ── Pagination ── */
.cat-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; padding: 32px 0 0; border-top: 1px solid var(--border); margin-top: 16px;
  flex-wrap: wrap;
}
/* WordPress generates .page-numbers, we style it */
.cat-pagination .page-numbers,
.cat-pagination .page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 500;
  color: var(--mid); border: 1.5px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}
.cat-pagination .page-numbers:hover,
.cat-pagination .page-numbers.current,
.cat-pagination .page-btn.active {
  background: var(--cat-color); border-color: var(--cat-color); color: #fff;
}
.cat-pagination .page-numbers.prev,
.cat-pagination .page-numbers.next { gap: 6px; padding: 0 14px; }
.cat-pagination .page-numbers.dots { border: none; color: #ccc; }

.skb-no-posts { text-align: center; color: var(--mid); padding: 80px 0; font-style: italic; font-size: 1.1rem; }


/* ── Responsive ── */
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .cat-divider    { padding: 0 20px; }
  .cat-grid-wrap  { padding: 36px 20px 60px; }
  .cat-divider__sort { display: none; }
}
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }
