/* MBTI App Styles - Local CSS to avoid CDN blocking */
/* Based on Tailwind-like utility classes */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  line-height: 1.5;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 72rem; /* 4xl */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Spacing */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-32 { margin-top: 8rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-32 { margin-bottom: 8rem; }

.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Width */
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Colors */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-400 { color: #9ca3af; }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-red-400 { color: #f87171; }

.bg-black { background-color: #000; }
.bg-white { background-color: #fff; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-gray-300 { border-color: #d1d5db; }

.rounded-lg { border-radius: 0.5rem; }

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all-200 {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.transition-all-300 {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Hover States */
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:text-black:hover { color: #000; }

/* Height */
.min-h-screen { min-height: 100vh; }
.min-h-60vh { min-height: 60vh; }

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 3rem;
}

.progress-bar {
  height: 100%;
  background-color: #fff;
  transition: width 300ms ease;
}

/* Answer Scale */
.answer-scale {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.answer-option {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  background: transparent;
  color: white;
  font-size: 1.125rem;
  text-align: left;
  cursor: pointer;
  transition: all 200ms ease;
}

.answer-option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.answer-option.selected {
  background: white;
  color: black;
  border-color: white;
}

/* Clerk Modal */
.clerk-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.clerk-modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 32rem;
  width: 90%;
}

/* Responsive */
@media (max-width: 768px) {
  .text-7xl { font-size: 3rem; }
  .text-8xl { font-size: 4rem; }
  .text-9xl { font-size: 5rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  .px-12 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .py-4 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}