/* Wheel of Balance Styles */

/* Main Container */
.wolf-container {
  margin: 30px auto;
  padding: 30px;
  border: 1px solid #ded7c9;
  border-radius: 8px;
  background: #f8f2e4;
  box-shadow: none;
  font-family: inherit;
}

/* Header Section */
.wolf-header {
  text-align: center;
  margin-bottom: 30px;
  color: #202124;
}

.wolf-header h2 {
  margin: 0 0 10px 0;
  font-size: 2em;
  font-weight: 700;
}

.wolf-subtitle {
  margin: 0;
  font-size: 1.1em;
  opacity: 0.95;
}

/* Content Grid */
.wolf-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* Visual Section (Canvas) */
.wolf-visual-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#wolf-canvas {
  background: #fffdf8;
  border-radius: 50%;
  border: 1px solid #ded7c9;
  box-shadow: none;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#wolf-canvas:hover {
  transform: scale(1.02);
}

.wolf-legend {
  margin-top: 15px;
  text-align: center;
  color: #4b4a45;
}

.wolf-legend-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wolf-legend-color {
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: #315f72;
}

.wolf-legend-text {
  font-size: 0.9em;
  font-weight: 600;
}

/* Inputs Section */
.wolf-inputs-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

.wolf-input-card {
  background: #fffdf8;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ded7c9;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wolf-input-card:hover {
  transform: translateY(-2px);
  border-color: #315f72;
  box-shadow: none;
}

.wolf-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wolf-input-name {
  font-weight: 700;
  font-size: 1.05em;
  color: #2d3748;
  padding-left: 8px;
  border-radius: 4px;
}

.wolf-input-value {
  font-weight: 700;
  font-size: 1.2em;
  color: #315f72;
  min-width: 30px;
  text-align: center;
}

.wolf-input-description {
  font-size: 0.85em;
  color: #718096;
  margin-bottom: 10px;
  line-height: 1.4;
}

.wolf-slider-container {
  margin-bottom: 8px;
}

.wolf-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--wolf-slider-color, #315f72);
  background: #d8d1c2;
  cursor: pointer;
}

.wolf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffdf8;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 3px solid #315f72;
}

.wolf-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fffdf8;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 3px solid #315f72;
}

.wolf-input-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #718096;
  font-size: 0.8em;
}

.wolf-scale-value {
  font-weight: 700;
  font-size: 0.9em;
}

.wolf-scale-low {
  color: #e53e3e;
}

.wolf-scale-high {
  color: #48bb78;
}

.wolf-scale-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e0;
}

/* Action Buttons */
.wolf-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-top: 10px;
}

.wolf-action-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: none;
  font-family: inherit;
}

.wolf-check-btn {
  background: #202124;
  color: #fffdf8;
  flex: 2;
}

.wolf-check-btn:hover {
  background: #315f72;
  transform: translateY(-2px);
}

.wolf-reset-btn {
  background: transparent;
  color: #315f72;
  border: 1px solid #315f72;
  flex: 1;
}

.wolf-reset-btn:hover {
  background: #fffdf8;
}

/* Results Container */
.wolf-results-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  border: 1px solid #ded7c9;
  border-radius: 8px;
  background: #edf3ee;
  box-shadow: none;
  font-family: inherit;
}

.wolf-results-header {
  text-align: center;
  margin-bottom: 30px;
  color: #202124;
}

.wolf-results-header h2 {
  margin: 0 0 10px 0;
  font-size: 2em;
  font-weight: 700;
}

.wolf-results-subtitle {
  margin: 0;
  font-size: 1.1em;
  opacity: 0.95;
}

/* Results Summary */
.wolf-results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.wolf-summary-card {
  background: #fffdf8;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ded7c9;
  box-shadow: none;
}

.wolf-summary-card h3 {
  margin: 0 0 15px 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #2d3748;
}

.wolf-summary-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #657a4f;
  margin-bottom: 10px;
}

.wolf-summary-text {
  margin: 0;
  color: #718096;
  font-size: 0.9em;
  line-height: 1.5;
}

.wolf-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wolf-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.wolf-summary-item:last-child {
  border-bottom: none;
}

.wolf-item-name {
  font-weight: 600;
  color: #4a5568;
}

.wolf-item-value {
  font-weight: 700;
  font-size: 1.1em;
}

/* Analysis & Recommendations */
.wolf-analysis,
.wolf-recommendations {
  background: #fffdf8;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ded7c9;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wolf-analysis h3,
.wolf-recommendations h3 {
  margin: 0 0 15px 0;
  font-size: 1.2em;
  font-weight: 700;
  color: #2d3748;
}

.wolf-analysis p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}

.wolf-rec-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wolf-rec-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.wolf-rec-icon {
  font-size: 1.5em;
  min-width: 30px;
}

.wolf-rec-content {
  flex: 1;
}

.wolf-rec-content h4 {
  margin: 0 0 8px 0;
  font-size: 1em;
  font-weight: 700;
  color: #2d3748;
}

.wolf-rec-content p {
  margin: 0;
  color: #4a5568;
  font-size: 0.9em;
  line-height: 1.5;
}

/* Results Actions */
.wolf-results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}

.wolf-back-btn {
  background: transparent;
  color: #315f72;
  border: 1px solid #315f72;
  flex: 1;
  min-width: 200px;
}

.wolf-back-btn:hover {
  background: #fffdf8;
  transform: translateY(-2px);
}

.wolf-copy-btn {
  background: #202124;
  color: #fffdf8;
  flex: 1;
  min-width: 200px;
}

.wolf-copy-btn:hover {
  background: #315f72;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .wolf-content-grid {
    grid-template-columns: 1fr;
  }

  .wolf-visual-section {
    order: 1;
  }

  .wolf-inputs-section {
    order: 2;
    max-height: 800px;
  }
}

@media (max-width: 768px) {
  .wolf-container,
  .wolf-results-container {
    margin: 20px;
    padding: 20px;
  }

  .wolf-results-summary {
    grid-template-columns: 1fr;
  }

  .wolf-header h2,
  .wolf-results-header h2 {
    font-size: 1.5em;
  }

  .wolf-subtitle,
  .wolf-results-subtitle {
    font-size: 0.95em;
  }

  .wolf-input-card {
    padding: 12px;
  }

  .wolf-action-btn {
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .wolf-results-actions {
    flex-direction: column;
  }

  .wolf-back-btn,
  .wolf-copy-btn {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .wolf-container,
  .wolf-results-container {
    margin: 15px;
    padding: 15px;
  }

  .wolf-header h2,
  .wolf-results-header h2 {
    font-size: 1.3em;
  }

  .wolf-subtitle,
  .wolf-results-subtitle {
    font-size: 0.9em;
  }

  .wolf-summary-value {
    font-size: 2em;
  }

  .wolf-input-name {
    font-size: 1em;
  }

  .wolf-input-value {
    font-size: 1.1em;
  }
}
