.demoPage {
  padding: 4rem 0;
}

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--ifm-color-emphasis-700);
  max-width: 600px;
  margin: 0 auto;
}

.demoSection {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

.demoSection:last-child {
  border-bottom: none;
}

.demoDescription {
  color: var(--ifm-color-emphasis-700);
  margin-bottom: 2rem;
}

.demoContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 996px) {
  .demoContainer {
    grid-template-columns: 1fr;
  }
}

.formSection {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.formField {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.formField label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ifm-color-emphasis-700);
}

.formField input,
.formField textarea {
  padding: 0.75rem;
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--ifm-background-color);
  color: var(--ifm-font-color-base);
}

.formField input:focus,
.formField textarea:focus {
  outline: none;
  border-color: var(--ifm-color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.formField textarea {
  min-height: 80px;
  resize: vertical;
}

.previewSection {
  background: var(--ifm-color-emphasis-100);
  border-radius: 8px;
  overflow: hidden;
}

.previewHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--ifm-color-emphasis-200);
  font-weight: 500;
  font-size: 0.875rem;
}

.copyButton {
  padding: 0.375rem 0.75rem;
  background: var(--ifm-color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.copyButton:hover {
  background: var(--ifm-color-primary-dark);
}

.copyButton.copied {
  background: var(--ifm-color-success);
}

.runButton {
  padding: 0.75rem 1.5rem;
  background: var(--ifm-color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.runButton:hover {
  background: var(--ifm-color-primary-dark);
}

.resultsSection {
  background: var(--ifm-background-surface-color);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ifm-color-emphasis-200);
}

.resultsHeader {
  padding: 0.75rem 1rem;
  background: var(--ifm-color-emphasis-100);
  font-weight: 500;
  font-size: 0.875rem;
}

.resultsList {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resultItem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
}

.resultItem.selected {
  background: rgba(16, 185, 129, 0.1);
}

.resultItem.excluded {
  background: var(--ifm-color-emphasis-100);
  opacity: 0.7;
}

.resultScore {
  font-family: var(--ifm-font-family-monospace);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ifm-color-primary);
  min-width: 40px;
}

.resultContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.resultTitle {
  font-weight: 500;
  font-size: 0.9rem;
}

.resultSkills {
  font-size: 0.75rem;
  color: var(--ifm-color-emphasis-600);
}

.resultStatus {
  font-size: 0.75rem;
  font-weight: 500;
}

.selected .resultStatus {
  color: var(--ifm-color-success);
}

.excluded .resultStatus {
  color: var(--ifm-color-emphasis-600);
}

.resultsPlaceholder {
  padding: 2rem;
  text-align: center;
  color: var(--ifm-color-emphasis-600);
}

/* Template selector */
.templateSelector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.templateButton {
  padding: 0.5rem 1rem;
  background: var(--ifm-color-emphasis-100);
  border: 1px solid var(--ifm-color-emphasis-300);
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.templateButton:hover {
  background: var(--ifm-color-emphasis-200);
}

.templateButton.active {
  background: var(--ifm-color-primary);
  color: white;
  border-color: var(--ifm-color-primary);
}

/* Resume preview */
.resumePreview {
  background: white;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-family: 'Times New Roman', serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.resumeHeader {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #1a1a1a;
}

.resumeHeader h3 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.1em;
}

.resumeHeader p {
  margin: 0.25rem 0;
}

.resumeHeader .contact {
  font-size: 0.8rem;
  color: #666;
}

.resumeSection h4 {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}

.job {
  margin-bottom: 1rem;
}

.jobHeader {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.bullets {
  margin: 0;
  padding-left: 1.25rem;
}

.bullets li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.templateNote {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed #ccc;
  font-family: var(--ifm-font-family-base);
  font-size: 0.75rem;
  color: #666;
  text-align: center;
}

[data-theme='dark'] .resumePreview {
  background: #f8f8f8;
}
