/* 얼굴 나이 테스트 - 페이지 전용 스타일 */

.container {
  max-width: 700px;
}

.disclaimer-top {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 40px;
}

/* 업로드 섹션 */
.upload-section {
  margin-bottom: 30px;
}

.upload-area {
  background-color: var(--card-bg);
  border: 3px dashed var(--border-color);
  border-radius: 20px;
  padding: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: var(--accent-color);
}

.upload-area.drag-over {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

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

.upload-icon {
  font-size: 4rem;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-color);
}

.upload-hint {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* 이미지 미리보기 */
.preview-container {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.preview-container img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
}

.remove-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--btn-bg);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow);
}

.remove-btn:hover {
  background-color: var(--btn-hover);
  transform: scale(1.1);
}

/* 분석 버튼 */
.analyze-btn {
  padding: 18px 60px;
  font-size: 1.3rem;
  font-weight: 600;
  background-color: var(--accent-color);
  color: var(--btn-text);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.analyze-btn:hover:not(:disabled) {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

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

/* 로딩 섹션 */
.loading-section {
  padding: 60px 20px;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.loading-subtext {
  font-size: 1rem;
  opacity: 0.7;
}

/* 에러 섹션 */
.error-section {
  padding: 60px 20px;
  text-align: center;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.error-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.error-subtext {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 30px;
}

/* 결과 섹션 */
.result-section {
  animation: fadeInUp 0.6s ease forwards;
}

/* 나이 결과 카드 */
.age-result-card {
  background-color: var(--card-bg);
  border-radius: 24px;
  padding: 50px 30px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  margin-bottom: 25px;
}

.age-label {
  font-size: 1rem;
  opacity: 0.7;
  margin-bottom: 10px;
}

.age-number {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 5px;
}

.age-unit {
  font-size: 1.5rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.gender-badge {
  display: inline-block;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

/* 실제 나이 입력 */
.real-age-section {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px var(--shadow);
  margin-bottom: 25px;
  text-align: center;
}

.real-age-prompt {
  font-size: 1rem;
  margin-bottom: 15px;
  opacity: 0.8;
}

.real-age-input-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.real-age-input-row input {
  width: 120px;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  background-color: var(--card-bg);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.3s ease;
}

.real-age-input-row input:focus {
  border-color: var(--accent-color);
}

.check-btn {
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.check-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* 동안/노안 판정 카드 */
.verdict-card {
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  margin-bottom: 25px;
  animation: fadeInUp 0.6s ease forwards;
}

.verdict-young {
  background: linear-gradient(135deg, #00b894, #00cec9);
}

.verdict-old {
  background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.verdict-accurate {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.verdict-emoji {
  font-size: 4rem;
  margin-bottom: 15px;
}

.verdict-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.verdict-desc {
  font-size: 1.05rem;
  color: #ffffff;
  opacity: 0.9;
  line-height: 1.6;
}

/* 결과 카드 */
.result-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: left;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.result-card-icon {
  font-size: 1.8rem;
}

.result-card-header h2 {
  font-size: 1.4rem;
  color: var(--accent-color);
}

.result-card-content {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* 면책 조항 */
.result-disclaimer {
  text-align: center;
  padding: 20px;
  opacity: 0.6;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
  word-break: keep-all;
}

/* 다시 분석 버튼 */
.retry-btn {
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: var(--btn-secondary-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn:hover {
  background-color: var(--btn-secondary-hover);
  transform: translateY(-2px);
}

/* 반응형 */
@media (max-width: 768px) {
  .upload-area {
    padding: 30px 20px;
    min-height: 200px;
  }

  .upload-icon {
    font-size: 3rem;
  }

  .age-number {
    font-size: 4rem;
  }

  .age-result-card {
    padding: 35px 20px;
  }

  .age-unit {
    font-size: 1.2rem;
  }

  .verdict-card {
    padding: 25px 20px;
  }

  .verdict-title {
    font-size: 1.4rem;
  }

  .verdict-desc {
    font-size: 0.95rem;
  }

  .real-age-input-row {
    flex-direction: column;
  }

  .real-age-input-row input {
    width: 100%;
    max-width: 200px;
  }

  .result-card {
    padding: 25px 20px;
  }

  .result-card-header h2 {
    font-size: 1.2rem;
  }

  .result-card-content {
    font-size: 1rem;
  }

  .analyze-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
  }

  .result-disclaimer {
    font-size: 0.8rem;
    padding: 15px 10px;
  }

  .disclaimer-top {
    font-size: 0.75rem;
  }
}
