/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/camera.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/* 카메라 및 얼굴 인식 관련 스타일 */

/* 비디오 요소 기본 스타일 */
.camera-video {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0.75rem;
}

/* 모바일에서 비디오 전체화면 방지 */
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-panel {
  display: none !important;
}

video::-webkit-media-controls-play-button {
  display: none !important;
}

video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* 캔버스 오버레이 */
.face-detection-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 0.75rem;
}

/* 얼굴 가이드라인 애니메이션 */
.face-guideline {
  animation: pulse-guideline 2s ease-in-out infinite;
}

@keyframes pulse-guideline {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* 광원 필터 미리보기 */
.light-filter-preview {
  transition: filter 0.3s ease-in-out;
}

.filter-normal {
  filter: none;
}

.filter-polarized {
  filter: brightness(0.9) contrast(1.3) saturate(0.8);
}

.filter-gloss {
  filter: brightness(1.2) contrast(1.5) saturate(1.1) blur(0.5px);
}

.filter-uv {
  filter: brightness(0.7) contrast(1.8) saturate(0.3) hue-rotate(240deg) invert(0.1);
}

/* 모바일 터치 최적화 */
@media (max-width: 768px) {
  .camera-container {
    touch-action: none;
  }
  
  .camera-video {
    max-height: 70vh;
  }
}

/* 얼굴 감지 상태 표시 */
.face-detection-status {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease-in-out;
}

.face-detected {
  background-color: rgba(34, 197, 94, 0.9);
  color: white;
}

.face-not-detected {
  background-color: rgba(239, 68, 68, 0.9);
  color: white;
}

/* 촬영 카운트다운 */
.capture-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  font-size: 4rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: countdown-pulse 1s ease-in-out;
}

@keyframes countdown-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* 진행률 표시 */
.analysis-progress {
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.8) 0%, 
    rgba(147, 51, 234, 0.8) 100%);
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
}

/* 이미지 미리보기 그리드 */
.captured-images-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.captured-image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #f3f4f6;
}

.captured-image-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.capture-check-mark {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #10b981;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 로딩 스피너 */
.loading-spinner {
  animation: spin 1s linear infinite;
}

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

/* 광원 정보 표시 */
.light-info-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .face-guideline,
  .capture-countdown,
  .analysis-progress {
    animation: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .face-detection-status {
    border: 2px solid currentColor;
  }
  
  .captured-image-item {
    border: 2px solid #000;
  }
}
