/*
Theme Name:   twentytwentythree child theme
Template:     twentytwentythree
Version:      1.0.6
*/

/* 1. 댓글 영역 전체 상단에 여백과 구분선 추가 (본문과 구분) */
.wp-block-comments,
.comments-area,
#comments {
  margin-top: 60px !important;
  padding-top: 40px !important;
  border-top: 2px solid #eaeaea !important;
}

/* 1-1. '문의에 대한 댓글 1개' 같은 타이틀 문구 숨기기 */
.wp-block-comments-title,
.comments-title {
  display: none !important;
}

/* 2. 댓글 리스트 영역 디자인 (전체 박스 제거, 깔끔한 여백 위주로) */
.wp-block-comment-template,
.comment-list {
  background-color: transparent !important; /* 박스 배경 제거 */
  padding: 0 !important; /* 안쪽 여백 제거 */
  margin-bottom: 40px !important;
  list-style: none !important;
}

/* 개별 댓글 간의 구분선과 간격 넓히기 */
.wp-block-comment-template li.comment,
.comment-list li.comment {
  border-bottom: 1px solid #f0f0f0 !important;
  padding-bottom: 25px !important;
  margin-bottom: 25px !important;
}

.wp-block-comment-template li.comment:last-child,
.comment-list li.comment:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 3. 댓글 입력 폼 디자인 (테두리와 그림자 효과로 강조) */
.wp-block-post-comments-form,
.comment-respond,
#respond {
  background-color: #ffffff !important;
  padding: 30px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  margin-top: 30px !important;
}

/* 댓글 입력 폼 제목 크기 조절 */
.wp-block-post-comments-form h3,
.comment-respond .comment-reply-title,
#respond .comment-reply-title {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  margin-bottom: 20px !important;
  display: block !important;
  border-bottom: none !important; /* 타이틀 아래쪽 라인 제거 */
}

/* 댓글 입력 폼 라벨(댓글 *, 이름 등)과 입력칸 사이 여백 추가 */
.wp-block-post-comments-form label,
.comment-respond label {
  display: inline-block !important;
  margin-bottom: 8px !important;
  font-weight: 600 !important;
}

/* 댓글 입력창(textarea) 스타일 다듬기 */
.wp-block-post-comments-form textarea,
.comment-respond textarea {
  width: 100% !important;
  padding: 15px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  resize: vertical !important;
}

/* 댓글 제출 버튼 디자인 */
.wp-block-post-comments-form input[type="submit"],
.comment-respond input[type="submit"] {
  background-color: #9dff20 !important;
  color: #121212 !important;
  padding: 10px 20px !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  margin-top: 10px !important;
  transition: all 0.2s ease !important;
}

.wp-block-post-comments-form input[type="submit"]:hover,
.comment-respond input[type="submit"]:hover {
  background-color: #8ce61c !important;
  transform: translateY(-2px) !important;
}

/* 5. 공통 컴포넌트 및 인증 폼 스타일 (중복 인라인 스타일 제거) */
.kwordle-auth-container {
  max-width: 380px;
  margin: 40px auto;
  text-align: center;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.kwordle-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center;
  font-size: 15px;
  color: #111827;
  transition: all 0.2s ease;
}

.kwordle-input:focus {
  background-color: #ffffff;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(157, 255, 32, 0.3);
  outline: none;
}

.kwordle-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #9dff20;
  color: #111827;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.kwordle-btn-primary:hover {
  background-color: #8ce61c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(157, 255, 32, 0.2);
}

.kwordle-btn-secondary {
  display: block;
  width: 100%;
  padding: 14px;
  background-color: #111827;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.kwordle-btn-secondary:hover {
  background-color: #374151;
  color: #ffffff;
}

.kwordle-btn-outline {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.kwordle-btn-outline:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* 4. 댓글 내부 텍스트 위계 (폰트 크기, 굵기, 색상) */
/* 작성자 이름 (가장 눈에 띄게) */
.wp-block-comment-author-name,
.wp-block-comment-author-name a,
.comment-author .fn,
.comment-author .fn a {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #121212 !important;
  text-decoration: none !important;
}

/* 작성 날짜 (가장 덜 눈에 띄게) */
.wp-block-comment-date,
.wp-block-comment-date a,
.comment-metadata,
.comment-metadata a {
  font-size: 0.85rem !important;
  color: #787c7e !important;
  text-decoration: none !important;
}

/* 댓글 본문 내용 (읽기 편안하게) */
.wp-block-comment-content,
.comment-content {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #333333 !important;
  margin-top: 10px !important;
}

/* 6. 전역 폰트 강제 통일 (입력창, 버튼, 코드 등 브라우저 기본 폰트 무시) */
code,
pre,
kbd,
samp,
input,
button,
textarea,
select {
  font-family: inherit !important;
}

/* 7. 전역 PC 우측 팝업 */
.popup-container-wrapper {
  display: none;
}
@media (min-width: 1024px) {
  .popup-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 30px;
    z-index: 9999;
  }
  .side-popup {
    display: flex;
    flex-direction: column;
    width: 220px;
    background: #fafafa;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
  }
  .side-popup .popup-content p {
    font-size: 16px;
    font-weight: 600;
    color: #121212;
    margin: 0 0 15px 0;
    line-height: 1.4;
    word-break: keep-all;
  }
  .side-popup .popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .side-popup .popup-actions button {
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
  }
  .side-popup .popup-actions button:hover {
    opacity: 0.8;
  }
  .kwordle-popup-close {
    background: #121212;
    color: #fafafa;
  }
  .kwordle-popup-never-show {
    background: #e3e5e8;
    color: #555555;
  }
}
