/* CBT Generator Styles */

/* General Container */
.cbt-input-container,
.cbt-results-container {
  margin: 40px auto;
  padding: 30px;
  border: 1px solid #ded7c9;
  border-radius: 8px;
  background: #f8f2e4;
  box-shadow: none;
  font-family: inherit;
}

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

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

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

/* Examples Section */
.cbt-examples {
  margin-bottom: 25px;
  text-align: center;
}

.cbt-example-text {
  color: #4b4a45;
  font-weight: 600;
  margin-bottom: 12px;
}

.cbt-example-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cbt-example-btn {
  background: #fffdf8;
  color: #202124;
  border: 1px solid #ded7c9;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.3s ease;
  text-align: left;
  font-style: italic;
}

.cbt-example-btn:hover {
  background: #f5f1e8;
  border-color: #315f72;
  transform: translateY(-2px);
}

.cbt-example-btn:active {
  transform: translateY(0);
}

/* Input Wrapper */
.cbt-input-wrapper {
  margin-bottom: 20px;
}

.cbt-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #cfc5b4;
  border-radius: 8px;
  background: #fffdf8;
  color: #333;
  font-size: 1em;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cbt-textarea:focus {
  outline: none;
  border-color: #315f72;
  box-shadow: 0 0 0 4px rgba(49, 95, 114, 0.12);
}

.cbt-textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* Analyze Button */
.cbt-analyze-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: #202124;
  color: #fffdf8;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.cbt-analyze-btn:hover {
  background: #315f72;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cbt-analyze-btn:active {
  transform: translateY(0);
}

/* Results Container */
.cbt-results-container {
  background: #eef3f5;
}

/* Back Section */
.cbt-back-section {
  margin-bottom: 25px;
}

.cbt-back-btn {
  background: transparent;
  color: #315f72;
  border: 1px solid #315f72;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cbt-back-btn:hover {
  background: #fffdf8;
  transform: translateX(-5px);
}

/* Result Blocks */
.cbt-result-block {
  background: #fffdf8;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ded7c9;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cbt-result-block h3 {
  margin: 0 0 12px 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #333;
}

/* Thought Block */
.cbt-user-text {
  margin: 0;
  padding: 15px;
  background: #f5f1e8;
  border-left: 4px solid #315f72;
  border-radius: 6px;
  color: #333;
  font-size: 1em;
  line-height: 1.6;
}

/* Distortion Block */
.cbt-distortion-title {
  margin: 0 0 8px 0;
  font-size: 1em;
  font-weight: 700;
  color: #315f72;
}

.cbt-distortion-desc {
  margin: 0;
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

/* Questions Block */
.cbt-questions-list {
  margin: 0;
  padding-left: 20px;
}

.cbt-questions-list li {
  margin-bottom: 12px;
  color: #444;
  font-size: 0.95em;
  line-height: 1.6;
}

.cbt-questions-list li:last-child {
  margin-bottom: 0;
}

/* Tip Block */
.cbt-tip-block p {
  margin: 0;
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Copy Button */
.cbt-copy-btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: #657a4f;
  color: white;
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}

.cbt-copy-btn:hover {
  background: #52663f;
  transform: translateY(-2px);
  box-shadow: none;
}

.cbt-copy-btn:active {
  transform: translateY(0);
}

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

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

  .cbt-subtitle {
    font-size: 0.95em;
  }

  .cbt-example-btn {
    font-size: 0.9em;
    padding: 10px 14px;
  }

  .cbt-textarea {
    min-height: 100px;
  }

  .cbt-result-block {
    padding: 15px;
  }

  .cbt-analyze-btn,
  .cbt-copy-btn {
    font-size: 1em;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .cbt-textarea {
    font-size: 0.95em;
  }

  .cbt-result-block h3 {
    font-size: 1em;
  }

  .cbt-user-text {
    font-size: 0.95em;
  }
}
