/* Aspire Together Brand Colors */
:root {
  --primary-purple: #8E44AD;
  --secondary-purple: #B388EB;
  --accent-magenta: #D63384;
  --dark-text: #212121;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --success-green: #28a745;
  --warning-orange: #ffc107;
  --danger-red: #dc3545;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark-text);
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
}

/* Brand Colors for Bootstrap Components */
.btn-primary {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-purple);
  border-color: var(--secondary-purple);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(142, 68, 173, 0.3);
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  transform: translateY(-1px);
}

/* Progress Bar */
.progress {
  background-color: rgba(142, 68, 173, 0.1);
  border-radius: 1rem;
  height: 8px;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 1rem;
  transition: width 1.5s ease-in-out;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(142, 68, 173, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, 
    rgba(142, 68, 173, 0.05) 0%, 
    rgba(179, 136, 235, 0.03) 50%, 
    rgba(214, 51, 132, 0.02) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Cards */
.welcome-card,
.question-card,
.score-card,
.domain-result-card,
.recommendation-card,
.coming-soon-card {
  background: var(--white);
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.welcome-card:hover,
.question-card:hover,
.recommendation-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Feature Items */
.feature-item,
.domain-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(142, 68, 173, 0.05);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.feature-item:hover,
.domain-card:hover {
  background: rgba(142, 68, 173, 0.1);
  transform: translateX(5px);
}

.feature-icon,
.domain-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Privacy Notice */
.privacy-notice {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 0.75rem;
  border-left: 4px solid var(--success-green);
}

.privacy-icon {
  width: 40px;
  height: 40px;
  background: var(--success-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

/* Question Styles */
.question-section {
  padding: 2rem 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.progress-container {
  max-width: 600px;
  margin: 0 auto;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-text {
  font-weight: 500;
  color: var(--dark-text);
}

.progress-percentage {
  font-weight: 600;
  color: var(--primary-purple);
}

.domain-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(142, 68, 173, 0.1);
  color: var(--primary-purple);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.question-text {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark-text);
}

.guidance-text {
  padding: 1rem;
  background: rgba(179, 136, 235, 0.1);
  border-radius: 0.5rem;
  color: var(--secondary-purple);
  font-style: italic;
}

/* Answer Options */
.options-container {
  margin: 2rem 0;
}

.option-item {
  margin-bottom: 1rem;
  position: relative;
}

.option-radio {
  display: none;
}

.option-label {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--white);
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.option-label:hover {
  border-color: var(--secondary-purple);
  background: rgba(179, 136, 235, 0.05);
  transform: translateX(5px);
}

.option-radio:checked + .option-label,
.option-label.selected {
  border-color: var(--primary-purple);
  background: rgba(142, 68, 173, 0.1);
  box-shadow: 0 4px 8px rgba(142, 68, 173, 0.2);
}

.option-indicator {
  width: 40px;
  height: 40px;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.option-radio:checked + .option-label .option-indicator,
.option-label.selected .option-indicator {
  background: var(--primary-purple);
  color: white;
}

.option-letter {
  font-weight: 600;
  font-size: 1.1rem;
}

.option-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.5;
}

/* Navigation Buttons */
.navigation-buttons {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.pulse-animation {
  animation: button-pulse 0.6s ease-in-out;
}

@keyframes button-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Results Section */
.results-section {
  padding: 2rem 0;
}

.results-icon {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.score-circle {
  width: 120px;
  height: 120px;
  border: 4px solid;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  background: var(--white);
}

.score-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.score-max {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

.maturity-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  color: white;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.maturity-badge-small {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  color: white;
  border-radius: 1rem;
  font-weight: 500;
  font-size: 0.8rem;
}

.maturity-level-small {
  font-weight: 600;
  font-size: 0.9rem;
}

.next-steps-preview {
  padding: 1rem;
  background: rgba(142, 68, 173, 0.05);
  border-radius: 0.5rem;
  border-left: 4px solid var(--primary-purple);
}

/* Domain Results */
.domain-name {
  color: var(--dark-text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.domain-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.percentage-text {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Recommendations */
.section-title {
  color: var(--dark-text);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-purple);
  margin-bottom: 1.5rem;
}

.rec-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-purple);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendation-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 2rem;
}

.recommendation-list li:last-child {
  border-bottom: none;
}

.recommendation-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--primary-purple);
  font-weight: bold;
}

/* Admin Styles */
.admin-section {
  padding: 2rem 0;
}

.admin-header {
  padding: 2rem 0;
  border-bottom: 1px solid #e9ecef;
}

.admin-badge {
  padding: 0.5rem 1rem;
  background: rgba(108, 117, 125, 0.1);
  border-radius: 0.5rem;
}

.coming-soon-icon {
  opacity: 0.7;
}

.feature-preview {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(142, 68, 173, 0.03);
  border-radius: 0.75rem;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-preview:hover {
  background: rgba(142, 68, 173, 0.08);
  transform: translateY(-3px);
}

.feature-preview .feature-icon {
  margin: 0 auto 1rem;
  background: rgba(142, 68, 173, 0.1);
  color: var(--primary-purple);
}

.capability-item {
  padding: 0.5rem 0;
  font-weight: 500;
}

.dev-notes {
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0 1rem;
    min-height: auto;
  }
  
  .question-section {
    padding: 1rem 0 2rem;
    min-height: auto;
  }
  
  .question-text {
    font-size: 1.2rem;
  }
  
  .option-label {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .option-indicator {
    width: 35px;
    height: 35px;
    margin-right: 0.75rem;
  }
  
  .score-circle {
    width: 100px;
    height: 100px;
  }
  
  .score-number {
    font-size: 2rem;
  }
  
  .navigation-buttons {
    position: sticky;
    bottom: 0;
    background: var(--white);
    padding: 1rem 0 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
  }
  
  .navigation-buttons .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
  }
  
  .navigation-buttons .d-flex {
    gap: 1rem;
  }
  
  .feature-item,
  .domain-card {
    padding: 0.75rem;
  }
  
  .rec-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Better mobile container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .question-card .card-body {
    padding: 1.5rem 1rem;
  }
}

/* Touch Optimization */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .option-label {
    min-height: 60px;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .option-indicator {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Mobile Safari Fixes */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Prevent iOS zoom on input focus */
input, textarea, select {
  font-size: 16px;
}

/* Prevent pull-to-refresh on mobile */
body {
  overscroll-behavior-y: contain;
}

/* Smooth scroll for better mobile experience */
html {
  scroll-behavior: smooth;
}

/* Dark mode support preparation */
@media (prefers-color-scheme: dark) {
  /* Future dark mode styles */
}

/* Print styles for PDF-like appearance */
@media print {
  .navbar,
  .navigation-buttons,
  .action-buttons {
    display: none !important;
  }
  
  .hero-section,
  .question-section,
  .results-section {
    padding: 1rem 0;
  }
  
  body {
    background: white;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
}

/* Accessibility improvements */
.option-radio:focus + .option-label {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(142, 68, 173, 0.5);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .option-label {
    border-width: 3px;
  }
  
  .btn-primary {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
