/**
 * Estilos para el Modal de Mockups de Redes Sociales
 * Proyecto: Personalizador Alter
 */

.social-mockup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  animation: socialFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes socialFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.social-mockup-modal {
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.social-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #f1f5f9;
  background: #fafaf9;
}

.social-mockup-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-mockup-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  background: #fdf2f8;
  border-radius: 0.85rem;
}

.social-mockup-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.social-mockup-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.15rem 0 0 0;
}

.social-mockup-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.social-mockup-close-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.social-mockup-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  overflow-y: auto;
  max-height: calc(92vh - 80px);
}

@media (max-width: 768px) {
  .social-mockup-body {
    grid-template-columns: 1fr;
  }
}

.social-mockup-preview-wrap {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  min-height: 380px;
}

.social-mockup-canvas-stage {
  width: 100%;
  height: 100%;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-mockup-canvas-stage canvas {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  max-width: 100%;
  max-height: 100%;
}

.social-mockup-sidebar {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  background: #ffffff;
  border-left: 1px solid #f1f5f9;
}

.social-mockup-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-mockup-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.social-mockup-format-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.social-format-btn {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 0.65rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.social-format-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.format-icon {
  font-size: 1.3rem;
}

.format-info strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
}

.format-info small {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
}

.social-mockup-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.social-theme-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.social-theme-btn.active {
  border-color: #7c3aed;
  background: #f5f3ff;
  color: #6d28d9;
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.swatch-minimal {
  background: radial-gradient(circle, #ffffff, #e2e8f0);
}

.swatch-dark {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
}

.swatch-pastel {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.swatch-checkered {
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
}

.social-mockup-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
}

.social-mockup-checkbox-label input {
  accent-color: #7c3aed;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.social-mockup-actions-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.social-btn-download {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.social-btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.social-btn-share {
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
  transition: all 0.2s ease;
}

.social-btn-share:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.35);
}
