/* ═══════════════════════════════════════════════════════
   SOCIAL-MEDIA.CSS — Section 02
   White theme · Brand cards · Story rings · Growth charts
═══════════════════════════════════════════════════════ */

/* ── Section ───────────────────────────────────────── */
.social-media-section {
  background: #ffffff;
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}

/* Subtle blue atmosphere on white */
.social-media-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(65, 189, 254, 0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Second glow — right side, pink */
.social-media-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 45%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(225, 17, 251, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Faint background section number */
.sm-bg-num {
  position: absolute;
  top: clamp(16px, 3vw, 48px);
  right: clamp(12px, 4vw, 64px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(100px, 18vw, 220px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.045);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Header ────────────────────────────────────────── */
.sm-header {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.sm-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--sp-4);
}

.sm-section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-blue);
  display: block;
  flex-shrink: 0;
}

.sm-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0a0a0a;
  margin-bottom: var(--sp-4);
}

.sm-subheading {
  font-family: var(--font-body);
  font-size: clamp(var(--text-sm), 1.5vw, var(--text-lg));
  color: rgba(0, 0, 0, 0.52);
  max-width: 460px;
  line-height: 1.6;
}

/* ── Aggregate Stats Bar ───────────────────────────── */
.sm-stats-bar {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 64px);
  position: relative;
  z-index: 1;
}

.sm-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sm-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 3ch;
}

.sm-stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
  white-space: nowrap;
}

.sm-stat-divider {
  width: 1px;
  height: 38px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}


/* ── Story Ring — status-aware ──────────────────────── */
@property --sm-ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.sm-ring {
  --sm-ring-angle: 0deg;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  padding: 10px;
  background: conic-gradient(
    from var(--sm-ring-angle),
    var(--ring-from) 0%,
    var(--ring-to)   50%,
    var(--ring-from) 100%
  );
  flex-shrink: 0;
  transition: box-shadow 0.35s ease;
  animation: sm-ring-spin 4s linear infinite;
  position: relative;
}

@keyframes sm-ring-spin {
  to { --sm-ring-angle: 360deg; }
}

/* Status dot badge */
.sm-ring::after {
  content: '';
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  z-index: 2;
  transition: transform 0.3s ease;
}

.sm-card.status-active   .sm-ring::after { background: #22c55e; }
.sm-card.status-inactive .sm-ring::after { background: #f59e0b; }
.sm-card.status-past     .sm-ring::after { background: #ef4444; }

.sm-card:hover .sm-ring::after { transform: scale(1.2); }

/* Speed up ring spin on hover — per-status rules below handle the glow */
.sm-card:hover .sm-ring {
  animation: sm-ring-spin 2.5s linear infinite;
}

/* Cleaner per-status glow using the CSS var */
.sm-card.status-active:hover   .sm-ring { box-shadow: 0 0 22px rgba(34,197,94,0.55),  0 0 44px rgba(34,197,94,0.22); }
.sm-card.status-inactive:hover .sm-ring { box-shadow: 0 0 22px rgba(245,158,11,0.55), 0 0 44px rgba(245,158,11,0.22); }
.sm-card.status-past:hover     .sm-ring { box-shadow: 0 0 22px rgba(239,68,68,0.55),  0 0 44px rgba(239,68,68,0.22); }

/* Status-aware card hover border */
.sm-card.status-active:hover   { border-color: rgba(34,197,94,0.35);  box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 0 32px rgba(34,197,94,0.06); }
.sm-card.status-inactive:hover { border-color: rgba(245,158,11,0.35); box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 0 32px rgba(245,158,11,0.06); }
.sm-card.status-past:hover     { border-color: rgba(239,68,68,0.35);  box-shadow: 0 20px 48px rgba(0,0,0,0.12), 0 0 32px rgba(239,68,68,0.06); }

.sm-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px #ffffff;
}

.sm-ring-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sm-ring-initial {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

/* ── Card ───────────────────────────────────────────── */
.sm-card {
  width: 400px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition:
    border-color var(--t-base),
    box-shadow var(--t-base);
}

/* Top edge accent line */
.sm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(65, 189, 254, 0), transparent);
  opacity: 0;
  transition: opacity var(--t-slow), background var(--t-slow);
}

.sm-card:hover {
  border-color: rgba(65, 189, 254, 0.35);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(65, 189, 254, 0.12),
    0 0 32px rgba(65, 189, 254, 0.08);
}

.sm-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(65, 189, 254, 0.7), transparent);
}

.sm-card:hover .sm-ring {
  animation: sm-ring-spin 2.5s linear infinite;
  box-shadow:
    0 0 20px rgba(65, 189, 254, 0.45),
    0 0 40px rgba(65, 189, 254, 0.18);
}

/* ── Card Brand Info ────────────────────────────────── */
.sm-card-info {
  text-align: center;
  width: 100%;
}

.sm-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  line-height: 1.15;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sm-verified-badge {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  top: 1px;
}

.sm-brand-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.sm-brand-industry {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}


/* ── Total Reach ────────────────────────────────────── */
.sm-total-reach {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-md);
  transition: border-color var(--t-fast), background var(--t-fast);
}

.sm-card:hover .sm-total-reach {
  background: rgba(65, 189, 254, 0.05);
  border-color: rgba(65, 189, 254, 0.2);
}

.sm-reach-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-brand-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sm-reach-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.38);
}

/* ── Platform Buttons (2 columns) ───────────────────── */
.sm-platforms {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}

.sm-platform-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  min-width: 0;
  text-decoration: none;
  cursor: pointer;
}

a.sm-platform-btn:hover {
  background: rgba(65, 189, 254, 0.08);
  border-color: rgba(65, 189, 254, 0.35);
  transform: translateY(-1px);
}

.sm-platform-btn.no-link {
  cursor: default;
}

.sm-platform-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.45);
  transition: color var(--t-fast);
}

a.sm-platform-btn:hover .sm-platform-icon {
  color: rgba(65, 189, 254, 0.85);
}

.sm-platform-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #0a0a0a;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  line-height: 1;
}

/* ── Status bar (shown on hover) ────────────────────── */
.sm-status-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px 10px;
  background: linear-gradient(to top, rgba(255,255,255,0.96) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.sm-card:hover .sm-status-bar {
  opacity: 1;
  transform: translateY(0);
}

.sm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sm-card.status-active   .sm-status-dot { background: #22c55e; }
.sm-card.status-inactive .sm-status-dot { background: #f59e0b; }
.sm-card.status-past     .sm-status-dot { background: #ef4444; }

.sm-status-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sm-card.status-active   .sm-status-text { color: #22c55e; }
.sm-card.status-inactive .sm-status-text { color: #f59e0b; }
.sm-card.status-past     .sm-status-text { color: #ef4444; }

.sm-status-sep {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(0, 0, 0, 0.2);
}

.sm-status-period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.sm-card.status-inactive .sm-status-period { color: rgba(245, 158, 11, 0.65); }
.sm-card.status-past     .sm-status-period { color: rgba(239, 68, 68, 0.65); }

/* ── Row Wrapper ────────────────────────────────────── */
.sm-row-wrap {
  position: relative;
  z-index: 1;
}

.sm-row-wrap::before,
.sm-row-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(32px, 5vw, 88px);
  pointer-events: none;
  z-index: 2;
}

.sm-row-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, transparent 100%);
}

.sm-row-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, transparent 100%);
}

/* ── Cards row ──────────────────────────────────────── */
#sm-cards-row {
  overflow: hidden;
  overflow-x: hidden;
  scroll-snap-type: none;
  cursor: grab;
  gap: 0;
  padding: 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

#sm-cards-row.sm-dragging {
  cursor: grabbing;
}

.sm-cards-row {
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-8);
}

/* ── Auto-scroll track ──────────────────────────────── */
.sm-scroll-track {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  width: max-content;
  will-change: transform;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .sm-card {
    width: 320px;
    padding: 28px 22px 24px;
  }

  .sm-stats-bar {
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .sm-card {
    width: 290px;
  }

  .sm-stats-bar {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .sm-stat-divider {
    display: none;
  }
}

/* ── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sm-scroll-track {
    animation: none;
  }

  .sm-ring,
  .sm-card:hover .sm-ring {
    animation: none;
  }

}

/* ═══════════════════════════════════════════════════════
   Silver Play Button Achievement Card
═══════════════════════════════════════════════════════ */

.sm-achievement-card {
  background: linear-gradient(145deg, #181818 0%, #0e0e0e 100%);
  border: 1px solid rgba(192, 192, 192, 0.15);
  min-height: 430px;
  padding: 0;
  cursor: default;
}

/* Gold–silver top accent */
.sm-achievement-card::before {
  background: linear-gradient(90deg, transparent 0%, #C0C0C0 40%, #FFD700 60%, transparent 100%);
  opacity: 0.55;
  transition: opacity var(--t-slow);
}

.sm-achievement-card:hover::before {
  opacity: 1;
}

/* Card hover glow */
.sm-achievement-card:hover {
  border-color: rgba(192, 192, 192, 0.38);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.7),
    0 0 48px rgba(255, 215, 0, 0.08);
}

/* Photo — hidden by default, revealed on hover */
.sm-achievement-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.sm-achievement-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Gradient overlay on photo so bottom content stays readable */
.sm-achievement-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
}

.sm-achievement-card:hover .sm-achievement-photo {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Default body — fades out on hover */
.sm-achievement-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 36px 28px 40px;
  text-align: center;
  transition: opacity 320ms ease, transform 320ms ease;
}

.sm-achievement-card:hover .sm-achievement-body {
  opacity: 0;
  transform: scale(0.94);
}

/* YouTube icon badge */
.sm-achievement-yt {
  width: 66px;
  height: 66px;
  background: #FF0000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 28px rgba(255, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.sm-achievement-yt svg {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

/* Label pill */
.sm-achievement-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 215, 0, 0.55);
}

/* Title — silver metallic */
.sm-achievement-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e8e8e8 0%, #C0C0C0 50%, #a8a8a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin: 0;
}

/* Milestone count */
.sm-achievement-milestone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #FFD700;
  margin: 0;
  letter-spacing: 0.01em;
}

.sm-achievement-milestone svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Hover hint */
.sm-achievement-hover-hint {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .sm-achievement-card {
    min-height: 360px;
  }
}

@media (max-width: 480px) {
  .sm-achievement-card {
    min-height: 330px;
  }
}
