/**
 * Canvas OG Designer Studio - Estilos
 * Fijate Tools - Social Previewer
 */

.studio-modal-dialog {
  max-width: 980px !important;
  width: 95% !important;
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
}

.canvas-viewport-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.canvas-wrapper {
  width: 100%;
  aspect-ratio: 1200 / 630;
  max-width: 100%;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#og-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.canvas-badge-res {
  background-color: var(--bg-surface-elevated);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Panel de Controles del Estudio */
.studio-controls {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.studio-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Selector de Temas Visuales */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.theme-pill {
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.theme-pill.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
  transform: scale(1.02);
}

.theme-preview-midnight { background: linear-gradient(135deg, #090d16, #141c2e); }
.theme-preview-sunset { background: linear-gradient(135deg, #2e0854, #7c2d12); }
.theme-preview-ocean { background: linear-gradient(135deg, #082f49, #0e7490); }
.theme-preview-emerald { background: linear-gradient(135deg, #022c22, #064e3b); }
.theme-preview-purpleGlow { background: linear-gradient(135deg, #1a0b2e, #4c1d95); }
.theme-preview-cyber { background: linear-gradient(135deg, #030712, #111827); }
.theme-preview-minimalLight { background: linear-gradient(135deg, #f8fafc, #cbd5e1); color: #0f172a !important; }

/* Control de Rango */
.range-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.range-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-input {
  flex: 1;
  accent-color: var(--accent-primary);
}

.range-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  min-width: 32px;
}
