/* /css/common.css - 공통.css */

/* =================================================================== */
/*  1. 기본 레이아웃 및 전체 설정 (Reset & Layout) */
/* =================================================================== */

:root {
  --round-button-bgcolor: #ff9e15; /* 진한 노란색 */
  --round-button-textcolor: #fff; /* 하얀색 */
}






/* =================================================================== */
/*  2. 메인 컨테이너 및 컴포넌트 스타일 (Components) */
/* =================================================================== */

/* === 입력 필드 (Input) === */
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  box-sizing: border-box; /* padding이 너비에 영향을 주지 않도록 설정 */
}

input:disabled {
  background-color: #e9ecef;
}

/* === 공통 버튼 === */
.start-button,
.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.start-button:hover,
.login-button:hover {
  background-color: #0069d9;
}

/* === 기타 컴포넌트 === */
.register-link {
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.register-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.register-link a:hover {
  text-decoration: underline;
}

.timer-display {
  font-size: 0.78rem;
  color: #e74c3c;
  margin-top: 0.5rem;
  margin-left: 0.25rem;
  height: 1.3em;
  display: block;
  text-align: left;
}

#recaptcha-container {
  margin-top: 1rem;
  text-align: center;
}




/* =================================================================== */
/*  3. 유틸리티 및 헬퍼 클래스 (Utilities & Helpers) */
/* =================================================================== */

/* === 아이콘 & 이미지 === */
.icon {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-20 { width: 20px; height: 20px; object-fit: contain; }
.icon-24 { width: 24px; height: 24px; object-fit: contain; }

.profile-img-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* === 토스트 === */
.toast-top-right {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 1080;
}

/* === 애니메이션 === */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.shake {
  animation: shake 0.4s ease;
}

/* 페이지 전환 효과 (필요 시 사용) */
.fade-enter, .slide-enter, .slide-exit, .slide-back-enter, .slide-back-exit {
  opacity: 0;
  transform: translateX(100%);
}
.fade-enter-active, .slide-enter-active, .slide-back-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.slide-exit-active, .slide-back-exit-active {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* === 기타 유틸리티 === */
.scroll-shadow-top { box-shadow: inset 0 6px 6px -6px rgba(0, 0, 0, 0.1); }
.scroll-shadow-bottom { box-shadow: inset 0 -6px 6px -6px rgba(0, 0, 0, 0.1); }

.z-above-header { z-index: 1050; }
.z-toast { z-index: 1080; }
.z-modal { z-index: 1100; }

/* 관심등록 하트 애니메이션 */
.fav-feedback { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 5rem; z-index: 2000; pointer-events: none; opacity: 0; }
.fav-feedback.animate { animation: popFade 1s ease forwards; }
.fav-icon.bi-heart { color: #fff; }
.fav-icon.bi-heart-fill { color: rgba(220, 53, 69, 0.9); }
button.like-btn,
button.like-btn:focus,
button.like-btn:active,
button.like-btn:focus-visible,
button.like-btn i,
button.like-btn i:focus,
button.like-btn i:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}



@keyframes popFade {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  40% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.1); opacity: 0; }
}

/* 로딩 스피너 */
.loading-spinner { 
  text-align: center; 
  padding: 1rem; 
}






/* =================================================================== */
/*  [4] 사용자정의 부트스트랩 */
/* =================================================================== */
/* 크기  */
.fs-7 {
  font-size: 0.93rem !important; /* ✅ small(0.875rem)보다 크게 */
  line-height: 1.2;
}
.small {
  font-size: 0.875rem !important; /* ✅ small(0.875rem) */
  line-height: 1.2;
}
.xsmall {
  font-size: 0.78rem !important; /* ✅ small(0.875rem) */
  line-height: 1.2;
}
.xxsmall {
  font-size: 0.65rem !important; /* ✅ small(0.875rem) */
  line-height: 1.2;
}
.bg-light {
  background-color: #f0f2f4 !important; /* Bootstrap 기본은 #f8f9fa */
}
.text-muted {
  color: #6c6c6c !important;  /* 기본보다 약간 진한 회색 */
}
.bi-image {
  font-size: 1.15rem !important;    /* 원하는 크기 fs-5 */
  opacity: 0.9;   /* 0.5~0.7 추천 */
  line-height: 1;                /* 세로 맞춤 */
}
/* 절대 지우지 말것! - 뒤로가기 아이콘 대체 이미지 */
.bi-chevron-left {
  font-weight: 900;
  color: #000; 
  text-shadow:
    0.12px 0 0 currentColor,
    -0.12px 0 0 currentColor;
}
/* 대표 확인이나 등록 저장 버튼 색상 - 한손마켓 테마 색상(오렌지 ,남색) */
.btn-orange {
  background-color: #ff6f0f !important;
  border-color: #ff6f0f !important;
  color: #fff !important;
}

.btn-orange:disabled {
  background-color: #ffb98a !important;
  border-color: #ffb98a !important;
}






/* =============================================== */
/* [5]� 전역 입력창 포커스 후광(blue/gray/orange) 완전 제거 */
/* =============================================== */

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important !important;
    border-color: #ddd !important; /* 원하면 색도 변경 가능 */
}





/* =================================================================== */
/*  [6] 매너 온도 버튼 */
/* =================================================================== */
.manner-btn {
  flex: 0 0 auto;
  border: none;
  background: #f6f6f6;
  border-radius: 20px;
  font-size: 0.7rem;
  padding: 2px 6px; /* 조금 줄임 */
  color: #333;
  cursor: default;
  transition: background 0.2s, color 0.2s;
  font-weight: normal !important;
}
.manner-btn.active {
  background: #ffd633;
  color: #000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.manner-btn:hover {
  background: #ffe066;
}



