/* ============================================
   Varsity Grind — Social Media Page Styles
   Page-specific components that extend the main
   design system in assets/styles.css
   ============================================ */

/* ---------- Hero with phone mockup ---------- */
.sm-hero {
  padding-bottom: var(--space-2xl);
}
.sm-supporting {
  max-width: 720px;
  margin: 0.5rem auto 1.75rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.sm-hero-visual {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.sm-phone {
  width: 300px;
  background: linear-gradient(160deg, #0a1530, #17264a);
  border-radius: 36px;
  padding: 14px 10px;
  border: 3px solid var(--color-accent);
  box-shadow: var(--shadow-dark);
  position: relative;
}
.sm-phone-top {
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}
.sm-phone-top span {
  width: 60px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
}
.sm-phone-screen {
  background: #0f1e3d;
  border-radius: 22px;
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(244, 180, 0, 0.2);
}

.sm-post {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 180, 0, 0.25);
  border-radius: 14px;
  padding: 0.75rem;
  color: var(--color-white);
}
.sm-post-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.sm-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-accent-dark);
}
.sm-avatar-ig {
  background: linear-gradient(135deg, #f09433, #dc2743, #bc1888);
  color: #fff;
}
.sm-handle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-white);
}
.sm-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}
.sm-post-image {
  height: 130px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(244, 180, 0, 0.35), transparent 55%),
    linear-gradient(135deg, #1a2a52, #0a1530);
  position: relative;
  margin-bottom: 0.55rem;
  overflow: hidden;
}
.sm-post-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 10px,
    rgba(255, 255, 255, 0.03) 10px 20px
  );
}
.sm-post-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-primary);
  z-index: 1;
  border: 1px solid var(--color-accent-dark);
}
.sm-post-caption {
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.55rem;
}
.sm-post-caption-alt {
  margin-bottom: 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.sm-post-actions {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.sm-post-alt {
  background: linear-gradient(135deg, rgba(244, 180, 0, 0.12), rgba(244, 180, 0, 0.02));
  border-color: rgba(244, 180, 0, 0.4);
}

.sm-flow-chip {
  position: absolute;
  right: calc(50% - 230px);
  top: 40px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.sm-flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.2);
}

/* ---------- Two Engines (Solution section) ---------- */
.sm-two-engines {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 1rem;
}
.sm-engine {
  background: linear-gradient(160deg, var(--color-card) 0%, var(--color-card-alt) 100%);
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-dark);
  position: relative;
  display: flex;
  flex-direction: column;
}
.sm-engine-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(244, 180, 0, 0.18);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  border: 2px solid rgba(244, 180, 0, 0.4);
  margin-bottom: 1rem;
}
.sm-engine-icon svg { width: 28px; height: 28px; }
.sm-engine-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(244, 180, 0, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(244, 180, 0, 0.35);
  margin-bottom: 0.65rem;
  align-self: flex-start;
}
.sm-engine h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  margin-bottom: 0.65rem;
}
.sm-engine p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1rem;
}
.sm-engine-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.sm-engine-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}
.sm-engine-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}
.sm-engine-plus {
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
  padding: 0 0.5rem;
}

.sm-equals {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.sm-equals-bar {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.sm-equals-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.75rem 1.25rem;
  background: rgba(244, 180, 0, 0.12);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-full);
}
.sm-equals-text strong { color: var(--color-accent-dark); }

/* ---------- Timeline (How It Works) ---------- */
.sm-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sm-timeline-step {
  background: linear-gradient(160deg, var(--color-card) 0%, var(--color-card-alt) 100%);
  border: 2px solid var(--color-primary-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--color-text-on-dark);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
}
.sm-timeline-step:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-dark);
}
.sm-timeline-step h3 {
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.sm-timeline-step p {
  color: var(--color-text-on-dark-muted);
  font-size: 0.92rem;
}
.sm-timeline-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  border: 2px solid var(--color-accent-dark);
  box-shadow: 0 4px 14px rgba(244, 180, 0, 0.4);
}

/* ---------- Content Pillars ---------- */
.sm-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.sm-pillar {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.sm-pillar:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}
.sm-pillar-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.sm-pillar h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.sm-pillar p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------- Package note ---------- */
.sm-package-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 0.9rem 1.25rem;
  background: rgba(244, 180, 0, 0.08);
  border: 1px dashed rgba(244, 180, 0, 0.4);
  border-radius: var(--radius-md);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Add-ons ---------- */
.sm-addon-grid { margin-bottom: 1rem; }
.sm-addon {
  display: flex;
  flex-direction: column;
  position: relative;
}
.sm-addon-price {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  border: 2px solid var(--color-accent-dark);
  box-shadow: 0 3px 10px rgba(244, 180, 0, 0.3);
  align-self: flex-start;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sm-two-engines {
    grid-template-columns: 1fr;
  }
  .sm-engine-plus {
    padding: 0.5rem 0;
    font-size: 1.8rem;
  }
  .sm-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-flow-chip {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(-50%);
  }
  .sm-hero-visual {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 640px) {
  .sm-phone { width: 260px; }
  .sm-timeline { grid-template-columns: 1fr; }
  .sm-pillars { grid-template-columns: 1fr; }
  .sm-equals {
    flex-direction: column;
    gap: 0.75rem;
  }
  .sm-equals-bar {
    max-width: 80px;
    width: 80px;
  }
  .sm-equals-text { font-size: 0.95rem; }
}
