/* ================================================
   EVERGREEN MEDIA DESIGN - AUDIT PAGE STYLES
   ================================================ */

.audit-form-wrapper {
  display: flex;
  justify-content: center;
  padding: var(--space-2xl) 0;
}

.audit-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.audit-form h2 {
  margin-bottom: var(--space-md);
  color: var(--text);
}

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

.audit-input {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--bg);
  color: var(--text);
  transition: all var(--transition-normal);
}

.audit-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

.audit-input::placeholder {
  color: var(--text-muted);
}

.audit-help-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ================================================
   AUDIT RESULTS STYLES
   ================================================ */

.audit-results {
  animation: fadeInUp 0.6s ease-out;
}

.audit-report {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.audit-report-header {
  padding: var(--space-2xl);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.audit-report-header h2 {
  margin-bottom: var(--space-sm);
  word-break: break-all;
}

.audit-report-header a {
  color: var(--accent);
  text-decoration: none;
}

.audit-report-header a:hover {
  text-decoration: underline;
}

.audit-timestamp {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ================================================
   AUDIT SUMMARY STATS
   ================================================ */

.audit-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-2xl);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.summary-stat.critical {
  border-left: 4px solid #DC2626;
}

.summary-stat.high {
  border-left: 4px solid #EA580C;
}

.summary-stat.medium {
  border-left: 4px solid #F59E0B;
}

.summary-stat.low {
  border-left: 4px solid #10B981;
}

.summary-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.summary-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================
   AUDIT SECTIONS
   ================================================ */

.audit-section {
  padding: var(--space-2xl);
  border-bottom: 1px solid var(--border);
}

.audit-section:last-child {
  border-bottom: none;
}

.audit-section-title {
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
  font-weight: 600;
}

.audit-section-title.audit-level-critical {
  color: #DC2626;
}

.audit-section-title.audit-level-high {
  color: #EA580C;
}

.audit-section-title.audit-level-medium {
  color: #F59E0B;
}

.audit-section-title.audit-level-low {
  color: #10B981;
}

/* ================================================
   AUDIT FINDINGS (STRENGTHS)
   ================================================ */

.audit-finding {
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10B981;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
}

.audit-finding:last-child {
  margin-bottom: 0;
}

/* ================================================
   AUDIT ISSUES
   ================================================ */

.audit-issue {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--border);
}

.audit-issue-critical {
  border-left-color: #DC2626;
  background: rgba(220, 38, 38, 0.02);
}

.audit-issue-high {
  border-left-color: #EA580C;
  background: rgba(234, 88, 12, 0.02);
}

.audit-issue-medium {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.02);
}

.audit-issue-low {
  border-left-color: #10B981;
  background: rgba(16, 185, 129, 0.02);
}

.audit-issue-header {
  margin-bottom: var(--space-md);
}

.audit-issue-header h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.audit-issue-description {
  margin-bottom: var(--space-md);
  color: var(--text);
  line-height: var(--line-height-relaxed);
}

.audit-issue-fix {
  ackground: var(--bg-alt);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}

.audit-issue-fix strong {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.audit-issue-fix p {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: var(--line-height-normal);
  word-break: break-word;
}

/* ================================================
   AUDIT CTA
   ================================================ */

.audit-cta {
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
  color: white;
  text-align: center;
  border-radius: 0;
}

.audit-cta h3 {
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
  color: white;
}

.audit-cta p {
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
}

.audit-cta .btn {
  background-color: white;
  color: var(--accent);
  font-weight: 600;
}

.audit-cta .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
  .audit-form {
    padding: var(--space-lg);
  }

  .audit-form-wrapper {
    padding: var(--space-lg) 0;
  }

  .audit-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .audit-section {
    padding: var(--space-lg);
  }

  .audit-issue {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .audit-report-header {
    padding: var(--space-lg);
  }

  .audit-report-header h2 {
    font-size: 1.25rem;
  }

  .audit-section-title {
    font-size: 1.1rem;
  }

  .audit-cta {
    padding: var(--space-lg);
  }

  .audit-cta h3 {
    font-size: 1.25rem;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .summary-number {
    font-size: 2rem;
  }

  .audit-summary {
    grid-template-columns: 1fr;
  }

  .audit-issue-header h4 {
    font-size: 0.95rem;
  }

  .audit-section-title {
    font-size: 1rem;
  }

  .audit-report-header h2 {
    font-size: 1.1rem;
  }
}

/* ================================================
   DARK MODE SUPPORT
   ================================================ */

@media (prefers-color-scheme: dark) {
  .audit-form {
    background: var(--bg-alt);
  }

  .audit-issue-fix {
    background: var(--bg-alt);
  }

  .audit-finding {
    background: rgba(163, 201, 168, 0.08);
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */

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

.audit-results {
  animation: fadeInUp 0.6s ease-out;
}
