/* ==========================================================================
   ECLIPCSS TYPOGRAPHY STUDIO & MODULAR SCALE MATRIX
   Panel de Control Tipográfico para Administrador • TSolutions IPIDD
   ========================================================================== */

.typography-studio-container {
  background: linear-gradient(145deg, rgba(13, 19, 33, 0.96) 0%, rgba(20, 29, 47, 0.98) 100%);
  border: 1.5px solid rgba(50, 255, 126, 0.6);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 30px rgba(50, 255, 126, 0.25);
  margin-top: 30px;
  font-family: 'Quicksand', 'Advent Pro', sans-serif;
  color: #f1f5f9;
}

.typo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 14px;
}

.typo-title-box h2 {
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #32ff7e;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
}

.typo-title-box p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 4px 0 0 0;
}

.typo-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.typo-select {
  background: #0f172a;
  color: #f8fafc;
  border: 1.5px solid rgba(50, 255, 126, 0.4);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.typo-select:focus {
  border-color: #32ff7e;
  box-shadow: 0 0 10px rgba(50, 255, 126, 0.4);
}

/* Panel de Psicología e Insumos Tipográficos */
.typo-overview-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.typo-overview-left h4 {
  font-family: 'Advent Pro', sans-serif;
  font-size: 1.15rem;
  color: #32ff7e;
  margin: 0 0 6px 0;
}

.typo-overview-left p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.typo-font-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.typo-font-badge {
  background: rgba(50, 255, 126, 0.12);
  border: 1px solid rgba(50, 255, 126, 0.4);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Simulador y Escalado de Jerarquía */
.typo-hierarchy-viewport {
  background: rgba(10, 15, 26, 0.9);
  border: 1px solid rgba(50, 255, 126, 0.35);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}

.hierarchy-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 8px;
}

.hierarchy-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  gap: 16px;
}

.hierarchy-item:hover {
  border-color: rgba(50, 255, 126, 0.6);
  background: rgba(50, 255, 126, 0.05);
  transform: translateX(4px);
}

.hierarchy-label-meta {
  min-width: 140px;
}

.hierarchy-token-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #32ff7e;
  font-family: monospace;
}

.hierarchy-meta-detail {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 2px;
}

.hierarchy-text-preview {
  flex: 1;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Simulador de Lectura Real (Measure UX Writing) */
.typo-measure-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.measure-content-text {
  max-width: 65ch;
  line-height: 1.65;
  font-size: 1rem;
  color: #e2e8f0;
  margin-top: 10px;
}

/* Barra de Exportación de Tokens Tipográficos */
.typo-export-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.typo-export-btn {
  background: rgba(50, 255, 126, 0.12);
  border: 1.5px solid rgba(50, 255, 126, 0.5);
  color: #32ff7e;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.typo-export-btn:hover {
  background: #32ff7e;
  color: #050505;
  box-shadow: 0 0 20px rgba(50, 255, 126, 0.5);
  border-color: #32ff7e;
}

@media (max-width: 800px) {
  .typo-overview-panel {
    grid-template-columns: 1fr;
  }
}
