/* pages/common.css */
/* ===== CSS RESET (기본 브라우저 스타일 초기화) ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  line-height: 1.6;
  background-color: #0b0c10; /* 메인 배경 */
  color: #cccccc;
  font-family: "Malgun Gothic", "맑은고딕", sans-serif;
  font-size: 4.5vw !important;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ===== 기본 컬러 및 구조 설정 ===== */
:root {
  --primary-color: #ff007f; /* 네온 핑크: 눈에 확 띄는 CTA 버튼용 */
  --secondary-color: #141414; /* 딥 블랙: 시크한 배경 */
  --point-color: #00f0ff; /* 네온 블루: 섹션 강조나 인터랙션 포인트 */
  --text-color: #f0f0f0; /* 밝은 회색: 대비 좋은 텍스트용 */
  --background-color: #0a0a0a; /* 전체 배경: 딥다크, 몰입감 */
  --accent-color: #ffdd57; /* 금빛 노란색: 가격 강조나 하이라이트 */
}

.container {
  width: 95%;
  margin: 0 auto;
  padding: 1rem 0;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  line-height: 1.3;
  color: var(--point-color);
}

h1 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.15rem;
}

p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.content-wrapper {
  width: 100%;
}

header,
footer {
  width: 100%;
  background-color: #0b0c10;
}

header nav {
  width: 100%;
}

header nav ul {
  width: 100%;
  padding: 0 10px;
  display: flex;
  justify-content: space-around;
}

.hidden {
  display: none !important;
}

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

.flex {
  display: flex;
  align-items: center;
}

.V {
  flex-direction: column;
}

.highlight {
  color: var(--primary-color);
}

.gold-text {
  background: linear-gradient(
    190deg,
    #d4af37,
    #ffd700,
    #fff8dc,
    #ffd700,
    #d4af37
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.silver-text {
  background: linear-gradient(190deg, #aaa, #ddd, #f5f5f5, #ccc, #aaa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

@keyframes dim {
  0% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 100%;
  }
}

header {
  height: 20vh;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/assets/imgs/whisky.jpg");
  background-size: cover;
  background-position: center top;
  z-index: 99;
}

header .container {
  height: 100%;
  justify-content: center;
  position: relative;
  gap: 1rem;
}

header h1 {
  color: var(--accent-color) !important;
  text-shadow: 0 0 10px var(--secondary-color), 0 0 1px whitesmoke;
}

header a {
  color: var(--background-color);
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2px 20px;
  border-radius: 20px;
  align-self: flex-end;
  font-weight: bold;
  position: absolute;
  right: 10px;
  bottom: 10px;
  animation: dim 1s ease-in-out infinite;
}

nav {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

nav > ul > li > a {
  color: #333;
  font-weight: bold;
  background-color: whitesmoke;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 1px 1px 1px #555;
}

main {
  margin-top: 21vh;
  width: 100%;
  height: fit-content;
  padding: 10px;
  gap: 3rem;
}

#hero {
  width: 100%;
  height: 32.5vh;
  position: relative;
  background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    url("/assets/imgs/table3.jpg") no-repeat center center/cover;
  border-radius: 10px;
  overflow: hidden;
}

#hero .container {
  width: 100%;
  height: 100%;
  align-items: flex-start;
  justify-content: center;
  padding-left: 1rem;
}

#hero img {
  position: absolute;
  height: 100%;
  bottom: 0;
  right: -15px;
  animation: bikini 2s forwards ease-in;
}

@keyframes bikini {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#hero p {
  color: whitesmoke;
  text-indent: 5px;
  font-weight: bold;
  margin-bottom: -5px;
}

#hero .silver-text {
  text-indent: 10px;
  margin-top: 20px;
}

#hero .gold-text:last-child {
  margin-top: 1rem;
  animation: dim 0.5s ease-in-out infinite;
}

#about {
  width: 100%;
}

#about .container {
  position: relative;
}

#about .container h3 {
  margin-bottom: 1rem;
}

#about .container img {
  margin: 1rem 0;
}

#about .container .image-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.2)
  );
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.2));
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

#about .container .image-wrapper img {
  margin: 0;
}

#sites {
  width: 100%;
  position: relative;
}

#sites .container {
  align-items: flex-end;
}

#sites .info-card {
  position: relative;
  width: 100%;
  border-radius: 10px;
  background: rgba(73, 73, 73, 0.5); /* 배경 반투명 효과 */
  margin-top: 1rem;
  padding: 10px;
}

#sites .info-card img {
  border-radius: 10px;
  margin: 0 auto;
}

#sites .info-card h4 {
  margin-top: 1rem;
}

#sites .info-card p {
  margin-top: 1rem;
}

#qna {
  width: 100%;
  position: relative;
}

#qna img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
  opacity: 0.5;
  border-radius: 10px;
}

#qna .container {
  width: 100%;
  padding: 10px;
  gap: 20px;
}

#qna .container h3 {
  margin-bottom: 0.5rem;
}

#qna dl {
  width: 100%;
}

#qna .container dl .qna-item {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  padding: 20px 30px;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

#qna .container .qna-item dt {
  color: whitesmoke;
  font-weight: bold;
  margin-bottom: 1rem;
}

#qna .container .qna-item dd {
  color: whitesmoke;
  font-weight: bold;
}

#reviews {
  width: 100%;
}

#reviews .container {
  align-items: flex-start;
}

#reviews .container h3 {
  margin-bottom: 1rem;
}

#reviews #review-list {
  width: 100%;
  align-items: flex-start;
  gap: 1rem;
}

#reviews .container .review-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 16px 0;
  max-width: 600px;
  padding: 20px 20px;
  align-items: flex-start;
  gap: 16px;
}

#reviews .container .review-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  color: #777;
}

#reviews .container .review-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#reviews .container .review-text {
  font-size: 1rem;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.4;
  font-size: 0.7rem;
}

#reviews .container .user-id {
  font-size: 0.8rem;
  color: var(--secondary-color);
  align-self: flex-end;
}

#banner {
  width: 100%;
  height: 20vh;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("/assets/imgs/banner.jpg") no-repeat center center/cover;
  border-radius: 10px;
  position: relative;
}

#banner .tag {
  position: absolute;
  left: 0px;
  top: 10px;
  font-size: 0.7rem;
  padding: 0 2px;
  background-color: whitesmoke;
  border-radius: 3px;
  color: var(--blue-color);
}

#banner .container {
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  height: 100%;
}

#banner .container h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  text-align: center;
  color: whitesmoke;
  padding: 5px 20px;
  border-radius: 5px;
}

#banner .container p {
  margin-bottom: 0;
  line-height: 1.4;
  color: yellow;
  font-size: 0.7rem;
}

address {
  width: 100%;
  font-style: normal;
}

address > h6 {
  width: 100%;
  line-height: 1.5;
  color: #ccc;
}

address button {
  color: #ccc;
}

.sns-link {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

.sns-link img {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  box-shadow: 2px 2px 5px grey;
}

.copyright {
  margin-top: 1rem;
  color: white;
}

.term-sheet {
  width: 100%;
  margin-bottom: 0;
  justify-content: space-around;
}

.term-sheet button {
  flex: 1;
  text-align: center;
  color: #ccc;
  text-decoration: underline;
  font-size: 0.7rem;
  color: var(--blue-color);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  touch-action: pan-x pan-y;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #fff;
  color: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 닫기 버튼 */
.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #999;
  float: right;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.modal-content > h2 {
  color: var(--blue-color);
  margin-bottom: 20px;
}

.floating-buttons {
  position: fixed;
  right: 20px;
  top: 75%; /* 화면 높이의 약 2/3 지점 */
  transform: translateY(-50%); /* 중심 정렬 */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
}

.float-btn {
  background-color: #4caf50;
  color: #000;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
  font-size: 2.25rem;
  position: relative;
}

.map-btn {
  background-color: #faf3e0;
}

.float-btn i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 2px 2px 2px green;
}

.map-btn i {
  text-shadow: 2px 2px 2px gray;
}
