/* ═══════════════════════════════════════════════
   Pakari Cosmética — Admin Editor Theme
   Aesthetic: Luxury organic · Warm neutrals · Gold
   ═══════════════════════════════════════════════ */

:root {
  --sand-50: #faf8f5;
  --sand-100: #f3efe8;
  --sand-200: #e8e0d4;
  --sand-300: #d4c9b8;
  --sand-600: #8c7a64;
  --sand-800: #4a3f33;
  --sand-900: #2e2720;
  --gold: #A0653C;
  --gold-light: #C4945A;
  --gold-glow: rgba(160, 101, 60, 0.15);
  --sage: #7a8c6e;
  --rose: #c4918a;
  --cream: #FDF6EE;
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-body: 'Pompiere', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--sand-50);
  color: var(--sand-800);
  overflow: hidden;
  height: 100vh;
}

/* ── Admin Bar ─────────────────────────────── */

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 56px;
  background: var(--sand-900);
  border-bottom: 1px solid rgba(184, 150, 62, 0.25);
  position: relative;
  z-index: 100;
}

.admin-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.admin-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-bar__logo {
  font-size: 1.3rem;
  color: var(--gold);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; text-shadow: 0 0 12px var(--gold-glow); }
}

.admin-bar__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--sand-100);
}

.admin-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-bar__status {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--sand-300);
  letter-spacing: 0.02em;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

/* ── Buttons ───────────────────────────────── */

.btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--sand-600);
  color: var(--sand-200);
}

.btn--outline:hover {
  border-color: var(--sand-300);
  color: var(--sand-100);
}

.btn--primary {
  background: var(--gold);
  color: var(--sand-900);
}

.btn--primary:hover {
  background: var(--gold-light);
  box-shadow: 0 2px 16px var(--gold-glow);
}

.btn--primary:active {
  transform: scale(0.97);
}

/* ── GrapesJS Overrides ────────────────────── */

#gjs {
  height: calc(100vh - 56px);
}

/* Panel backgrounds */
.gjs-one-bg { background-color: var(--sand-900) !important; }
.gjs-two-color { color: var(--sand-200) !important; }
.gjs-three-bg { background-color: var(--sand-800) !important; }
.gjs-four-color,
.gjs-four-color-h:hover { color: var(--gold) !important; }

/* Toolbar + buttons */
.gjs-pn-btn { color: var(--sand-300) !important; }
.gjs-pn-btn.gjs-pn-active { color: var(--gold) !important; }
.gjs-pn-btn:hover { color: var(--sand-100) !important; }

/* Block manager */
.gjs-block {
  font-family: var(--font-body) !important;
  color: var(--sand-200) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 6px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.gjs-block:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px var(--gold-glow) !important;
}

.gjs-block__media svg { fill: var(--sand-300) !important; }

/* Canvas frame */
.gjs-cv-canvas { background: var(--sand-100) !important; }

/* Layer/style manager text */
.gjs-field { background: var(--sand-800) !important; color: var(--sand-100) !important; }
.gjs-field input { color: var(--sand-100) !important; }
.gjs-input-holder input { color: var(--sand-100) !important; }

/* Scrollbars */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand-900); }
::-webkit-scrollbar-thumb { background: var(--sand-600); border-radius: 3px; }

/* ── Publish Overlay ───────────────────────── */

.publish-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(46, 39, 32, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.publish-overlay.active {
  display: flex;
}

.publish-modal {
  text-align: center;
  padding: 3rem 4rem;
  background: var(--cream);
  border-radius: 12px;
  border: 1px solid var(--sand-200);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.publish-modal__spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--sand-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.publish-modal__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--sand-600);
  letter-spacing: 0.02em;
}
