/* ════════════════════════════════════════════════════════════════════
   Prisma Boutique v4 — design system
   Dark refinado, glass morphism sutil, accent laranja Ideia 4
   ════════════════════════════════════════════════════════════════════ */

:root {
  --ink-900: #0D0D0D;
  --ink-800: #141414;
  --ink-700: #1B1B1B;
  --ink-600: #262626;
  --brand: #FF8800;
  --brand-glow: rgba(255, 136, 0, 0.16);
}

/* ────────────────────────────────────────────────────────────────────
   Background — atmosfera, não plano
   ──────────────────────────────────────────────────────────────────── */
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 136, 0, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 136, 0, 0.04), transparent 70%),
    var(--ink-900);
  background-attachment: fixed;
}

::selection {
  background: rgba(255, 136, 0, 0.3);
  color: #fff;
}

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ────────────────────────────────────────────────────────────────────
   Bento Glass Card — assinatura do design system
   ──────────────────────────────────────────────────────────────────── */
.bento-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.40);
  transition: border-color 200ms ease, transform 200ms ease;
}

.bento-card:hover {
  border-color: rgba(255, 136, 0, 0.25);
}

.bento-card-accent {
  position: relative;
  overflow: hidden;
}

.bento-card-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255,136,0,0.10), transparent 60%);
  pointer-events: none;
}

/* ────────────────────────────────────────────────────────────────────
   Inputs / Buttons
   ──────────────────────────────────────────────────────────────────── */
.boutique-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E8E8E8;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  transition: border-color 180ms ease, background 180ms ease;
}
.boutique-input:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.boutique-input::placeholder { color: #5A5A5A; }

select.boutique-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238A8A8A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.boutique-btn {
  background: linear-gradient(180deg, #FF9933, #FF8800);
  color: #0D0D0D;
  border: 1px solid rgba(255, 136, 0, 0.6);
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease;
  box-shadow: 0 0 0 0 var(--brand-glow);
}
.boutique-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
.boutique-btn:active { transform: translateY(0); }

.boutique-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E8E8E8;
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
}
.boutique-btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ────────────────────────────────────────────────────────────────────
   Sidebar / nav
   ──────────────────────────────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: #BFBFBF;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 160ms ease;
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(255,136,0,0.14), rgba(255,136,0,0.04));
  color: var(--brand);
  border-left: 2px solid var(--brand);
  padding-left: calc(0.85rem - 2px);
}

/* ────────────────────────────────────────────────────────────────────
   Tipografia editorial
   ──────────────────────────────────────────────────────────────────── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
}
.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--brand);
  font-weight: 500;
}

/* KPI displays */
.kpi-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}
.kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #8A8A8A;
}
.kpi-delta-up   { color: #34d399; font-size: 0.85rem; font-weight: 600; }
.kpi-delta-down { color: #f87171; font-size: 0.85rem; font-weight: 600; }

/* ────────────────────────────────────────────────────────────────────
   Drag & Drop zone
   ──────────────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 200ms ease;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragging {
  border-color: var(--brand);
  background: rgba(255, 136, 0, 0.04);
}
.drop-zone.dragging {
  transform: scale(1.005);
  box-shadow: 0 0 0 6px var(--brand-glow);
}

/* ────────────────────────────────────────────────────────────────────
   Status pills (post status)
   ──────────────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid;
}
.pill-draft     { background: rgba(138,138,138,0.08); color: #BFBFBF;  border-color: rgba(138,138,138,0.25); }
.pill-pending   { background: rgba(255,136,0,0.10);   color: #FFA033;  border-color: rgba(255,136,0,0.40); }
.pill-approved  { background: rgba(52,211,153,0.08);  color: #34d399;  border-color: rgba(52,211,153,0.30); }
.pill-published { background: rgba(96,165,250,0.08);  color: #60a5fa;  border-color: rgba(96,165,250,0.30); }
.pill-rejected  { background: rgba(248,113,113,0.08); color: #f87171;  border-color: rgba(248,113,113,0.30); }

/* ────────────────────────────────────────────────────────────────────
   Toasts
   ──────────────────────────────────────────────────────────────────── */
.toast {
  background: linear-gradient(180deg, #1F1F1F, #161616);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-width: 280px;
  max-width: 380px;
  color: #E8E8E8;
  font-size: 0.9rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: toastIn 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-success { border-left: 3px solid #34d399; }
.toast-error   { border-left: 3px solid #f87171; }
.toast-info    { border-left: 3px solid var(--brand); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ────────────────────────────────────────────────────────────────────
   Approval cards (one-click)
   ──────────────────────────────────────────────────────────────────── */
.approval-card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 1.5rem;
  padding: 1.25rem;
  align-items: center;
}
.approval-card .preview {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink-700);
}
.approval-card .preview img,
.approval-card .preview video { width: 100%; height: 100%; object-fit: cover; }

.approval-actions { display: flex; gap: 0.5rem; }
.btn-approve {
  background: #34d399;
  color: #052e22;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms;
  border: none;
}
.btn-approve:hover { transform: translateY(-1px); }
.btn-reject {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.4);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}
.btn-reject:hover { background: rgba(248,113,113,0.08); }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--ink-700) 25%, var(--ink-600) 50%, var(--ink-700) 75%);
  background-size: 200% 100%;
  animation: skel 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
