/* ═══════════════════════════════════════════════════════════
   SOCIAL FEED SECTION
   ═══════════════════════════════════════════════════════════ */

.social-feed {
  position: relative;
  width: 100%;
  overflow: clip;
  padding: clamp(80px, 10vw, 140px) 0;
}

.social-feed-inner {
  position: relative;
  z-index: 1;
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

/* ── Section Header ──────────────────────────────────── */

.sf-header {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 80px);
}

.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.sf-eyebrow::before,
.sf-eyebrow::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.sf-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.sf-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--grey-400);
  font-weight: 400;
}

/* ── Post Grid ───────────────────────────────────────── */

.sf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
  margin-bottom: clamp(40px, 4vw, 64px);
}

/* ── Individual Post ─────────────────────────────────── */

.sf-post {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.sf-post-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Abstract patterns layered on each post */
.sf-post-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.sf-post[data-post="1"] .sf-post-bg { background: linear-gradient(135deg, #e6007e 0%, #009fe3 100%); }
.sf-post[data-post="2"] .sf-post-bg { background: linear-gradient(225deg, #1a1a1a 0%, #2e2e2e 50%, #27cfc3 100%); }
.sf-post[data-post="3"] .sf-post-bg { background: radial-gradient(circle at 30% 70%, #e6007e 0%, #0d0d0d 70%); }
.sf-post[data-post="4"] .sf-post-bg { background: linear-gradient(45deg, #009fe3 0%, #27cfc3 100%); }
.sf-post[data-post="5"] .sf-post-bg { background: conic-gradient(from 45deg, #e6007e, #009fe3, #27cfc3, #e6007e); }
.sf-post[data-post="6"] .sf-post-bg { background: linear-gradient(180deg, #2e2e2e 0%, #1a1a1a 50%, #e6007e 100%); }

/* ── Hover Overlay ───────────────────────────────────── */

.sf-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  transform: translateY(100%);
  transition: transform 0.25s var(--ease-out);
}

.sf-post:hover .sf-overlay,
.sf-post:focus-within .sf-overlay {
  transform: translateY(0);
}

.sf-overlay-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
  padding-top: clamp(12px, 1.5vw, 20px);
}

.sf-ig-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.7;
}

.sf-overlay-handle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.7;
}

.sf-overlay-caption {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sf-overlay-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.8;
}

.sf-heart-icon {
  width: 14px;
  height: 14px;
  color: var(--pink);
}

/* ── Scroll Reveal ───────────────────────────────────── */

.sf-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.sf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA Row ─────────────────────────────────────────── */

.sf-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sf-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(15px, 1.2vw, 17px);
  transition: transform 0.25s var(--ease-out);
}

.sf-cta-link:hover {
  transform: translateY(-2px);
}

.sf-cta-icon {
  width: 28px;
  height: 28px;
  color: var(--pink);
  flex-shrink: 0;
}

.sf-cta-handle {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sf-cta-follow {
  color: var(--grey-400);
  font-weight: 500;
  transition: color 0.25s ease;
}

.sf-cta-link:hover .sf-cta-follow {
  color: var(--white);
}

.sf-cta-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.sf-cta-link:hover .sf-cta-arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — every 200px from 1800 → 400
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1800px) {
  .sf-grid { gap: 18px; }
}

@media (max-width: 1600px) {
  .sf-grid { gap: 16px; }
}

@media (max-width: 1400px) {
  .sf-headline { font-size: clamp(44px, 5.5vw, 80px); }
}

@media (max-width: 1200px) {
  .sf-grid { gap: 14px; }
}

@media (max-width: 1000px) {
  .sf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 800px) {
  .sf-grid { gap: 12px; }
  .sf-headline { font-size: clamp(40px, 8vw, 60px); }
  .sf-overlay { padding: 14px; }
  .sf-overlay-caption { font-size: 12px; }

  /* Touch: show overlay persistently */
  .sf-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  }
  .sf-overlay-top { display: none; }
}

@media (max-width: 600px) {
  .sf-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .sf-overlay-caption { font-size: 11px; margin-bottom: 8px; }
  .sf-cta-link { font-size: 15px; }
}

@media (max-width: 400px) {
  .sf-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .sf-post { aspect-ratio: 4 / 3; }
  .sf-headline { font-size: 36px; }
}