/* 석고 방향제 추천 시스템 - 스타일 */

:root {
  --primary-color: #FF69B4;
  --secondary-color: #87CEEB;
  --accent-color: #FFD700;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  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;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: var(--text-dark);
}

#app {
  width: 100%;
  max-width: 800px;
}

/* 컨테이너 */
.container {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

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

/* 시작 화면 */
.start-screen {
  text-align: center;
}

.header {
  margin-bottom: 40px;
}

.title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 16px;
  font-weight: 800;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.6;
}

.info-box {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  margin: 30px 0;
  text-align: left;
}

.info-box h3 {
  color: var(--text-dark);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 10px 0;
  border-bottom: 1px solid #E0E0E0;
  font-size: 1rem;
  color: var(--text-dark);
}

.info-box li:last-child {
  border-bottom: none;
}

.info-box strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 버튼 */
.btn-primary, .btn-secondary {
  padding: 16px 40px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin: 10px 5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #FF1493);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #E0E0E0;
}

/* 질문 화면 */
.question-screen {
  animation: slideIn 0.4s ease;
}

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

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-light);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.question-header {
  margin-bottom: 40px;
}

.question-number {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.question-text {
  font-size: 1.8rem;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 700;
}

/* 선택지 */
.options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.option-btn {
  display: flex;
  align-items: center;
  padding: 20px 25px;
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.option-btn:hover {
  background: white;
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.option-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 20px;
  flex-shrink: 0;
}

.option-text {
  flex: 1;
  font-size: 1.1rem;
  color: var(--text-dark);
  line-height: 1.5;
}

/* 결과 화면 */
.result-screen {
  animation: fadeIn 0.6s ease;
}

.result-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
}

.score-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.zone-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.zone-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.zone-description {
  font-size: 1.2rem;
  opacity: 0.95;
}

.recommendation-section {
  margin: 30px 0;
}

.section-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.fragrance-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 3px solid var(--primary-color);
}

.fragrance-name {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 15px;
}

.fragrance-effect {
  font-size: 1.2rem;
  color: var(--text-dark);
}

.color-section {
  margin: 30px 0;
}

.color-group {
  margin-bottom: 30px;
}

.color-group h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.color-palette {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.color-chip {
  flex: 1;
  min-width: 120px;
  height: 100px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.color-chip:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.color-name {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    padding: 25px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .question-text {
    font-size: 1.4rem;
  }
  
  .option-btn {
    padding: 15px 20px;
  }
  
  .option-label {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    margin-right: 15px;
  }
  
  .option-text {
    font-size: 1rem;
  }
  
  .color-chip {
    min-width: 100px;
    height: 80px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 20px;
  }
  
  .title {
    font-size: 1.6rem;
  }
  
  .zone-card {
    padding: 25px;
  }
  
  .zone-name {
    font-size: 1.5rem;
  }
}
