/* ══════════════════════════════════════════
 *  slop-archive.css — foidslop
 *  Slop archive page (slop/archive.html)
 *  Requires global.css to be loaded first.
 * ══════════════════════════════════════════ */

/* ── Page title ─────────────────────────── */
.page-title { padding: 100px 40px 40px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.page-title-left { display: flex; flex-direction: column; }
.page-eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; animation: fadeUp 0.5s ease both 0.2s; }
.page-eyebrow::before { content: '✦'; font-size: 0.6rem; color: var(--muted); }
h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 400; line-height: 0.9; letter-spacing: 0.01em; color: var(--text); text-transform: uppercase; animation: fadeUp 0.5s ease both 0.28s; }
.page-desc { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 380px; animation: fadeUp 0.5s ease both 0.36s; }

/* ── Featured slop ──────────────────────── */
.featured-slop { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; transition: background 0.3s ease; }
.featured-slop:hover { background: rgba(255,255,255,0.02); }
.featured-slop:hover .featured-image img { transform: scale(1.04); }

.featured-image { position: relative; overflow: hidden; border-right: 1px solid var(--border); aspect-ratio: 1 / 1; height: 100%; }
.featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.featured-badge { position: absolute; top: 24px; left: 24px; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg); background: var(--text); padding: 6px 12px; }

/* Content panel — flex-start pushes text to the top left */
.featured-content { display: flex; flex-direction: column; justify-content: flex-start; padding: 60px 32px 40px 24px; height: 100%; }
.featured-eyebrow { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.featured-eyebrow::before { content: '✦'; font-size: 0.5rem; }

/* Title drastically increased */
.featured-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 400; line-height: 0.88; letter-spacing: 0.01em; color: var(--text); text-transform: uppercase; margin-bottom: 24px; }

/* Description increased and brightened */
.featured-desc { font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.5; max-width: 90%; margin-bottom: 32px; }
.featured-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.featured-tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 6px 12px; }

/* CTA increased */
.featured-cta { display: inline-flex; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); align-self: flex-start; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,0.3); transition: border-color 0.2s ease, gap 0.2s ease; }
.featured-slop:hover .featured-cta { border-color: var(--text); gap: 18px; }
.featured-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

/* margin-top: auto pushes the date to the very bottom of the column */
.featured-date { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: auto; padding-top: 28px; border-top: 1px solid var(--border); }

/* ── Archive section header ─────────────── */
.archive-header { display: flex; align-items: center; justify-content: space-between; padding: 32px 40px 24px; border-bottom: 1px solid var(--border); }
.archive-label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.archive-label::before { content: '✦'; font-size: 0.5rem; }
.archive-count { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ── Archive grid & Premium Cards ───────── */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); }

.archive-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s 0.3s;
  position: relative;
}
.archive-card:hover {
  background: rgba(255,255,255,0.025);
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
}
.archive-card:nth-child(3n) { border-right: none; }
.archive-card:nth-last-child(-n+3):nth-child(3n+1),
.archive-card:nth-last-child(-n+3):nth-child(3n+2),
.archive-card:nth-last-child(-n+3):nth-child(3n) { border-bottom: none; }

.archive-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.archive-card-img { aspect-ratio: 1 / 1; overflow: hidden; position: relative; }
.archive-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }

/* Subtle gradient overlay on hover so text always pops */
.archive-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.archive-card:hover .archive-card-img::after { opacity: 1; }

.archive-card-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); }

/* Typography polish */
.archive-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--text);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.archive-card:hover .archive-card-name {
  color: #ffffff;
}

.archive-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.archive-card-date { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.archive-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.archive-card-tag {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 7px;
}

/* ── Empty state ────────────────────────── */
.archive-empty { padding: 80px 40px; text-align: center; border-bottom: 1px solid var(--border); }
.archive-empty p { font-size: 0.82rem; color: var(--muted); line-height: 1.7; }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .archive-card:nth-child(2n) { border-right: none; }
  .archive-card:nth-last-child(-n+3):nth-child(3n+1),
  .archive-card:nth-last-child(-n+3):nth-child(3n+2),
  .archive-card:nth-last-child(-n+3):nth-child(3n) { border-bottom: 1px solid var(--border); }
  .archive-card:nth-last-child(-n+2):nth-child(2n+1),
  .archive-card:nth-last-child(-n+2):nth-child(2n) { border-bottom: none; }
}

@media (max-width: 900px) {
  .page-title { padding: 84px 24px 32px; flex-direction: column; align-items: flex-start; gap: 24px; }
  .featured-slop { grid-template-columns: 1fr; }
  .featured-image { aspect-ratio: 1 / 1; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  /* Reset padding and sizing for mobile so it looks clean stacked */
  .featured-content { height: auto; padding: 36px 24px; justify-content: flex-start; }
  .featured-title { font-size: clamp(2.5rem, 10vw, 4rem); margin-bottom: 20px; }
  .featured-desc { font-size: 0.95rem; max-width: 100%; margin-bottom: 28px; }
  .archive-header { padding: 24px 24px 20px; }
}

@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { border-right: none; }
  .archive-card:nth-child(2n) { border-right: none; }
  .archive-card:nth-last-child(-n+2):nth-child(2n+1),
  .archive-card:nth-last-child(-n+2):nth-child(2n) { border-bottom: 1px solid var(--border); }
  .archive-card:last-child { border-bottom: none; }
}

/* ── Load More Button ───────────────────── */
.archive-load-more { display: flex; justify-content: center; padding: 60px 40px; border-bottom: 1px solid var(--border); }
.load-more-btn {
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: 14px 32px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s ease;
}
.load-more-btn:hover { color: var(--text); border-color: var(--text); }
