/**
 * Impactiqa — ideas.css
 * Ideas (blog) panel page.
 * Warm sand background (#f0eadb).
 */

/* ── Panel variables ─────────────────────────────────────────────────────── */
:root {
  --panel-mute: rgba(10,10,10,.5);
  --panel-rule: rgba(10,10,10,.12);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html, body { height: 100%; }
body {
  background: var(--panel-bg, #f0eadb);
  color: var(--panel-fg, #0a0a0a);
  overflow-x: hidden;
}
main {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ideas-hero {
  padding: 0 8vw 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Filter pills ────────────────────────────────────────────────────────── */
.ideas-filters {
  padding: 0 8vw 52px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--panel-rule);
}
.ideas-filter {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--panel-rule);
  padding: 7px 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--panel-mute);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.ideas-filter:hover {
  border-color: rgba(10,10,10,.4);
  color: #0a0a0a;
}
.ideas-filter.is-active {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #f7f6f4;
}

/* ── Category pill ───────────────────────────────────────────────────────── */
.ideas-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(247,246,244,.25);
  padding: 4px 12px;
  border-radius: 999px;
  color: rgba(247,246,244,.7);
  margin-bottom: 28px;
  align-self: flex-start;
}
/* Category pill on light background (grid cards) */
.ideas-card .ideas-cat {
  border-color: var(--panel-rule);
  color: var(--panel-mute);
  margin-bottom: 20px;
}

/* ── Read link ───────────────────────────────────────────────────────────── */
.ideas-read-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7f6f4;
  border-bottom: 1px solid rgba(247,246,244,.4);
  padding-bottom: 1px;
  margin-left: auto;
  transition: opacity .2s;
}
.ideas-read-link:hover {
  opacity: .6;
}
/* Read link on light card */
.ideas-card .ideas-read-link {
  color: #0a0a0a;
  border-bottom-color: rgba(10,10,10,.35);
}

/* ── Featured article ────────────────────────────────────────────────────── */
.ideas-featured {
  background: #0a0a0a;
  color: #f7f6f4;
  padding: 64px 8vw 72px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: opacity .2s;
}
.ideas-featured:hover {
  opacity: .88;
}
.ideas-featured-inner {
  max-width: 900px;
  display: flex;
  flex-direction: column;
}
.ideas-featured-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 20px;
  color: #f7f6f4;
}
.ideas-featured-blurb {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247,246,244,.65);
  max-width: 680px;
  margin-bottom: 40px;
}
.ideas-featured-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(247,246,244,.45);
  border-top: 1px solid rgba(247,246,244,.12);
  padding-top: 20px;
}

/* ── Article grid ────────────────────────────────────────────────────────── */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--panel-rule);
  border-top: 1px solid var(--panel-rule);
}
.ideas-card {
  background: var(--panel-bg, #f0eadb);
  padding: 44px 8vw 52px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}
.ideas-card:hover {
  opacity: .82;
}
.ideas-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.ideas-card-blurb {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--panel-mute);
  flex: 1;
  margin-bottom: 32px;
}
.ideas-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 300;
  color: var(--panel-mute);
  border-top: 1px solid var(--panel-rule);
  padding-top: 18px;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.ideas-empty {
  display: none;
  padding: 64px 8vw;
  font-size: 14px;
  font-weight: 300;
  color: var(--panel-mute);
}
.ideas-empty.is-visible {
  display: block;
}

/* ── Newsletter CTA ──────────────────────────────────────────────────────── */
.ideas-newsletter {
  background: #0a0a0a;
  color: #f7f6f4;
  padding: 80px 8vw;
  margin-top: auto;
}
.ideas-newsletter-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 12px;
}
.ideas-newsletter-sub {
  font-size: 15px;
  font-weight: 300;
  color: rgba(247,246,244,.55);
  margin-bottom: 36px;
}
.ideas-newsletter-row {
  display: flex;
  gap: 0;
  max-width: 520px;
}
.ideas-newsletter-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(247,246,244,.3);
  padding: 12px 0;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: #f7f6f4;
  outline: none;
  transition: border-color .2s;
  min-width: 0;
}
.ideas-newsletter-input::placeholder {
  color: rgba(247,246,244,.3);
}
.ideas-newsletter-input:focus {
  border-bottom-color: rgba(247,246,244,.7);
}
.ideas-newsletter-submit {
  display: inline-flex;
  border: none;
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
  margin-left: 20px;
}
.ideas-newsletter-submit .vl {
  background: #f7f6f4;
  color: #0a0a0a;
  padding: 12px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s;
}
.ideas-newsletter-submit:hover .vl {
  background: #e0dfdc;
}
.ideas-newsletter-submit .vi {
  background: #FF2D8B;
  color: #f7f6f4;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }
  .ideas-card {
    padding: 40px 6vw 48px;
  }
}
@media (max-width: 640px) {
  .ideas-hero,
  .ideas-filters { padding-left: 6vw; padding-right: 6vw; }
  .ideas-featured { padding: 48px 6vw 56px; }
  .ideas-newsletter { padding: 60px 6vw; }
  .ideas-newsletter-row {
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
  }
  .ideas-newsletter-submit {
    margin-left: 0;
    align-self: flex-start;
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ideas-filter,
  .ideas-featured,
  .ideas-card,
  .ideas-read-link,
  .ideas-newsletter-input,
  .ideas-newsletter-submit .vl { transition: none; }
}
