/* Mental Health Tests Page Styles */

/* Main Content */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Use global .container from style.css for consistent layout */

/* Page Sections */
.section {
  margin-bottom: 4rem;
}

.section.hidden {
  display: none;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  min-height: 60vh;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  font-weight: 300;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Intro Section */
.intro {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.intro h2 {
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.intro-content {
  display: grid;
  gap: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1.1rem;
  line-height: 1.7;
}

.intro-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.intro-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Test Cards */
.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.test-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.test-card:nth-child(1) {
  animation-delay: 0.3s;
}
.test-card:nth-child(2) {
  animation-delay: 0.4s;
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary);
}

.test-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

.test-card h3 {
  color: var(--foreground);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.test-card p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Use global .btn styles from style.css; keep minimal local tweaks if needed */

/* Test Interface */
.test-interface {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

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

.test-header h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.test-progress {
  width: 100%;
  height: 6px;
  background: var(--muted);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.test-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.question {
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.question h3 {
  color: var(--foreground);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

.question-options {
  display: grid;
  gap: 1rem;
}

.option {
  position: relative;
}

.option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.option label {
  display: block;
  padding: 1rem 1.5rem;
  background: var(--accent);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.option input[type="radio"]:checked + label {
  background: rgba(251, 146, 60, 0.1);
  border-color: var(--secondary);
  color: var(--foreground);
}

.option label:hover {
  background: var(--muted);
  border-color: var(--border);
}

.test-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.question-counter {
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Results */
.results {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  text-align: center;
}

.results-header {
  margin-bottom: 2rem;
}

.results h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
}

.score-display {
  background: var(--accent);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary);
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.severity-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.severity-minimal {
  background: #d4edda;
  color: #155724;
}
.severity-mild {
  background: #fff3cd;
  color: #856404;
}
.severity-moderate {
  background: #ffeaa7;
  color: #d63031;
}
.severity-severe {
  background: #f8d7da;
  color: #721c24;
}

.results-message {
  color: var(--muted-foreground);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .test-cards {
    grid-template-columns: 1fr;
  }

  .test-card {
    padding: 2rem;
  }

  .intro {
    padding: 2rem;
  }

  .test-interface {
    padding: 2rem;
  }

  .results {
    padding: 2rem;
  }

  /* Rely on global .container responsive padding */

  .results-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}
