/**
 * 버튼 컴포넌트 스타일
 */
.start-button,
.cancel-button,
.speak-button,
.translate-button,
.reset-button,
.change-image-button,
.camera-button,
.file-button,
.load-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  min-width: 44px;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* 액션 버튼 스타일 (마이크로 인터랙션) */
.action-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.action-button:hover::before {
  width: 300px;
  height: 300px;
}

.action-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.action-button:active {
  transform: translateY(-1px);
}

/* 버튼 그라디언트 스타일 */
.primary-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #e85a5a 100%);
}

.secondary-button {
  background: linear-gradient(135deg, #4ecdc4 0%, #3ab2a9 100%);
}

.tertiary-button {
  background: linear-gradient(135deg, #ffe66d 0%, #ffd54a 100%);
}

.icon-wrapper {
  transition: transform 0.3s ease;
}

.action-button:hover .icon-wrapper {
  transform: scale(1.2) rotate(5deg);
}

.camera-button,
.file-button,
.load-button {
  font-size: 1rem;
  min-height: 48px; /* 터치 영역 확보 (모바일 접근성) */
  touch-action: manipulation; /* 더블탭 줌 방지 */
  transition: all 0.2s ease;
}

/* 카메라가 없을 때 파일 버튼 중앙 정렬 */
.file-button:only-child {
  max-width: 400px;
  margin: 0 auto;
}

/* 버튼 너비 반응형 조정 */
@media (min-width: 640px) {
  .camera-button,
  .file-button {
    flex: 0 1 auto;
  }
}

@media (min-width: 768px) {
  .camera-button,
  .file-button {
    flex: 0 1 auto;
  }
}

.camera-button span,
.file-button span,
.load-button span {
  display: inline-block;
}

/* 버튼 내부 요소 정렬 */
.action-button .relative.z-10 {
  width: 100%;
}

.action-button .flex.items-center.justify-center {
  white-space: nowrap;
}

/* 모바일에서 버튼 텍스트 크기 조정 */
@media (max-width: 640px) {
  .camera-button,
  .file-button,
  .load-button {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem !important;
    max-width: 100%;
  }
  
  /* 모바일에서 버튼 그룹 최적화 */
  .flex.flex-col.sm\:flex-row {
    width: 100%;
  }
  
  .action-button {
    font-size: 0.875rem !important;
  }
  
  .action-button .icon-wrapper {
    font-size: 1.5rem !important;
  }
  
  .load-button .icon-wrapper {
    font-size: 1.25rem !important;
  }

  /* 작은 버튼도 터치 영역 보장 */
  .reset-button,
  .change-image-button {
    min-height: 44px;
    min-width: 44px;
    padding: 0.625rem 1rem;
  }
  
  /* 버튼 그룹 간격 조정 */
  .flex.flex-col.sm\:flex-row.gap-3 {
    gap: 0.75rem;
  }
}

.disabled,
button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* 설정 및 설치 버튼 스타일 */
.settings-icon-button,
.install-icon-button {
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
}

.settings-icon-button:hover,
.install-icon-button:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 설치 배너 버튼 스타일 */
#install-banner-button {
  min-height: 44px;
  min-width: 80px;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#install-banner-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#install-banner-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#install-banner-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0.625rem !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#install-banner-close:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  transform: scale(1.1);
}

#install-banner-close:active {
  transform: scale(0.95);
  background-color: rgba(255, 255, 255, 0.15) !important;
}

