/* ═══════════════════════════════════════════════════════════════════════════
   ImpressionCore UI Components & Interactive Simulator Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Interactive Model Simulator & VRAM Calculator ── */
.ic-simulator-box {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass-bright);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-glass-lg), var(--shadow-neon-cyan);
  margin: 2.5rem 0;
}

.ic-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.ic-preset-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ic-preset-btn {
  background: rgba(14, 22, 36, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ic-preset-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.ic-preset-btn.active {
  background: linear-gradient(135deg, var(--accent-hero-blue) 0%, #1e293b 100%);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: var(--shadow-neon-cyan);
}

.ic-sim-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.ic-slider-group {
  margin-bottom: 1.5rem;
}

.ic-slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.ic-slider-label span {
  color: var(--accent-cyan);
  font-weight: 700;
}

.ic-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ic-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  transition: transform 0.15s;
}

.ic-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

/* Telemetry Display Meters */
.ic-sim-meters {
  background: var(--bg-glass-inset);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ic-meter-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ic-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-family: var(--font-mono);
}

.ic-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.ic-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  border-radius: 5px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.ic-progress-fill.warn {
  background: linear-gradient(90deg, var(--accent-amber) 0%, #f97316 100%);
}

.ic-progress-fill.danger {
  background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

/* ── Code Blocks & Syntax Panels ── */
.ic-code-panel {
  background: #080c14;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-glass);
}

.ic-code-header {
  background: rgba(18, 26, 40, 0.9);
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ic-code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.ic-code-body .kw { color: #38bdf8; font-weight: 600; }
.ic-code-body .cls { color: var(--accent-gold); font-weight: 600; }
.ic-code-body .str { color: #a7f3d0; }
.ic-code-body .cmt { color: #64748b; font-style: italic; }
.ic-code-body .num { color: #f472b6; }

/* ── 10 Laws Governance Badge Cards ── */
.ic-law-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-glass-gold);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ic-law-card:hover {
  background: var(--bg-glass-card-hover);
  box-shadow: var(--shadow-neon-gold);
  transform: translateY(-3px);
}

.ic-law-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255, 215, 0, 0.18);
}

.ic-law-title {
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.ic-law-literal {
  background: rgba(255, 215, 0, 0.05);
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: #fef08a;
  line-height: 1.65;
  font-style: normal;
}

.ic-law-translation {
  background: rgba(0, 240, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ic-law-tag-canon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.ic-law-tag-trans {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* ── Search Bar for Documentation ── */
.ic-search-wrap {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.ic-search-input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3.2rem;
  border-radius: 12px;
  background: var(--bg-glass-card);
  border: 1.5px solid var(--border-glass);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.ic-search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-neon-cyan);
}

.ic-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.ic-doc-category-pills {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.ic-pill-btn {
  background: var(--bg-glass-inset);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ic-pill-btn:hover, .ic-pill-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .ic-sim-grid {
    grid-template-columns: 1fr;
  }
}
