/* Inner Critic Test Styles */

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

/* Progress Section */
.ict-progress-section {
  margin-bottom: 30px;
  text-align: center;
}

.ict-progress-bar {
  height: 8px;
  background: #d8e0e3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.ict-progress-fill {
  height: 100%;
  background: #315f72;
  transition: width 0.3s ease;
  border-radius: 4px;
}

.ict-progress-text {
  color: #4b4a45;
  font-size: 0.95em;
  font-weight: 600;
}

/* Question Section */
.ict-question-section {
  margin-bottom: 30px;
  text-align: center;
}

.ict-category-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  color: #fffdf8;
  font-size: 0.85em;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ict-question {
  color: #202124;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0 0 25px 0;
  line-height: 1.4;
  text-shadow: none;
}

/* Answers */
.ict-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.ict-answer-btn {
  background: #fffdf8;
  color: #202124;
  border: 1px solid #ded7c9;
  padding: 16px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: none;
}

.ict-answer-btn:hover {
  background: #f5f1e8;
  border-color: #315f72;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ict-answer-btn.ict-selected {
  background: #315f72;
  color: #fffdf8;
  border-color: #315f72;
  transform: translateY(-2px) scale(1.02);
  box-shadow: none;
}

.ict-answer-btn:active {
  transform: translateY(0) scale(1);
}

/* Navigation */
.ict-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
}

.ict-nav-info {
  color: #4b4a45;
  font-weight: 600;
  font-size: 0.95em;
}

.ict-nav-btn {
  background: transparent;
  color: #315f72;
  border: 1px solid #315f72;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  transition: all 0.3s ease;
}

.ict-nav-btn:hover:not(:disabled) {
  background: #fffdf8;
  transform: translateY(-2px);
}

.ict-nav-btn.active:not(:disabled):active {
  transform: translateY(0);
}

.ict-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Results Container */
.ict-results-container {
  background: #edf3ee;
}

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

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

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

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

.ict-result-item {
  background: #fffdf8;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ded7c9;
  box-shadow: none;
}

.ict-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ict-result-category {
  font-weight: 700;
  font-size: 1.1em;
  color: #333;
}

.ict-result-percentage {
  font-weight: 700;
  font-size: 1.3em;
  color: #315f72;
}

.ict-result-bar {
  height: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 12px;
}

.ict-result-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.ict-result-description {
  margin: 0;
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
}

/* Results Summary */
.ict-results-summary,
.ict-results-recommendation {
  background: #fffdf8;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ded7c9;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ict-results-summary h3,
.ict-results-recommendation h3 {
  margin: 0 0 12px 0;
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
}

.ict-results-summary p,
.ict-results-recommendation p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

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

.ict-action-btn {
  flex: 1;
  min-width: 200px;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ict-restart-btn {
  background: #202124;
  color: #fffdf8;
}

.ict-restart-btn:hover {
  background: #657a4f;
  transform: translateY(-2px);
}

.ict-copy-btn {
  background: transparent;
  color: #315f72;
  border: 1px solid #315f72;
}

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

.ict-action-btn:active {
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .ict-container,
  .ict-results-container {
    margin: 20px;
    padding: 20px;
  }

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

  .ict-question {
    font-size: 1.1em;
  }

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

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

  .ict-answer-btn {
    padding: 14px 20px;
    font-size: 0.95em;
  }

  .ict-nav-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

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

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

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

  .ict-question {
    font-size: 1em;
  }

  .ict-answer-btn {
    padding: 12px 16px;
    font-size: 0.9em;
  }

  .ict-action-btn {
    min-width: 150px;
    padding: 14px 20px;
    font-size: 0.95em;
  }
}
