/*
 * Skorbane v1 — Interactive Service x Style Studio Theme Engine CSS
 * Supports 6 architectural visual themes on the live preview canvas:
 * 1. liquid-glass (Cinematic Liquid Glass)
 * 2. industrial   (Industrial Contractor Pro)
 * 3. editorial    (Editorial Luxury Serif)
 * 4. sketch       (Sketch / Hand-Drawn Notebook & Post-It — sketch_design_system.md)
 * 5. brutalist    (Neo-Brutalist Bold)
 * 6. bistro       (Artisanal Storefront / Bistro)
 */

.sk-studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.sk-studio-sidebar {
  position: sticky;
  top: 96px;
  padding: 24px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.sk-studio-axis-group {
  margin-bottom: 24px;
}

.sk-studio-pill-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-studio-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d6e0;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sk-studio-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.sk-studio-btn.is-selected {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  color: #ffffff;
  font-weight: 600;
}

.sk-studio-style-btn.is-selected {
  background: rgba(255, 86, 86, 0.16);
  border-color: #ff5656;
  color: #ffffff;
  font-weight: 600;
}

/* Browser Frame & Preview Canvas */
.sk-studio-browser {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72);
  background: #0b0f17;
}

.sk-studio-browser-bar {
  background: #090b11;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sk-studio-dots {
  display: flex;
  gap: 7px;
}

.sk-studio-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.sk-studio-url-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #cbd5e1;
}

.sk-preview-canvas {
  min-height: 760px;
  padding: clamp(28px, 4vw, 48px);
  transition: background-color 0.28s ease, color 0.28s ease;
  position: relative;
}

/* =========================================================================
   THEME 1: CINEMATIC LIQUID GLASS (data-studio-theme="liquid-glass")
   ========================================================================= */
.sk-preview-canvas[data-studio-theme="liquid-glass"] {
  --st-bg: #07060e;
  --st-fg: #ffffff;
  --st-muted: #9899a8;
  --st-card: rgba(255, 255, 255, 0.06);
  --st-border: 1px solid rgba(255, 255, 255, 0.14);
  --st-accent: #38bdf8;
  --st-accent-fg: #050508;
  --st-radius: 20px;
  --st-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --st-font-head: 'Instrument Serif', Georgia, serif;
  --st-font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.18), transparent 45%),
    radial-gradient(circle at 80% 25%, rgba(139, 92, 246, 0.16), transparent 50%),
    #07060e;
  color: #ffffff;
  font-family: var(--st-font-body);
}

/* =========================================================================
   THEME 2: INDUSTRIAL CONTRACTOR PRO (data-studio-theme="industrial")
   ========================================================================= */
.sk-preview-canvas[data-studio-theme="industrial"] {
  --st-bg: #0f172a;
  --st-fg: #f8fafc;
  --st-muted: #94a3b8;
  --st-card: #1e293b;
  --st-border: 2px solid #334155;
  --st-accent: #f59e0b;
  --st-accent-fg: #0f172a;
  --st-radius: 6px;
  --st-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --st-font-head: 'Space Grotesk', sans-serif;
  --st-font-body: 'Inter', sans-serif;
  background-color: #0f172a;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #f8fafc;
  font-family: var(--st-font-body);
}

/* =========================================================================
   THEME 3: EDITORIAL LUXURY SERIF (data-studio-theme="editorial")
   ========================================================================= */
.sk-preview-canvas[data-studio-theme="editorial"] {
  --st-bg: #f8f5f0;
  --st-fg: #18181b;
  --st-muted: #52525b;
  --st-card: #ffffff;
  --st-border: 1px solid #d6d3cd;
  --st-accent: #18181b;
  --st-accent-fg: #f8f5f0;
  --st-radius: 4px;
  --st-shadow: 0 10px 30px rgba(24, 24, 27, 0.06);
  --st-font-head: 'Instrument Serif', Georgia, serif;
  --st-font-body: 'Inter', sans-serif;
  background: #f8f5f0;
  color: #18181b;
  font-family: var(--st-font-body);
}

/* =========================================================================
   THEME 4: SKETCH / HAND-DRAWN NOTEBOOK (data-studio-theme="sketch")
   Exact implementation of design-vault/sketch_design_system.md
   ========================================================================= */
.sk-preview-canvas[data-studio-theme="sketch"] {
  --st-bg: #fdfbf7;
  --st-fg: #2d2d2d;
  --st-muted: #57534e;
  --st-card: #fff9c4;
  --st-border: 3px solid #2d2d2d;
  --st-accent: #ff4d4d;
  --st-accent-secondary: #2d5da1;
  --st-accent-fg: #ffffff;
  --st-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --st-shadow: 4px 4px 0px 0px #2d2d2d;
  --st-font-head: 'Kalam', cursive;
  --st-font-body: 'Patrick Hand', cursive;
  background-color: #fdfbf7;
  background-image: radial-gradient(#e5e0d8 1px, transparent 1px);
  background-size: 24px 24px;
  color: #2d2d2d;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.08rem;
}

.sk-preview-canvas[data-studio-theme="sketch"] .st-card {
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 4px 4px 0px 0px #2d2d2d;
  border: 3px solid #2d2d2d;
  background: #ffffff;
  transform: rotate(-0.6deg);
}

.sk-preview-canvas[data-studio-theme="sketch"] .st-card:nth-child(even) {
  background: #fff9c4;
  transform: rotate(0.8deg);
  box-shadow: 8px 8px 0px 0px #2d2d2d;
}

.sk-preview-canvas[data-studio-theme="sketch"] .st-pill {
  background: #fff9c4;
  color: #2d5da1;
  border: 2px dashed #2d2d2d;
  box-shadow: 3px 3px 0px 0px #2d2d2d;
}

/* =========================================================================
   THEME 5: NEO-BRUTALIST BOLD (data-studio-theme="brutalist")
   ========================================================================= */
.sk-preview-canvas[data-studio-theme="brutalist"] {
  --st-bg: #facc15;
  --st-fg: #09090b;
  --st-muted: #27272a;
  --st-card: #ffffff;
  --st-border: 3px solid #09090b;
  --st-accent: #09090b;
  --st-accent-fg: #facc15;
  --st-radius: 0px;
  --st-shadow: 6px 6px 0px 0px #09090b;
  --st-font-head: 'Space Grotesk', sans-serif;
  --st-font-body: 'Plus Jakarta Sans', sans-serif;
  background: #facc15;
  color: #09090b;
  font-family: var(--st-font-body);
}

/* =========================================================================
   THEME 6: ARTISANAL STOREFRONT / BISTRO (data-studio-theme="bistro")
   ========================================================================= */
.sk-preview-canvas[data-studio-theme="bistro"] {
  --st-bg: #1c1412;
  --st-fg: #fef3c7;
  --st-muted: #d6c7b2;
  --st-card: rgba(254, 243, 199, 0.06);
  --st-border: 1px solid rgba(217, 119, 6, 0.38);
  --st-accent: #d97706;
  --st-accent-fg: #ffffff;
  --st-radius: 16px;
  --st-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  --st-font-head: 'Instrument Serif', Georgia, serif;
  --st-font-body: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at 50% 0%, #3b2314 0%, #1c1412 70%);
  color: #fef3c7;
  font-family: var(--st-font-body);
}

/* Shared Preview Components */
.st-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  background: var(--st-card);
  border: var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  margin-bottom: 32px;
}

.st-headline {
  font-family: var(--st-font-head);
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.st-card {
  background: var(--st-card);
  border: var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: 24px;
}

.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  border: var(--st-border);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.st-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--st-accent);
  color: var(--st-accent-fg);
  border: var(--st-border);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .sk-studio-layout {
    grid-template-columns: 1fr;
  }
  .sk-studio-sidebar {
    position: static;
    max-height: none;
  }
}
