/* Social Templates page styles */

/* Shared: social templates tab link shown on kit-public page */
.social-templates-tab-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.social-templates-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0A192F, #1a1040);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(99,102,241,.25);
}
.social-templates-tab-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.tab-badge {
  background: #FF6B35;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}
.social-templates-tab-hint {
  font-size: 13px;
  color: #94a3b8;
}

.social-body { background: #f7f8fa; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.social-header-nav { display: flex; align-items: center; gap: 12px; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.social-hero {
  width: 100%;
  padding: 56px 24px;
  display: flex;
  justify-content: center;
}
.social-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 800px;
  width: 100%;
}
.social-hero-logo svg { width: 72px; height: 72px; }
.social-hero-text h1 {
  margin: 0 0 8px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.social-hero-text p {
  margin: 0;
  font-size: 16px;
  opacity: 0.8;
}

/* ── Content area ─────────────────────────────────────────────────────────────── */
.social-content {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Download bar ────────────────────────────────────────────────────────────── */
.social-download-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px 24px;
  flex-wrap: wrap;
}
.social-download-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.social-download-info strong { font-size: 16px; font-weight: 700; color: #0f172a; }
.social-download-info span { font-size: 13px; color: #64748b; }
.social-download-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.social-zip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
}

/* ── Platform sections ───────────────────────────────────────────────────────── */
.social-platform-section { display: flex; flex-direction: column; gap: 16px; }

.social-platform-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.social-platform-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.social-platform-count {
  font-size: 13px;
  font-weight: 600;
  color: #6366f1;
  background: #eff2ff;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Template grid ────────────────────────────────────────────────────────────── */
.social-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.social-template-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
}
.social-template-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 20px rgba(99,102,241,.12);
}

.social-template-preview {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 120px;
  overflow: hidden;
}
.social-svg-preview {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 140px;
  object-fit: contain;
}

.social-template-meta {
  padding: 12px 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.social-template-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.social-template-info strong {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.social-template-info span {
  font-size: 11px;
  color: #94a3b8;
  font-family: 'Fira Mono', monospace;
}
.social-template-actions { display: flex; align-items: center; flex-shrink: 0; }

.social-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #6366f1;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.social-download-btn:hover { background: #4f46e5; transform: translateY(-1px); }
.social-download-btn:active { transform: scale(.97); }

/* ── Pro upsell ──────────────────────────────────────────────────────────────── */
.social-pro-upsell {
  padding: 0;
}
.social-pro-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #1a1040 0%, #0f172a 100%);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 14px;
  padding: 20px 24px;
}
.social-pro-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.social-pro-copy strong { font-size: 15px; font-weight: 700; color: #f0f6fc; }
.social-pro-copy span { font-size: 13px; color: #8b949e; line-height: 1.5; }
.social-pro-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #6366f1;
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s, transform .1s;
}
.social-pro-cta:hover { background: #4f46e5; transform: translateY(-1px); }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .social-hero-inner { flex-direction: column; text-align: center; }
  .social-hero-text h1 { font-size: 28px; }
  .social-download-bar { flex-direction: column; align-items: flex-start; }
  .social-templates-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .social-platform-header { flex-direction: column; align-items: flex-start; }
  .social-pro-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .social-templates-grid { grid-template-columns: 1fr; }
  .wiz-steps { display: none; }
}