/* guestbook.css */

.write-button {
  background-color: var(--warm-accent) !important;
}

.write-button:hover {
  background-color: #c77b92 !important;
}

/* -------------------------------------------------------
   방명록 목록 스타일
------------------------------------------------------- */
#guestbook-list-container {
  margin-top: 20px;
  padding-bottom: 70px; /* 작성하기 버튼 공간 확보 */
  position: relative;
  /* 최대 너비 설정 (화면 중앙에 정렬되도록) */
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.guestbook-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%; /* 부모 컨테이너(max-width: 500px)에 맞춤 */
  box-sizing: border-box; /* 패딩과 보더를 너비에 포함 */
}

.guestbook-name {
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  display: block;
  text-align: left; /* 왼쪽 정렬 */
}

.guestbook-message {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  white-space: pre-wrap; /* 줄바꿈 유지 */
  text-align: left; /* 왼쪽 정렬 */
}

.guestbook-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

/* 방명록 목록 하단 '작성하기' 버튼 스타일 */
.write-button {
  /* 중앙 정렬 및 위치 조정 */
  position: relative;
  display: block;
  margin: 20px auto 0 auto; /* 중앙 정렬 */

  /* 색상: 참석여부전달 버튼 색 (#4682B4) */
  padding: 12px 30px;
  background-color: var(--warm-accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: none; /* 그림자 제거 */
  transition: background-color 0.2s;
}

.write-button:hover {
  background-color: #5a9bcf; /* 마우스 오버 시 살짝 밝게 */
}

/* -------------------------------------------------------
   방명록 작성 팝업 스타일
------------------------------------------------------- */

/* 팝업 컨테이너 (index.html의 .popup-container를 재정의) */
.guestbook-popup-container {
  max-width: 350px;
}

/* 방명록 폼 그룹 */
#guestbookForm .form-group {
  margin-bottom: 20px;
}

#guestbookForm .form-group label {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 5px;
}

/* 인풋 텍스트 (index.html의 .input-text 재사용) */
#guestbookForm textarea.input-text {
  height: 120px;
  resize: vertical;
}

/* 검은색 배경 전송 버튼 */
.submit-button-container.black-bg {
  padding: 0;
  border-top: none;
}

.submit-button.black-button {
  background-color: var(--warm-accent);
  color: #ffffff;
  border-radius: 0;
  padding: 18px 15px;
  font-size: 16px;
}

.submit-button.black-button:hover {
  background-color: #c77b92;
}

/* 필수 표시(*)는 index.html의 .required 클래스 사용 */
.required {
  color: #e74c3c;
  margin-left: 2px;
}

/* -------------------------------------------------------
   커스텀 비밀번호 확인 팝업 스타일
------------------------------------------------------- */
.delete-popup-container {
  max-width: 300px;
  padding: 20px;
  text-align: center;
}

.delete-popup-container p {
  margin-bottom: 15px;
  font-size: 15px;
}

.delete-popup-container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.delete-popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.delete-popup-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.delete-cancel-btn {
  background-color: #ccc;
  color: #333;
}

.delete-confirm-btn {
  background-color: #e74c3c; /* 삭제는 빨간색 계열 */
  color: #fff;
}
