/* ==========================================================================
   SimpleShare Studios — Shell & 3-Column Standard Architecture
   Modular Layout across Player, Meeting, Streaming, Page & Podcast Studios
   ========================================================================== */

/* ── Hide generic Assets Navigator when viewing any Studio ───────────────── */
body.in-studio-mode #mediaBinPanel,
body.in-studio-mode .panel-reopen-pill-btn {
  display: none !important;
}

body.in-studio-mode .portal-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── Universal 3-Column Studio Layout Container ──────────────────────────── */
.studio-shell-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  height: calc(100vh - 54px);
  width: 100%;
  background: var(--ss-bg-base, #020610);
  overflow: hidden;
}

@media (max-width: 1200px) {
  .studio-shell-layout {
    grid-template-columns: 240px 1fr 280px;
  }
}

@media (max-width: 992px) {
  .studio-shell-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
}

/* ==========================================================================
   COLUMN 1 (LEFT): STUDIO FEATURE DECK & VERTICAL PRESET PICKER
   ========================================================================== */
.studio-deck-left {
  background: var(--ss-bg-sidebar, #050a14);
  border-right: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

/* Top Horizontal Feature Ribbon */
.studio-feature-ribbon {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: var(--ss-bg-surface, #070e1b);
  border-bottom: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  overflow-x: auto;
  scrollbar-width: none;
}

.studio-feature-ribbon::-webkit-scrollbar {
  display: none;
}

.studio-ribbon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ss-text-muted, #94a3b8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
}

.studio-ribbon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ss-text-primary, #ffffff);
  border-color: var(--ss-border-subtle, rgba(255, 255, 255, 0.1));
}

.studio-ribbon-btn.active {
  background: var(--ss-blue-soft, rgba(59, 130, 246, 0.15));
  color: var(--ss-blue-primary, #3b82f6);
  border-color: var(--ss-blue-border, rgba(59, 130, 246, 0.4));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.studio-ribbon-btn svg {
  width: 17px;
  height: 17px;
}

/* Ribbon Tooltip Indicator */
.studio-deck-header {
  padding: 12px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-deck-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ss-text-muted, #94a3b8);
}

.studio-deck-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--ss-blue-sky, #60a5fa);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Vertical Smooth Scroll Preset Picker */
.studio-vertical-picker {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.studio-vertical-picker::-webkit-scrollbar {
  width: 5px;
}

.studio-vertical-picker::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
}

/* Vertical Preset Card */
.studio-preset-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  background: var(--ss-bg-card, rgba(10, 20, 38, 0.72));
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.studio-preset-card:hover {
  background: var(--ss-bg-card-hover, rgba(16, 32, 60, 0.9));
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.studio-preset-card.active {
  border-color: var(--ss-blue-primary, #3b82f6);
  background: rgba(16, 32, 65, 0.95);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.studio-preset-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--ss-blue-primary, #3b82f6);
}

.preset-card-preview {
  height: 72px;
  border-radius: 6px;
  background: #020610;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preset-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preset-card-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ss-text-primary, #ffffff);
}

.preset-card-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ss-text-muted, #94a3b8);
  text-transform: uppercase;
}

.preset-card-desc {
  font-size: 11px;
  color: var(--ss-text-muted, #94a3b8);
  margin-top: 3px;
  line-height: 1.35;
}

/* ==========================================================================
   COLUMN 2 (CENTER): MAIN STAGE, ELEMENT DROPDOWN & UNIFORM SHARE DOCK
   ========================================================================== */
.studio-stage-center {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #030712;
  position: relative;
  height: 100%;
}

/* Center Top Bar: Element-to-Edit Dropdown */
.studio-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--ss-bg-surface, #070e1b);
  border-bottom: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  z-index: 10;
}

.studio-element-selector-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.studio-element-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ss-text-muted, #94a3b8);
}

.studio-element-select {
  background: rgba(10, 20, 38, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-element-select:focus {
  border-color: var(--ss-blue-primary, #3b82f6);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.studio-stage-status-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Center Live Canvas */
.studio-stage-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Uniform Share & Embed Dock (Always identical at bottom of center) */
.studio-share-dock {
  background: var(--ss-bg-surface, #070e1b);
  border-top: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 10;
}

.share-url-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 600px;
}

.share-url-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-text-dim, #64748b);
  white-space: nowrap;
}

.share-url-input {
  width: 100%;
  background: rgba(2, 6, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 6px;
  outline: none;
  cursor: text;
}

.share-url-input:focus {
  border-color: var(--ss-blue-primary, #3b82f6);
}

.share-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ss-text-primary, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-share-action:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-share-action.btn-launch-accent {
  background: var(--ss-brand-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8));
  border-color: rgba(59, 130, 246, 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.btn-share-action.btn-launch-accent:hover {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.55);
}

/* ==========================================================================
   COLUMN 3 (RIGHT): CUSTOMIZATION & INSPECTOR DOCK
   ========================================================================== */
.studio-inspector-right {
  background: var(--ss-bg-sidebar, #050a14);
  border-left: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.inspector-header {
  padding: 14px 16px;
  background: var(--ss-bg-surface, #070e1b);
  border-bottom: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.inspector-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.inspector-group-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ss-text-muted, #94a3b8);
  margin-bottom: 8px;
}

.inspector-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.inspector-control-label {
  font-size: 12px;
  color: var(--ss-text-secondary, rgba(255, 255, 255, 0.85));
}

.inspector-footer {
  padding: 12px 16px;
  background: var(--ss-bg-surface, #070e1b);
  border-top: 1px solid var(--ss-border-subtle, rgba(255, 255, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
