/**
 * AITestHub LLP - Free QA Tools & Assessment Stylesheet
 * Responsive interactive styling for maturity calculator, website quality checker, and 6 generator tools
 */

/* ==========================================================================
   QA Maturity Assessment Tool
   ========================================================================== */
.assessment-container {
  background: var(--gradient-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.assessment-progress-wrapper {
  margin-bottom: var(--space-8);
}

.assessment-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.assessment-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  transition: width var(--transition-normal);
}

.assessment-progress-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.question-card {
  display: none;
  animation: fadeIn var(--transition-fast);
}

.question-card.active {
  display: block;
}

.question-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.question-text {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.option-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-label:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-accent);
}

.option-label.selected {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--accent-cyan);
}

.option-radio {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  outline: none;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.option-label.selected .option-radio {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  box-shadow: inset 0 0 0 3px var(--bg-surface);
}

.option-desc {
  font-size: var(--text-sm);
  color: #e2e8f0;
}

/* Assessment Results Dashboard */
.assessment-results-panel {
  display: none;
  text-align: center;
}

.assessment-results-panel.active {
  display: block;
  animation: fadeIn var(--transition-normal);
}

.score-meter-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--bg-surface) 60%, rgba(0, 210, 255, 0.1) 100%);
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow-cyan);
}

.score-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.score-max {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.maturity-level-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
  text-align: left;
}

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

.rec-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.rec-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: var(--space-2);
}

.rec-text {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ==========================================================================
   Website Quality & Signal Checker
   ========================================================================== */
.checker-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  max-width: 840px;
  margin: 0 auto;
}

.url-input-group {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.url-input-field {
  flex: 1;
  background: #090e1a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.url-input-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.checker-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (max-width: 640px) {
  .checker-signals-grid { grid-template-columns: 1fr; }
  .url-input-group { flex-direction: column; }
}

.signal-row {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.signal-label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.signal-val {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* ==========================================================================
   Suite of 6 Free QA Generator Tools
   ========================================================================== */
.tools-suite-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tools-nav-tabs {
  display: flex;
  overflow-x: auto;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-medium);
  scrollbar-width: none;
}

.tools-nav-tabs::-webkit-scrollbar {
  display: none;
}

.tool-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tool-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.02);
}

.tool-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.05);
}

.tool-workspace {
  padding: var(--space-8);
  display: none;
}

.tool-workspace.active {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  animation: fadeIn var(--transition-fast);
}

@media (max-width: 1024px) {
  .tool-workspace.active { grid-template-columns: 1fr; }
}

/* Tool Input Form */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.form-control {
  background: #080c16;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

/* Output Code Terminal Box */
.tool-output-box {
  background: #040711;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.output-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.output-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-cyan);
}

.output-actions {
  display: flex;
  gap: var(--space-2);
}

.output-content {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  max-height: 440px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Enterprise Scope & Quote Wizard Styles
   ========================================================================== */
.wizard-step-indicator {
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wizard-step-indicator:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.wizard-step-indicator.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.wizard-step-indicator.completed {
  border-color: var(--status-pass);
  color: var(--status-pass);
}

.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.wizard-step.active {
  display: block !important;
}

.option-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-label:hover {
  border-color: var(--border-accent);
  background: rgba(0, 210, 255, 0.04);
}

.option-label.selected,
.option-label:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

.option-desc {
  font-size: var(--text-sm);
  font-weight: 500;
}
