/* ============================================
   AI Job Description ΓÇö Tool-specific styles
   ============================================ */

/* ---------- Paid Banner ---------- */
.tool-ui-banner-paid {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--primary-light);
}

.tool-ui-banner-paid .tool-ui-banner-icon {
  background: rgba(37, 99, 235, 0.15);
}

/* ---------- Seniority Level Cards ---------- */
.ajd-seniority-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.ajd-seniority-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ajd-seniority-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.04);
}

.ajd-seniority-card.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.08));
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.12);
}

.ajd-seniority-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.1);
  color: var(--primary-light);
  transition: all 0.2s ease;
}

.ajd-seniority-card.active .ajd-seniority-card-icon {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

.ajd-seniority-card-icon svg {
  width: 15px;
  height: 15px;
}

.ajd-seniority-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.ajd-seniority-card.active .ajd-seniority-card-label {
  color: var(--text-primary);
}

/* ---------- Employment Type Chips ---------- */
.ajd-employment-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ajd-employment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ajd-employment-chip:hover {
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}

.ajd-employment-chip.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.12));
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}

/* ---------- Tone Selector ---------- */
.ajd-tone-selector {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ajd-tone-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.ajd-tone-chip:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

.ajd-tone-chip.active {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-violet);
}

/* ---------- Job Description Preview ---------- */
.ajd-preview {
  padding: 1.25rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.08);
  font-family: var(--font-body);
}

.ajd-preview-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.ajd-preview-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.ajd-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ajd-preview-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0.2rem 0.55rem;
  border-radius: 0.3rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.ajd-preview-meta-item svg {
  width: 12px;
  height: 12px;
  color: var(--accent-cyan);
}

.ajd-preview-section {
  margin-bottom: 1rem;
}

.ajd-preview-section:last-child {
  margin-bottom: 0;
}

.ajd-preview-section-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ajd-preview-section-title svg {
  width: 14px;
  height: 14px;
}

.ajd-preview-section-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.ajd-preview-section-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ajd-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ajd-preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ajd-preview-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
  margin-top: 7px;
  flex-shrink: 0;
}

.ajd-preview-requirements li::before {
  background: var(--accent-violet);
}

.ajd-preview-benefits li::before {
  background: #10b981;
}

/* ---------- Salary Range Display ---------- */
.ajd-salary-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.12);
}

.ajd-salary-display svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.ajd-salary-display-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.ajd-salary-display-text span {
  color: var(--text-secondary);
  font-weight: 400;
}

/* ---------- EEO Statement ---------- */
.ajd-eeo-statement {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.6);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Job Board Export Formats ---------- */
.ajd-export-formats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ajd-export-format {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ajd-export-format:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.ajd-export-format.active {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

/* ---------- ATS Score Indicator ---------- */
.ajd-ats-score {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.6rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.2);
}

.ajd-ats-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.ajd-ats-score-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ajd-ats-score-header-left svg {
  width: 16px;
  height: 16px;
  color: #10b981;
}

.ajd-ats-score-header-left span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #10b981;
}

.ajd-ats-score-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #10b981;
}

.ajd-ats-score-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.08);
  overflow: hidden;
}

.ajd-ats-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width 0.5s ease;
}

.ajd-ats-score-tips {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---------- Output Footer ---------- */
.ajd-output-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(148, 163, 184, 0.08);
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-secondary); flex-wrap: wrap;
}
[data-theme="light"] .ajd-output-footer { border-top-color: rgba(15, 23, 42, 0.06); }
.ajd-footer-left { display: flex; align-items: center; gap: 0.4rem; }
.ajd-footer-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }

/* ---------- Responsive: Phone (358px) ---------- */
@media (max-width: 640px) {
  .ajd-seniority-types {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .ajd-seniority-card {
    padding: 0.55rem 0.35rem;
  }

  .ajd-seniority-card-icon {
    width: 26px;
    height: 26px;
  }

  .ajd-seniority-card-label {
    font-size: 0.66rem;
  }

  .ajd-employment-chip {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
  }

  .ajd-tone-chip {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .ajd-preview {
    padding: 0.85rem;
  }

  .ajd-preview-title {
    font-size: 0.95rem;
  }

  .ajd-preview-meta-item {
    font-size: 0.66rem;
    padding: 0.15rem 0.45rem;
  }

  .ajd-preview-section-title {
    font-size: 0.62rem;
  }

  .ajd-preview-section-body {
    font-size: 0.76rem;
  }

  .ajd-preview-list li {
    font-size: 0.74rem;
  }

  .ajd-salary-display {
    padding: 0.5rem 0.6rem;
  }

  .ajd-salary-display-text {
    font-size: 0.75rem;
  }

  .ajd-eeo-statement {
    font-size: 0.66rem;
  }

  .ajd-export-format {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }

  .ajd-ats-score {
    padding: 0.75rem;
  }

  .ajd-ats-score-value {
    font-size: 0.95rem;
  }

  .ajd-ats-score-tips {
    font-size: 0.65rem;
  }
}

/* ---------- Light Theme ---------- */
[data-theme="light"] .ajd-preview {
  background: rgba(248, 250, 252, 0.5);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .ajd-ats-score {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.15);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .ajd-seniority-card {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ajd-seniority-card:hover {
  background: rgba(37, 99, 235, 0.03);
  border-color: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .ajd-seniority-card-icon {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.08);
}

[data-theme="light"] .ajd-employment-chip {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ajd-tone-chip {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ajd-preview-quote {
  background: rgba(37, 99, 235, 0.03);
}

[data-theme="light"] .ajd-export-format {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .ajd-export-format.active {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(8, 145, 178, 0.2);
}

[data-theme="light"] .ajd-eeo-statement {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.1);
}
