/* ========================================
   확인 모달 스타일
   적응형 난이도 시스템 - 훈련 결과 확인
   ======================================== */

.confirmation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.confirmation-modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

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

/* 헤더 */
.confirmation-header {
  padding: 24px;
  text-align: center;
  color: white;
  flex-shrink: 0;
}

.confirmation-emoji {
  font-size: 48px;
  margin-bottom: 8px;
  animation: bounce 0.6s ease-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.confirmation-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

/* 본문 */
.confirmation-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.confirmation-member {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
  margin: 0 0 16px 0;
  grid-column: 1 / -1;
}

/* 통계 */
.confirmation-stats {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
}

.confirmation-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.confirmation-stat-row:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.stat-value {
  font-size: 16px;
  color: #1f2937;
  font-weight: 700;
}

/* 평가 */
.confirmation-grade {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grade-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 600;
}

.grade-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.grade-stars {
  font-size: 20px;
  letter-spacing: 4px;
}

/* 구분선 */
.confirmation-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 16px 0;
  grid-column: 1 / -1;
}

/* 질문 */
.confirmation-question {
  font-size: 15px;
  color: #374151;
  text-align: center;
  margin: 0 0 12px 0;
  font-weight: 600;
  grid-column: 1 / -1;
}

/* 다음 레벨 */
.confirmation-next {
  text-align: center;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.next-level-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 20px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.next-level-text {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

/* 메시지 */
.confirmation-message {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  grid-column: 1 / -1;
}

/* 푸터 버튼 */
.confirmation-footer {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.btn-retry,
.btn-confirm,
.btn-complete {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-retry {
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
}

.btn-retry:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-confirm {
  color: white;
}

.btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

.btn-complete {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-complete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  filter: brightness(1.1);
}

.btn-retry:active,
.btn-confirm:active,
.btn-complete:active {
  transform: translateY(0);
}

/* 반응형 */
@media (max-width: 1024px) {
  .confirmation-modal-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .confirmation-modal-content {
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
  }
  
  .confirmation-header {
    padding: 20px 16px;
  }
  
  .confirmation-emoji {
    font-size: 40px;
  }
  
  .confirmation-title {
    font-size: 20px;
  }
  
  .confirmation-body {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .confirmation-footer {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  
  .btn-retry,
  .btn-confirm,
  .btn-complete {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .confirmation-modal-content {
    max-height: 95vh;
  }
  
  .confirmation-header {
    padding: 16px;
  }
  
  .confirmation-emoji {
    font-size: 36px;
  }
  
  .confirmation-title {
    font-size: 18px;
  }
  
  .confirmation-body {
    padding: 16px;
  }
  
  .confirmation-footer {
    padding: 12px 16px;
  }
  
  .btn-retry,
  .btn-confirm {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* 애니메이션 효과 */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-confirm {
  animation: pulse 2s infinite;
}

.btn-confirm:hover {
  animation: none;
}
