/* ==========================================================================
   WebPlator Blueprint Console Styles - blueprint.css
   ========================================================================== */

.blueprint-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 80px; /* Header spacing */
}

/* Sidebar Navigation */
.blueprint-sidebar {
  width: 320px;
  background-color: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: var(--space-lg) 0;
  z-index: 100;
}

.sidebar-title {
  padding: 0 var(--space-lg) var(--space-md) var(--space-lg);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item {
  margin-bottom: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px var(--space-lg);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: var(--transition-fast);
}

.sidebar-link:hover {
  background-color: var(--bg-surface-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background-color: rgba(124, 58, 237, 0.08);
  color: var(--text-primary);
  border-left-color: var(--brand-primary);
  font-weight: 600;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Main Content Wrapper */
.blueprint-content {
  flex: 1;
  margin-left: 320px;
  padding: var(--space-2xl) var(--space-3xl);
  overflow-y: auto;
}

@media (max-width: 968px) {
  .blueprint-sidebar {
    display: none; /* In production/responsive we will toggle this, or use top navbar */
  }
  .blueprint-content {
    margin-left: 0;
    padding: var(--space-lg);
  }
}

/* Blueprint Section Panelling */
.blueprint-panel {
  display: none;
}

.blueprint-panel.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-out-expo) forwards;
}

.panel-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.panel-title {
  font-size: 2.25rem;
  margin-bottom: var(--space-xs);
}

.panel-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* UI/UX Tokens Displays */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.swatch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.swatch-preview {
  height: 100px;
  width: 100%;
}

.swatch-info {
  padding: var(--space-sm);
}

.swatch-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Interactive Component Box */
.component-demo-box {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  background-color: rgba(var(--brand-primary-rgb), 0.02);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Code Blocks styling */
pre {
  background-color: #0d0f14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  overflow-x: auto;
  margin: var(--space-md) 0 var(--space-xl) 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #c9d1d9;
}

/* CMS Page Builder Mock Sandbox */
.cms-builder-mock {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  height: 550px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-base);
  margin: var(--space-lg) 0;
}

.cms-dock {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cms-dock h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dock-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: var(--space-sm);
  border-radius: var(--radius-xs);
  cursor: grab;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  user-select: none;
}

.dock-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--brand-primary);
}

.cms-canvas {
  padding: var(--space-xl);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-size: 20px 20px;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
}

.cms-canvas-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-xl);
}

.canvas-element {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  position: relative;
  transition: var(--transition-fast);
}

.canvas-element:hover {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.canvas-element .element-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: var(--space-2xs);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.canvas-element:hover .element-actions {
  opacity: 1;
}

.element-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.element-btn:hover {
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.cms-settings-pane {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* SaaS Roadmap Timeline */
.timeline-slider-container {
  margin-bottom: var(--space-xl);
  background: var(--bg-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.timeline-nav {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline-nav-btn {
  background: none;
  border: none;
  padding: var(--space-md) var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  z-index: 2;
}

.timeline-nav-btn:hover {
  color: var(--text-primary);
}

.timeline-nav-btn.active {
  color: var(--brand-primary);
}

.timeline-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
}

.roadmap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  min-height: 350px;
}

@media (max-width: 768px) {
  .roadmap-card {
    grid-template-columns: 1fr;
  }
}

.roadmap-col h4 {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.roadmap-list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.roadmap-list-item svg {
  width: 18px;
  height: 18px;
  color: var(--brand-success);
  margin-top: 3px;
  flex-shrink: 0;
}

.roadmap-badge {
  background: linear-gradient(135deg, rgba(var(--brand-primary-rgb), 0.1) 0%, rgba(var(--brand-secondary-rgb), 0.1) 100%);
  color: var(--text-primary);
  font-weight: bold;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-md);
  border: 1px solid var(--glass-border);
}

/* Engineering Architecture Visualizer */
.arch-diagram {
  background-color: #080a0f;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  margin: var(--space-lg) 0;
  position: relative;
  overflow-x: auto;
}

.arch-row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
}

.arch-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  min-width: 150px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.arch-node.primary {
  border-color: var(--brand-primary);
  box-shadow: 0 0 15px rgba(var(--brand-primary-rgb), 0.15);
}

.arch-node.secondary {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 15px rgba(var(--brand-secondary-rgb), 0.15);
}

.arch-node h5 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.arch-node p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Interactive Revenue Calculator */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .calc-container {
    grid-template-columns: 1fr;
  }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.calc-results {
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-subtle);
}

.calc-result-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-success);
  margin: var(--space-xs) 0;
  line-height: 1;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.slider-input {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

/* Responsive overrides for Blueprint panels */
.responsive-slogan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-xl) 0;
  font-size: 0.9rem;
}
.domain-search-container {
  display: flex;
  gap: 10px;
  max-width: 600px;
  position: relative;
}
.responsive-maintenance-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .responsive-slogan-grid {
    grid-template-columns: 1fr;
  }
  .responsive-maintenance-grid {
    grid-template-columns: 1fr;
  }
  #maintenanceDivider {
    border-left: none !important;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0 !important;
    padding-top: var(--space-lg);
    margin-top: var(--space-md);
  }
}

@media (max-width: 576px) {
  .domain-search-container {
    flex-direction: column;
  }
  .domain-search-container button {
    width: 100%;
  }
}
