/* Custom Styles for 주량 MBTI 테스트 */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 부드러운 전환 효과 */
#startScreen,
#quizScreen,
#resultScreen {
  animation: fadeIn 0.5s ease-in;
}

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

/* 선택지 버튼 호버 효과 강화 */
#choicesContainer button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#choicesContainer button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#choicesContainer button:active {
  transform: translateY(0) scale(0.98);
}

/* 프로그레스 바 애니메이션 */
#progressBar {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 결과 화면 타이포그래피 */
#resultContent {
  animation: slideUp 0.6s ease-out;
}

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

/* 모바일 최적화 */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #questionText {
    font-size: 1.5rem;
    line-height: 1.6;
  }
  
  #choicesContainer button {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

/* 스크롤바 스타일링 (선택사항) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 포커스 스타일 개선 */
button:focus {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* 결과 버튼 정렬 */
#resultActions {
  align-items: stretch;
}

#resultActions .result-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  #resultActions .result-action {
    min-width: 180px;
  }
}
