/* ==============================================================================
   TAYYAR 6-THEME VISUAL EXPORT SHOWCASE
   Cyber Obsidian, Emerald, Violet, Amber, Ruby, & Clean Print Light
   ============================================================================== */

.themes-section {
  position: relative;
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.theme-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: start;
}

.theme-pill-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-laser);
  transform: translateY(-2px);
}

.theme-pill-btn.active {
  background: var(--bg-surface-elevated);
  color: #ffffff;
  border-color: var(--theme-accent, var(--laser-cyan));
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25);
}

.theme-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.theme-info {
  display: flex;
  flex-direction: column;
}

.theme-name {
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.theme-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Dynamic Live Report Preview Container */
.theme-preview-stage {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--theme-accent, var(--laser-cyan));
  background: var(--theme-bg, #0b132b);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--theme-glow, rgba(0, 242, 254, 0.2));
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.preview-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--theme-border, rgba(0, 242, 254, 0.25));
  background: var(--theme-header-bg, rgba(255, 255, 255, 0.03));
}

.preview-brand-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-report-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--theme-text, #ffffff);
}

.preview-report-meta {
  font-size: 0.75rem;
  color: var(--theme-muted, #94a3b8);
  font-family: var(--font-mono);
}

.preview-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--theme-badge-bg, rgba(0, 242, 254, 0.15));
  color: var(--theme-accent, #00f2fe);
  border: 1px solid var(--theme-accent, #00f2fe);
}

/* KPI Metrics Inside Preview */
.preview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 24px;
}

.preview-kpi-card {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--theme-card-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1));
}

.preview-kpi-lbl {
  font-size: 0.72rem;
  color: var(--theme-muted, #94a3b8);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.preview-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--theme-accent, #00f2fe);
}

/* SVG Chart Inside Preview */
.preview-chart-wrap {
  padding: 0 24px 20px 24px;
}

.preview-chart-svg {
  width: 100%;
  height: 120px;
  display: block;
}

/* Mini Table Inside Preview */
.preview-table-wrap {
  padding: 0 24px 24px 24px;
  overflow-x: auto;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: var(--theme-text, #ffffff);
}

.preview-table th {
  text-align: start;
  padding: 8px 12px;
  background: var(--theme-header-bg, rgba(255, 255, 255, 0.05));
  color: var(--theme-muted, #94a3b8);
  font-weight: 700;
  border-bottom: 1px solid var(--theme-border, rgba(255, 255, 255, 0.1));
}

.preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--theme-border-subtle, rgba(255, 255, 255, 0.05));
  font-family: var(--font-mono);
}

.preview-status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
}

/* Theme Swatch Specific Colors */
.swatch-obsidian { color: #00f2fe; }
.swatch-emerald { color: #00ff88; }
.swatch-violet { color: #a855f7; }
.swatch-amber { color: #f59e0b; }
.swatch-ruby { color: #f43f5e; }
.swatch-light { color: #0f172a; }

@media (max-width: 992px) {
  .theme-selector-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .theme-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
