/* ═══════════════════════════════════════════════════════════
   Modern & Fancy ADHD Assessment Quiz Styles
   Created with glassmorphism, smooth animations, and gradients
   ═══════════════════════════════════════════════════════════ */

/* Root Variables */
:root {
  --adhd-primary: #FD6201;
  --adhd-primary-dark: #5B9BD5;
  --adhd-button-bg: #FD6201;
  --adhd-text: #203864;
  --adhd-text-secondary: #545869;
  --adhd-bg: #f8fafc;
  --adhd-card-bg: #ffffff;
  --adhd-font: 'Tahoma', 'Arial', sans-serif;
  --adhd-font-size: 16px;
  --adhd-shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.08);
  --adhd-shadow-md: 0 4px 20px rgba(59, 130, 246, 0.12);
  --adhd-shadow-lg: 0 8px 32px rgba(59, 130, 246, 0.15);
  --adhd-gradient: linear-gradient(135deg, #5B9BD5 0%, #203864 100%);
  --adhd-gradient-subtle: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* General Wrapper with Gradient Background */
.adhd-assessment-wrapper {
  font-family: var(--adhd-font);
  font-size: var(--adhd-font-size);
  color: var(--adhd-text);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Modern Card with Glassmorphism */
.adhd-assessment-card {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--adhd-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adhd-assessment-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: var(--adhd-gradient-subtle);
  transform: rotate(-45deg);
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.adhd-assessment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

/* Title with Gradient Text */
.adhd-title {
  margin: 0 0 2rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  background: var(--adhd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(102, 126, 234, 0.15);
}

/* Modern Progress Bar */
.adhd-progress {
  margin: 1rem 0 2rem;
  position: relative;
  z-index: 1;
}

.adhd-progress-text {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--adhd-text-secondary);
  text-align: center;
}

.adhd-progress-bar {
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
  height: 12px;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
}

.adhd-progress-fill {
  background: var(--adhd-gradient);
  height: 100%;
  width: 0%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.adhd-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Steps with Smooth Transitions */
.adhd-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.adhd-step.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s ease;
}

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

.adhd-section-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--adhd-primary);
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.adhd-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--adhd-gradient);
  border-radius: 2px;
}

/* Modern Question Cards */
.adhd-questions {
  display: grid;
  gap: 1.25rem;
}

.adhd-question {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.adhd-question::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--adhd-gradient);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.adhd-question:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--adhd-shadow-md);
  transform: translateX(4px);
}

.adhd-question:hover::before {
  transform: scaleY(1);
}

.adhd-q-text {
  display: block;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--adhd-text);
  line-height: 1.6;
}

/* Modern Radio Options */
.adhd-q-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.adhd-q-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.adhd-q-options label:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.adhd-q-options input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--adhd-primary);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.adhd-q-options input[type="radio"]:checked {
  background: var(--adhd-gradient);
  border-color: var(--adhd-primary-dark);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.adhd-q-options input[type="radio"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.adhd-q-options label:has(input:checked) {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--adhd-primary);
  box-shadow: var(--adhd-shadow-sm);
}

/* Modern Navigation Buttons */
.adhd-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.adhd-btn {
  background: var(--adhd-gradient);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--adhd-shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.adhd-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adhd-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--adhd-shadow-md);
}

.adhd-btn:hover::before {
  opacity: 1;
}

.adhd-btn:active {
  transform: translateY(0);
}

.adhd-submit {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #fd6201 0%, #ff8c42 100%);
  box-shadow: 0 4px 20px rgba(253, 98, 1, 0.3);
}

.adhd-submit::before {
  background: linear-gradient(135deg, #ff8c42 0%, #fd6201 100%);
}

/* Info Section Fields */
.adhd-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.adhd-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--adhd-text);
  font-size: 1rem;
}

.adhd-field input[type="text"],
.adhd-field input[type="tel"],
.adhd-field input[type="number"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--adhd-font);
}

.adhd-field input:focus {
  outline: none;
  border-color: var(--adhd-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: #ffffff;
}

.adhd-required {
  color: #ef4444;
  font-weight: bold;
}

/* Results Section */
.adhd-results {
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.adhd-result-title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--adhd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Result Grid - Single Column */
.adhd-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Modern Result Cards */
.adhd-result-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--adhd-shadow-md);
  border-inline-start: 6px solid var(--adhd-primary);
  transition: all 0.3s ease;
  overflow: hidden;
}

.adhd-result-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: var(--adhd-gradient-subtle);
  transform: rotate(-20deg);
  opacity: 0.3;
  z-index: 0;
}

.adhd-result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--adhd-shadow-lg);
}

.adhd-result-card .card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.adhd-result-card .card-header .area {
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--adhd-text);
}

.adhd-result-card .card-header .percent {
  font-size: 2rem;
  font-weight: 900;
  background: var(--adhd-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern Level Chip */
.level-chip {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
  box-shadow: var(--adhd-shadow-sm);
  position: relative;
  z-index: 1;
}

/* Meaning and Recommendations */
.meaning,
.reco {
  white-space: pre-line;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.meaning {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--adhd-text);
  font-size: 1.05rem;
}

.reco {
  color: var(--adhd-text-secondary);
  font-size: 0.95rem;
}

/* Level Color Variants */
.adhd-result-card.level-low {
  border-inline-start-color: #10b981;
}

.adhd-result-card.level-mild {
  border-inline-start-color: #34d399;
}

.adhd-result-card.level-moderate {
  border-inline-start-color: #fbbf24;
}

.adhd-result-card.level-high {
  border-inline-start-color: #fb923c;
}

.adhd-result-card.level-severe {
  border-inline-start-color: #ef4444;
}

.adhd-result-card.level-low .level-chip {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
}

.adhd-result-card.level-mild .level-chip {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  color: white;
}

.adhd-result-card.level-moderate .level-chip {
  background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
  color: #78350f;
}

.adhd-result-card.level-high .level-chip {
  background: linear-gradient(135deg, #fb923c 0%, #fdba74 100%);
  color: white;
}

.adhd-result-card.level-severe .level-chip {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
}

/* RTL Enhancements */
[dir="rtl"] .adhd-nav {
  flex-direction: row-reverse;
}

[dir="rtl"] .adhd-progress-text {
  display: block;
  text-align: right;
}

[dir="rtl"] .adhd-result-card .card-header {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .adhd-question:hover {
  transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .adhd-assessment-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .adhd-title {
    font-size: 1.5rem;
  }

  .adhd-q-options {
    flex-direction: column;
    gap: 0.75rem;
  }

  .adhd-nav {
    flex-direction: column;
  }

  .adhd-btn {
    width: 100%;
  }
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.adhd-assessment-card.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


