/**
 * Align Studio chrome with deeneydigital.com hub look (Ghost purple, not GTA/Vice).
 * Additive overrides: keep Studio structure, borrow hub panel / pill / glass language.
 */

:root {
  --hub-panel: rgba(10, 16, 40, 0.82);
  --hub-panel-soft: rgba(131, 100, 199, 0.06);
  --hub-border: rgba(177, 163, 248, 0.12);
  --hub-radius-lg: 24px;
  --hub-radius-md: 18px;
  --hub-radius-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Match Digital: soft orbs, no continuous float */
body::before,
body::after {
  animation: none !important;
  filter: blur(80px);
  opacity: 1;
}

body::before {
  width: 42vw;
  height: 42vw;
  top: -14%;
  left: -12%;
  background: rgba(131, 100, 199, 0.16) !important;
}

body::after {
  width: 42vw;
  height: 42vw;
  right: -14%;
  bottom: -20%;
  background: rgba(14, 44, 120, 0.28) !important;
}

/* Primary CTAs read as Digital pills */
button.primary,
a.primary,
.studio-home-cta.primary,
.claim-btn-primary,
.studio-shop-unlock-btn.primary {
  border-radius: var(--hub-radius-pill) !important;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue)) !important;
  box-shadow: 0 16px 34px rgba(131, 100, 199, 0.32) !important;
}

button.secondary,
a.secondary,
.studio-home-cta--ghost {
  border-radius: var(--hub-radius-pill) !important;
}

/* Glass surfaces like hub panels */
.sidebar,
.shell-bar,
.topbar,
.customer-gate-card,
.claim-card,
.auth-card,
.connections-card {
  border-color: var(--hub-border) !important;
}

.sidebar {
  background: color-mix(in srgb, var(--hub-panel) 92%, transparent) !important;
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.shell-bar,
.topbar {
  border-radius: var(--hub-radius-md);
  background: rgba(10, 10, 18, 0.48) !important;
  border: 1px solid var(--hub-border);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.sidebar-nav-item {
  border-radius: var(--hub-radius-pill) !important;
}

.sidebar-nav-item.is-active,
.sidebar-nav-item[aria-current="page"] {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue)) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(131, 100, 199, 0.28);
}

.collection-tab,
.library-sort-select,
.media-kind-tabs .collection-tab {
  border-radius: var(--hub-radius-pill) !important;
}

.collection-tab.is-active {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.widget-card,
.media-card,
.studio-empty,
.first-run-card,
.redeem-panel,
.field-drawer,
.studio-dialog-panel {
  border-radius: var(--hub-radius-lg) !important;
  border-color: var(--hub-border) !important;
  background: color-mix(in srgb, var(--hub-panel) 88%, transparent) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hint,
.sidebar-note,
.studio-home-lead,
.dd-muted {
  color: #c4bfd9;
}

/* Title gradient like Digital marketing surfaces */
.studio-home-title,
.view-library .studio-home-title,
.claim-brand-text h1,
.auth-card h1 {
  background: linear-gradient(110deg, #fff 0%, var(--brand-accent) 62%, #d8d5ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .studio-home-title,
html[data-theme="light"] .view-library .studio-home-title,
html[data-theme="light"] .claim-brand-text h1,
html[data-theme="light"] .auth-card h1 {
  background: linear-gradient(110deg, var(--brand-blue) 0%, var(--brand-purple) 55%, #5a8fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Keep editor workspace readable: don't pill every tiny control */
.editor-canvas-bar button,
.dock-icon-btn,
.field-drawer button.icon-btn,
.layout-size-in,
.editor-layer-add-icon {
  border-radius: 12px !important;
}

.editor-shell {
  border-radius: var(--hub-radius-lg) !important;
  border-color: var(--hub-border) !important;
}

.app.editor-active .editor-shell {
  border-radius: 0 !important;
}
