/* components.ai-mode-settings.css */

/* AI Mode Selector Container */
.ai-mode-selector-container {
  max-width: 650px; /* Consistent width, not stretched */
}

/* AI Mode Radio Group Container */
.ai-mode-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 650px; /* Match container width */
}

/* Individual AI Mode Option */
.ai-mode-option {
  display: flex;
  align-items: start;
  cursor: pointer;
  padding: 10px 12px;
  border: 2px solid #444;
  border-radius: 6px;
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  transition: all 0.2s ease;
  position: relative;
  width: 100%; /* Fill container but respect max-width */
}

.ai-mode-option:hover {
  background: linear-gradient(145deg, #242424, #181818);
  border-color: #666;
  transform: translateX(2px);
}

.ai-mode-option.selected {
  border-color: #3fc1c9;
  background: linear-gradient(145deg, #1a2528, #0f1a1c);
  box-shadow: 0 0 12px rgba(63, 193, 201, 0.3);
}

/* Radio Input */
.ai-mode-option input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Content Area */
.ai-mode-content {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  position: relative; /* Needed for absolute positioning of children */
}

/* Mode Title */
.ai-mode-title {
  font-weight: 600;
  font-size: 13px;
  color: #e6e6e6;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Performance Metric */
.ai-mode-perf {
  font-size: 11px;
  color: #999;
  font-weight: normal;
}

/* Details Toggle Button */
.ai-mode-details-toggle {
  background: none;
  border: none;
  color: #3fc1c9;
  font-size: 10px;
  font-family: 'Nunito', sans-serif; /* Use body font, not Bangers */
  font-weight: 400;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.7;
  transition: opacity 0.2s;
  text-decoration: underline;
  margin-left: auto;
}

.ai-mode-details-toggle:hover {
  opacity: 1;
}

/* Fine-Tuning Toggle Button */
.ai-mode-tuning-toggle {
  margin-top: 10px;
  padding: 6px 12px;
  background: rgba(63, 193, 201, 0.1);
  border: 1px solid #2a4a4c;
  border-radius: 4px;
  color: #3fc1c9;
  font-size: 11px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  display: inline-block;
}

.ai-mode-tuning-toggle:hover {
  background: rgba(63, 193, 201, 0.2);
  border-color: #3fc1c9;
}

/* Expanded Details Section */
.ai-mode-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #333;
  display: none;
  font-size: 11px;
  line-height: 1.5;
  color: #bbb;
}

.ai-mode-details.expanded {
  display: block;
}

.ai-mode-details-title {
  font-weight: 600;
  color: #3fc1c9;
  margin-bottom: 6px;
  font-size: 11px;
}

.ai-mode-details p {
  margin: 4px 0;
}

.ai-mode-details-list {
  margin: 6px 0;
  padding-left: 16px;
}

.ai-mode-details-list li {
  margin: 3px 0;
  font-size: 10px;
}

/* Fine-Tuning Section for Shallow Mode */
.ai-mode-tuning {
  margin-top: 12px;
  padding: 10px;
  background: rgba(63, 193, 201, 0.05);
  border: 1px solid #2a4a4c;
  border-radius: 4px;
  display: none;
  max-width: 100%; /* Respect parent width */
}

.ai-mode-tuning.visible {
  display: block;
}

.ai-mode-tuning-title {
  font-size: 11px;
  font-weight: 600;
  color: #3fc1c9;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-tuning-param {
  margin-bottom: 10px;
}

.ai-tuning-param:last-child {
  margin-bottom: 0;
}

.ai-tuning-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #ddd;
  margin-bottom: 4px;
}

.ai-tuning-value {
  font-weight: 600;
  color: #3fc1c9;
  font-family: monospace;
}

.ai-tuning-input {
  width: 100%; /* Fill tuning panel width */
  height: 6px;
  background: #2a2a2a;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ai-tuning-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #3fc1c9;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(63, 193, 201, 0.5);
}

.ai-tuning-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #3fc1c9;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 4px rgba(63, 193, 201, 0.5);
}

.ai-tuning-help {
  font-size: 10px; /* Increased from 9px */
  color: #888;
  line-height: 1.4;
  margin-top: 3px;
}

/* Reset to Defaults Button Container */
.ai-tuning-reset-container {
  margin-top: 12px;
  text-align: left;
}

/* Reset to Defaults Button */
.ai-tuning-reset {
  padding: 6px 12px; /* Increased from 5px 10px */
  font-size: 11px; /* Increased from 10px */
  font-weight: 500;
  letter-spacing: 1px; /* Added letter-spacing */
  background: #2a2a2a;
  color: #bbb;
  border: 1px solid #444;
  border-radius: 3px;
  cursor: pointer;
  width: auto; /* Only as wide as needed, not stretched */
  transition: all 0.2s;
  display: inline-block;
  text-transform: uppercase; /* Makes letter-spacing more noticeable */
}

.ai-tuning-reset:hover {
  background: #333;
  border-color: #666;
  color: #e6e6e6;
}
