/* ================================
   Interview Q&A Feature
   ================================ */

.feature.interview-qa {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
padding-top: calc(40px + 70px);
}

/* Header */
.feature-header {
  margin-bottom: 24px;
}

.feature-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.feature-header p {
  color: #9ca3af;
}

/* Main card */
.interview-qa-card {
  background: linear-gradient(180deg, #121826, #0b1020);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Inputs layout */
.qa-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.input-block h3 {
  margin-bottom: 10px;
}

.input-block label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #9ca3af;
}

textarea {
  width: 100%;
  background: #0b1020;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 12px;
  color: #e5e7eb;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #facc15;
}

input[type="file"] {
  margin-top: 6px;
  color: #9ca3af;
}

.or-separator {
  text-align: center;
  margin: 12px 0;
  color: #6b7280;
  font-size: 12px;
}

/* Config section */
.qa-config {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.config-block h3 {
  margin-bottom: 10px;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group label {
  background: #111827;
  border: 1px solid #1f2937;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

/* Slider */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Action */
.qa-action {
  margin-top: 30px;
  text-align: right;
}

.qa-action button {
  background: #facc15;
  color: #000;
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* Output */
.qa-output {
  margin-top: 40px;
  display: none;
}

/* ================================
   Q&A RESULTS UI (NEW)
   ================================ */

.qa-result-group {
  margin-bottom: 28px;
}

.qa-result-group h4 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #facc15;
  border-left: 4px solid #facc15;
  padding-left: 10px;
}

/* Q&A Card */
.qa-item {
  background: #0b1020;
  border: 1px solid #1f2937;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.qa-item:hover {
  border-color: #2563eb;
}

/* Question */
.qa-question {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #93c5fd; /* Blue question */
  cursor: pointer;
  position: relative;
}

.qa-question::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #64748b;
  transition: transform 0.3s ease;
}

/* Answer */
.qa-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  font-size: 14px;
  color: #e5e7eb; /* Answer color */
  line-height: 1.6;
  background: #020617;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Expanded state */
.qa-item.active .qa-answer {
  max-height: 500px;
  padding: 14px 16px 16px;
}

.qa-item.active .qa-question::after {
  transform: translateY(-50%) rotate(180deg);
}

/* ================================
   FUTURE: LOCKED / MASKED ANSWERS
   ================================ */

.qa-answer.locked {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  position: relative;
}

.qa-answer.locked::after {
  content: "Upgrade to unlock full answer";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #facc15;
  background: rgba(2,6,23,0.85);
}

/* Mobile */
@media (max-width: 900px) {
  .qa-inputs,
  .qa-config {
    grid-template-columns: 1fr;
  }
}
/* ================================
   PDF DOWNLOAD BUTTON
   ================================ */

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

.qa-output-header h2 {
  font-size: 20px;
  font-weight: 600;
}

/* PDF Button */
#downloadInterviewPDF {
  background: transparent;
  border: 1px solid #334155;
  color: #e5e7eb;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

#downloadInterviewPDF:hover {
  background: #020617;
  border-color: #facc15;
  color: #facc15;
}

#downloadInterviewPDF:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .qa-output-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ============================
   Light Theme – Interview Q&A Fix
   ============================ */

/* Main card */
html[data-theme="light"] .interview-qa-card {
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Section headers */
html[data-theme="light"] .feature-header p {
  color: #4b5563;
}

/* Labels & headings */
html[data-theme="light"] .input-block label,
html[data-theme="light"] .config-block h3 {
  color: #374151;
}

/* Textareas */
html[data-theme="light"] textarea {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

/* OR separator */
html[data-theme="light"] .or-separator {
  color: #6b7280;
}

/* Checkbox pills */
html[data-theme="light"] .checkbox-group label {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #111827;
}

/* Results group title */
html[data-theme="light"] .qa-result-group h4 {
  color: #92400e;
  border-left-color: #facc15;
}

/* Q&A cards */
html[data-theme="light"] .qa-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

html[data-theme="light"] .qa-question {
  color: #1d4ed8;
}

html[data-theme="light"] .qa-answer {
  background: #f9fafb;
  color: #111827;
}

/* PDF button */
html[data-theme="light"] #downloadInterviewPDF {
  border-color: #d1d5db;
  color: #111827;
}

html[data-theme="light"] #downloadInterviewPDF:hover {
  background: #f9fafb;
  color: #92400e;
  border-color: #facc15;
}
