/* Design tokens (light) */
:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  /* Professional coaching theme colors */
  --primary-navy: #1a2332;
  --accent-gold: #d4af37;
  --accent-teal: #2dd4bf;
  --soft-cream: #faf8f5;
  --text-gray: #4a5568;
  --border-light: #e2dfd9;
  --bg-light: #f8f9fa;
  
  --primary: var(--primary-navy);
  --primary-foreground: #ffffff;
  --secondary: #71717a;
  --secondary-foreground: #ffffff;
  --muted: #0a0a0a09;
  --muted-foreground: var(--text-gray);
  --accent: var(--accent-gold);
  --accent-foreground: #1a2e05;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: var(--border-light);
  --input: transparent;
  --input-background: var(--soft-cream);
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #06b6d4;
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #06b6d4;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: #06b6d4;

  /* Bridge to existing variables used by the app */
  --bg: var(--background);
  --surface: var(--card);
  --text: var(--foreground);
  --muted-bridge: var(--muted-foreground);
  --primary-bridge: var(--primary-navy);
  --accent-bridge: var(--accent-gold);
  --danger-bridge: var(--destructive);
  --border-bridge: var(--border-light);
}

/* Design tokens (dark) - applied when .dark is present on a parent */
.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: #22d3ee;
  --primary-foreground: #0a0a0a;
  --secondary: #52525b;
  --secondary-foreground: #fafafa;
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: #a3e635;
  --accent-foreground: #1a2e05;
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: #22d3ee;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: #22d3ee;
  --sidebar-primary-foreground: #0a0a0a;
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: #22d3ee;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Work Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--soft-cream) 0%, #f0ece4 100%);
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.question-page-container {
  align-self: flex-start;
}

.container {
  width: 100%;
  max-width: 1200px;
  background: white;
  border: 1px solid var(--border-bridge);
  border-radius: 2px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(26, 35, 50, 0.08);
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  margin: 0 auto;
}

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

.header {
  background: var(--primary-navy);
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.title {
  font-family: 'Crimson Pro', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
}

@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .header {
    padding: 2rem;
  }
  
  .title {
    font-size: 2rem;
  }
}

.content {
  margin-top: 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-bridge);
  border-radius: 12px;
  padding: 16px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
}

.question {
  display: grid;
  gap: 8px;
}

.likert {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-bridge);
  background: var(--input-background);
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.pill.selected { outline: 2px solid var(--primary-bridge); border-color: var(--primary-bridge); background: #eef2ff; }
.pill:hover { background: var(--muted); }

.footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

button {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border-bridge);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

button.primary { background: var(--primary-bridge); color: var(--primary-foreground); border-color: var(--primary-bridge); }
button.ghost { background: transparent; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.progress {
  height: 8px;
  width: 100%;
  background: var(--muted);
  border: 1px solid var(--border-bridge);
  border-radius: 999px;
  overflow: hidden;
}

.progress > div { height: 100%; background: linear-gradient(90deg, var(--primary-bridge), var(--accent-bridge)); width: 0%; }

.legend {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.results-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .results-grid { grid-template-columns: 2fr 1fr; }
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--muted);
  border: 1px solid var(--border-bridge);
  padding: 2px 6px;
  border-radius: 6px;
}

.error {
  color: var(--danger);
  font-size: 13px;
}

/* Results: progress bars */
.bar { height: 8px; background: var(--muted); border: 1px solid var(--border-bridge); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--primary-bridge); }

/* Cover page specific styles */
.instructions-section {
  padding: 4rem;
  border-right: 1px solid var(--border-light);
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section-title {
  font-family: 'Crimson Pro', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
}

.instructions-list {
  list-style: none;
  margin-top: 2rem;
}

.instructions-list li {
  padding: 1.25rem 0;
  padding-left: 2.5rem;
  position: relative;
  color: var(--text-gray);
  line-height: 1.7;
  border-bottom: 1px solid rgba(226, 223, 217, 0.5);
}

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

.instructions-list li::before {
  content: attr(data-number);
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 28px;
  height: 28px;
  background: var(--accent-gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.info-section {
  padding: 4rem 3rem;
  background: linear-gradient(180deg, #fafafa 0%, white 100%);
  animation: slideInRight 0.8s ease-out 0.4s both;
}

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

.time-estimate {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.time-estimate .time-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.time-estimate .time-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.time-estimate .time-value {
  font-family: 'Crimson Pro', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-navy);
}

.contact-info {
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(226, 223, 217, 0.5);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--soft-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--primary-navy);
  font-weight: 500;
  word-break: break-word;
}

.contact-value a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-value a:hover {
  color: var(--accent-gold);
}

.cta-button {
  width: 100%;
  background: var(--primary-navy);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.footer-note {
  padding: 2rem 4rem;
  background: var(--soft-cream);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-gray);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 968px) {
  .instructions-section {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 2rem;
  }
  
  .info-section {
    padding: 2rem;
  }
  
  .footer-note {
    padding: 1.5rem 2rem;
  }
}

/* Question Page Styles */
.question-page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.progress-bar-container {
  background: white;
  border-radius: 50px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.08);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.question-progress-bar {
  background: linear-gradient(90deg, var(--accent-gold) 0%, #e6c563 100%);
  height: 8px;
  border-radius: 50px;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.question-progress-bar::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%); }
}

.question-card {
  background: white;
  border-radius: 8px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(26, 35, 50, 0.1);
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.6s ease-out;
}

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

.question-header-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--soft-cream);
}

.question-assessment-title {
  font-family: 'Crimson Pro', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.question-assessment-subtitle {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.question-restart-btn {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text-gray);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.question-restart-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.question-block {
  margin-bottom: 2.5rem;
  animation: slideInUp 0.5s ease-out both;
}

.question-block:nth-child(1) { animation-delay: 0.1s; }
.question-block:nth-child(2) { animation-delay: 0.2s; }
.question-block:nth-child(3) { animation-delay: 0.3s; }
.question-block:nth-child(4) { animation-delay: 0.4s; }
.question-block:nth-child(5) { animation-delay: 0.5s; }

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

.question-text {
  font-size: 1.1rem;
  color: var(--primary-navy);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
}

.rating-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.rating-button {
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  color: var(--text-gray);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rating-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.rating-button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

.rating-button:hover::before {
  width: 120%;
  height: 200%;
}

.rating-button.selected {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #e6c563 100%);
  border-color: var(--accent-gold);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.rating-button:active {
  transform: scale(0.98);
}

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

.question-nav-btn {
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.question-back-btn {
  background: transparent;
  color: var(--text-gray);
  border: 2px solid var(--border-light);
}

.question-back-btn:hover:not(:disabled) {
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  transform: translateX(-5px);
}

.question-back-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.question-continue-btn {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #14b8a6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.question-continue-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

.question-continue-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  box-shadow: none;
}

.question-continue-btn:disabled:hover {
  transform: none;
}

.page-indicator {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .question-card {
    padding: 2rem 1.5rem;
  }

  .question-header-section {
    flex-direction: column;
    gap: 1rem;
  }

  .question-assessment-title {
    font-size: 1.5rem;
  }

  .rating-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .rating-button {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .question-navigation {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .question-nav-btn {
    width: 100%;
  }
}


