/**
 * Tuko — Publicar / Programar (Bloque 1)
 * Estética limpia: blanco, acento #3D50F2, sombras suaves, sin ruido visual.
 */

.config-product-status--scheduled {
  background-color: #eef2ff !important;
  color: #3730a3 !important;
}

.tuko-publish-section {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.tuko-publish-card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tuko-publish-status {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
}

.tuko-publish-status-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tuko-publish-status-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.tuko-publish-status-icon--draft {
  background: #f3f4f6;
  color: #6b7280;
}

.tuko-publish-status-icon--scheduled {
  background: #eef2ff;
  color: #3D50F2;
}

.tuko-publish-status-icon--active {
  background: #ecfdf5;
  color: #059669;
}

.tuko-publish-status-icon--closed {
  background: #fef2f2;
  color: #dc2626;
}

.tuko-publish-status-body {
  flex: 1;
  min-width: 0;
}

.tuko-publish-status-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.tuko-publish-status-hint {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
}

.tuko-publish-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tuko-publish-status-pill--scheduled {
  background: #eef2ff;
  color: #3730a3;
}

.tuko-publish-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.tuko-publish-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
  font-family: inherit;
}

.tuko-publish-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tuko-publish-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.tuko-publish-btn--ghost {
  background: transparent;
  color: #6b7280;
  border: 1px solid transparent;
}

.tuko-publish-btn--ghost:hover:not(:disabled) {
  background: #f9fafb;
  color: #374151;
}

.tuko-publish-btn--outline {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.tuko-publish-btn--outline:hover:not(:disabled) {
  border-color: #3D50F2;
  color: #3D50F2;
  background: #fafbff;
}

.tuko-publish-btn--primary {
  background: #3D50F2;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(61, 80, 242, 0.28);
  margin-left: auto;
}

.tuko-publish-btn--primary:hover:not(:disabled) {
  background: #3346d9;
  box-shadow: 0 4px 14px rgba(61, 80, 242, 0.35);
}

.tuko-publish-btn--danger {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}

.tuko-publish-btn--danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.38);
}

.tuko-publish-btn--danger-text {
  background: transparent;
  color: #dc2626;
  border: none;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-weight: 500;
}

.tuko-publish-btn--danger-text:hover:not(:disabled) {
  background: #fef2f2;
}

.tuko-publish-btn--loading {
  pointer-events: none;
  opacity: 0.8;
  position: relative;
  padding-right: 2.25rem;
}

.tuko-publish-btn--loading::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: -0.4375rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tukoPublishBtnSpin 0.65s linear infinite;
}

@keyframes tukoPublishBtnSpin {
  to { transform: rotate(360deg); }
}

.tuko-publish-actions-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.tuko-schedule-picker {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.tuko-schedule-picker-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.tuko-schedule-picker-input {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  color: #111827;
  background: #ffffff;
  font-family: inherit;
}

.tuko-schedule-picker-input:focus {
  outline: none;
  border-color: #3D50F2;
  box-shadow: 0 0 0 3px rgba(61, 80, 242, 0.15);
}

.tuko-schedule-picker-hint {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.tuko-publish-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.tuko-publish-modal-footer .tuko-publish-btn--primary {
  margin-left: auto;
}

@media (max-width: 640px) {
  .tuko-publish-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tuko-publish-btn--primary {
    margin-left: 0;
    order: -1;
  }

  .tuko-publish-actions-spacer {
    display: none;
  }
}
