/* Interactive Codec Guide Styles */

/* Center navigation tabs */
.nav-inner {
  justify-content: center;
}

/* Wizard Container */
.wizard-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Step Progress Indicator */
.step-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  gap: 12px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
  margin: -8px -12px;
}

.step-indicator:hover {
  background: rgba(255,255,255,0.05);
}

.step-indicator.active {
  color: rgba(255,255,255,0.95);
  cursor: default;
}

.step-indicator.active:hover {
  background: transparent;
}

.step-indicator.completed {
  color: rgba(0,212,170,0.9);
}

.step-indicator.completed:hover {
  color: rgba(0,212,170,1);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.step-indicator.active .step-number {
  background: linear-gradient(135deg, #00d4aa, #00a8ff);
  color: #000;
}

.step-indicator.completed .step-number {
  background: rgba(0,212,170,0.2);
  color: #00d4aa;
}

.step-arrow {
  color: rgba(255,255,255,0.2);
  font-size: 18px;
}

/* Selection Summary */
.selection-summary {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 16px 24px;
  background: rgba(0,212,170,0.05);
  border: 1px solid rgba(0,212,170,0.15);
  border-radius: 12px;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.selection-item.filled {
  opacity: 1;
}

.selection-label {
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.selection-value {
  font-weight: 700;
  color: #00d4aa;
}

@media (max-width: 640px) {
  .selection-summary {
    flex-direction: column;
    gap: 12px;
  }
}

/* Wizard Step */
.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  text-align: center;
  margin-bottom: 12px;
}

.step-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-bottom: 40px;
}

/* Option Cards */
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.option-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.option-card.selected {
  background: rgba(0,212,170,0.1);
  border-color: #00d4aa;
}

.option-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

.option-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
  line-height: 1.3;
}

.option-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Navigation Buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.btn-wizard {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
}

.btn-back:hover {
  background: rgba(255,255,255,0.12);
}

.btn-next {
  background: linear-gradient(135deg, #00d4aa, #00a8ff);
  color: #000;
  font-weight: 700;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,212,170,0.3);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Recommendations Panel */
.recommendations-panel {
  display: none;
  margin-top: 40px;
}

.recommendations-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

.rec-summary {
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,168,255,0.15));
  border: 2px solid rgba(0,212,170,0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.rec-summary-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}

.rec-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.rec-summary-item {
  font-family: 'DM Sans', sans-serif;
}

.rec-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.rec-summary-value {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}

/* Settings Panels */
.settings-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.settings-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.setting-row {
  margin-bottom: 28px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: #00d4aa;
}

.setting-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-top: 8px;
}

/* Preset Selector */
.preset-selector {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.preset-option {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preset-option:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}

.preset-option.selected {
  background: rgba(0,212,170,0.15);
  border-color: #00d4aa;
}

.preset-option.recommended {
  border-color: #00a8ff;
}

.preset-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  margin-bottom: 4px;
}

.preset-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.preset-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #00a8ff;
  margin-top: 4px;
}

/* CRF Slider */
.crf-slider-container {
  margin-top: 12px;
}

.crf-value-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00d4aa;
  text-align: center;
  margin-bottom: 16px;
}

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

.crf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4aa;
  cursor: pointer;
}

.crf-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #00d4aa;
  cursor: pointer;
  border: none;
}

.crf-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.crf-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Inline Notes (replaces Special Considerations) */
.setting-notes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  background: rgba(255,193,7,0.08);
  border-left: 3px solid rgba(255,193,7,0.4);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
}

/* Collapsible Deep-Dive Notes */
.setting-detail {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  background: rgba(0,168,255,0.06);
  border-left: 3px solid rgba(0,168,255,0.35);
  border-radius: 0 6px 6px 0;
}

.setting-detail summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.setting-detail summary::-webkit-details-marker {
  display: none;
}

.setting-detail summary::before {
  content: '▸';
  font-size: 11px;
  color: rgba(0,168,255,0.7);
  transition: transform 0.15s ease;
  display: inline-block;
}

.setting-detail[open] summary::before {
  transform: rotate(90deg);
}

.setting-detail-body {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(0,168,255,0.12);
  margin-top: -2px;
  padding-top: 10px;
}

.setting-detail-body ul {
  margin: 0;
  padding-left: 18px;
}

.setting-detail-body li {
  margin-bottom: 6px;
}

.setting-detail-body li:last-child {
  margin-bottom: 0;
}

.setting-detail-body p {
  margin: 0 0 8px;
}

.setting-detail-body p:last-child {
  margin-bottom: 0;
}

.setting-detail-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  color: rgba(255,255,255,0.85);
}

/* Important collapsible notes (yellow styling) */
.setting-detail-important {
  background: rgba(255,193,7,0.08);
  border-left: 3px solid rgba(255,193,7,0.4);
}

.setting-detail-important summary::before {
  color: rgba(255,193,7,0.7);
}

.setting-detail-important .setting-detail-body {
  border-top: 1px solid rgba(255,193,7,0.12);
}

/* Special Considerations (deprecated — kept for backward compat) */
.special-considerations {
  margin-top: 32px;
}

.consideration-item {
  background: rgba(255,193,7,0.1);
  border-left: 4px solid #ffc107;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 4px;
}

.consideration-item.info {
  background: rgba(0,168,255,0.1);
  border-left-color: #00a8ff;
}

.consideration-item.success {
  background: rgba(0,212,170,0.1);
  border-left-color: #00d4aa;
}

.consideration-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.consideration-icon {
  font-size: 18px;
}

.consideration-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.consideration-description {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* Command Generator */
.command-generator {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.command-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
}

.command-tabs {
  display: flex;
  gap: 8px;
}

.command-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.command-tab:hover {
  background: rgba(255,255,255,0.08);
}

.command-tab.active {
  background: rgba(0,212,170,0.15);
  border-color: #00d4aa;
  color: #00d4aa;
}

.command-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 12px;
}

.btn-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(0,212,170,0.15);
  border: 1px solid #00d4aa;
  color: #00d4aa;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-copy:hover {
  background: rgba(0,212,170,0.25);
}

/* Reset Button */
.btn-reset {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 32px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.btn-reset:hover {
  background: rgba(255,255,255,0.12);
}

/* Compatibility Matrix */
.compatibility-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.compat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.compat-icon {
  font-size: 16px;
}

.compat-icon.yes {
  color: #00d4aa;
}

.compat-icon.no {
  color: #ff5252;
}

.compat-icon.maybe {
  color: #ffc107;
}

/* Stacked Wizard Styles */
.wizard-step {
  display: block !important; /* Override the default display:none */
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wizard-step.active {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.wizard-step.completed {
  background: rgba(0,212,170,0.05);
  border-color: rgba(0,212,170,0.2);
  cursor: pointer;
}

.wizard-step.completed:hover {
  background: rgba(0,212,170,0.1);
}

.wizard-step-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
}

.wizard-step.completed .wizard-step-header {
  cursor: pointer;
}

.step-header-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.wizard-step.active .step-number-badge {
  background: linear-gradient(135deg, #00d4aa, #00a8ff);
  color: #000;
}

.wizard-step.completed .step-number-badge {
  background: rgba(0,212,170,0.2);
  color: #00d4aa;
}

.step-selection-preview {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #00d4aa;
  display: none;
}

.wizard-step.completed .step-selection-preview {
  display: block;
}

.wizard-step-content {
  padding: 0 24px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}

.wizard-step.active .wizard-step-content {
  max-height: 500px; /* Large enough to fit content */
  opacity: 1;
  padding-bottom: 24px;
}

/* Hide original titles inside content since we have headers now */
.wizard-step-content .step-title,
.wizard-step-content .step-subtitle {
  display: none;
}

/* Adjust option grid for inside the stack */
.wizard-step-content .option-grid {
  margin-bottom: 0;
}

