@import url('./eudoxus-sans.css');
@import url('./colors.css');

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: 'Eudoxus Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.quiz-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.quiz-header p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
}

.question-container {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  display: none;
  max-width: 100%;
}

.question-container.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.question {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

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

.option {
  padding: clamp(0.8rem, 2vw, 1rem);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-800);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
  user-select: none;
  position: relative;
  transform: translateY(0);
}

.option:hover {
  background: var(--primary-opacity-8);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.option:active {
  transform: translateY(0);
}

.option.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.result-container {
  display: none;
  text-align: center;
  background: var(--white);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  max-width: 100%;
}

.result-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 1rem;
}

.result-description {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--gray-700);
  margin-bottom: 2rem;
}

.restart-btn {
  background: var(--primary-cta);
  color: var(--gray-900);
  border: none;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 8px;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
  transform: translateY(0);
}

.restart-btn:hover {
  background: var(--primary-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: var(--primary);
  width: 0;
  transition: width 0.3s ease;
}

.logo-container {
  margin-top: auto;
  padding-top: 2rem;
  text-align: center;
}

.logo-container svg {
  width: clamp(120px, 30vw, 169px);
  height: auto;
}

@media (max-width: 768px) {
  .container {
    margin: 1rem auto;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 0.5rem auto;
    padding: 0.8rem;
  }
}

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