/*
Theme Name: blankslate-child
Template: blankslate
Description: Child theme for Zozo — custom footer and CSS separated from parent updates.
Author: zozo
Version: 1.0.2
*/

/* --- Global tweaks --- */
header {
  display: none; /* If you ever need header back, remove this */
}

/* Links */
body a {
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: 900 !important;
}
body a:visited {
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: 900 !important;
}
body a:hover {
  background-color: #ff7400 !important;
  color: #000 !important;
  text-decoration: underline !important;
  font-weight: 900 !important;
}

/* Utility classes */
.custom-bold {
  font-weight: 700 !important;
}
.custom-em {
  font-style: italic !important;
  font-weight: 400 !important;
}
.custom-italic {
  font-style: italic !important;
  font-family: inherit !important; /* Pretendard 상속 */
}

/* Pretendard font */
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/uploads/fonts/PretendardVariable.woff2') format('woff2'),
       url('/wp-content/uploads/fonts/Pretendard-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pretendard';
  src: url('/wp-content/uploads/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
body {
  font-family: 'Pretendard', sans-serif !important;
}

/* Apply Pretendard to Korean content specifically */
html:lang(ko) body,
html:lang(ko) p,
html:lang(ko) h1,
html:lang(ko) h2,
html:lang(ko) h3,
html:lang(ko) h4,
html:lang(ko) h5,
html:lang(ko) h6,
html:lang(ko) div,
html:lang(ko) span,
html:lang(ko) li,
html:lang(ko) a {
  font-family: 'Pretendard', sans-serif;
}

/* Footer */
footer {
  background-color: #fff !important;
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: left;
  padding: 20px 10px;
  box-sizing: border-box;
  font-size: 0.8em;
  font-family: 'Pretendard', sans-serif;
  color: #000;
}
/* Page-specific footer background overrides */
body.page-id-103 footer {
  background-color: transparent !important;
}
body.page-id-686 footer,
body.page-id-1109 footer {
  background-color: #ff7400 !important;
}
footer p {
  margin: 0;
}
@media (max-width:768px) {
  footer {
    font-size: 0.7em;
    padding: 20px 10px;
  }
}

/* Prevent content from being hidden behind fixed footer */
body {
  padding-bottom: 90px; /* adjust if footer height changes */
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: auto;
  overflow: hidden;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  animation: slideShow 6s infinite;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 2s; }
.slide:nth-child(3) { animation-delay: 4s; }
@keyframes slideShow {
  0% { opacity: 0; }
  33% { opacity: 1; }
  66% { opacity: 1; }
  100% { opacity: 0; }
}

/* Memo card */
.memo {
  width: 240px;
  padding: 28px 12px 12px 12px;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(3px);
  border: 1px solid #1500FF;
  box-shadow: 4px 4px 12px #1500FF;
  font-size: 14px;
  font-family: 'Pretendard', sans-serif;
  overflow: hidden;
  cursor: move;
  user-select: none;
  touch-action: none; /* enable touch drag */
}
.memo .close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 300;
  color: #1500FF;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

/* textarea 공통 스타일 */
#userNote {
  font-family: inherit;
  outline: none;
  border: 1px solid #1500FF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#userNote::placeholder {
  font-family: inherit;
  color: #999;
}
#userNote:focus {
  border: 1px solid #1500FF;
  box-shadow: 0 0 0 2px rgba(21,0,255,0.2);
  outline: none;
}

/* 모션 민감 사용자 보호 */
@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 댓글 영역 첫 로드시 약간의 페이드 */
.comments[hidden] {
  display: block !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}
.comments.revealed {
  visibility: visible;
  height: auto;
  transition: opacity .3s ease;
  opacity: 1;
}

/* ===== 댓글 입력창 공통 ===== */
.comment-form input,
.comment-form textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid #1500FF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: var(--ink, #1500FF);
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  font-family: inherit;
  color: #999;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border: 1px solid #1500FF;
  box-shadow: 0 0 0 2px rgba(21,0,255,0.2);
  outline: none;
}
.comment-form textarea {
  padding: 12px;
  line-height: 1.6;
  resize: vertical;
}
.comment-form .submit {
  background: #fff;
  border: 1px solid #1500FF;
  color: #1500FF;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.comment-form .submit:hover {
  background: #1500FF;
  color: #fff;
}

/* 수직 리듬 기준값 */
:root { --vr: 16px; } /* 원하는 정도로 조정 (14~20px 추천) */

/* 카드 안쪽 여백: 상하 1.25vr, 좌우 0.875vr */
.post-card {
  padding: calc(var(--vr) * 1.25) calc(var(--vr) * 0.875);
}
/* 메타와 본문 시작 간격 */
.post-meta {
  margin-bottom: calc(var(--vr) * 0.75);
}
/* 본문 문단 간격 균일화 */
.post-content p {
  margin: 0 0 calc(var(--vr) * 0.625);
}
/* 댓글 버튼 있는 영역(액션 바)과 본문 간 간격 줄이기 */
.post-actions {
  margin-top: calc(var(--vr) * 0.75);
}
/* 댓글 블록과 액션 바 사이 간격 통일 */
.comments {
  margin-top: calc(var(--vr) * 0.75);
  padding-top: calc(var(--vr) * 0.75);
}
/* 카드들 사이 간격(리스트 간격) */
.post-card {
  margin: calc(var(--vr) * 1.125) 0;
}
/* 전체 래퍼 하단 여백도 줄여서 푸터/끝단이 과하게 뜨지 않도록 */
#postsWrap {
  margin: 8px auto calc(var(--vr) * 4);
}

/* 댓글 입력창을 #userNote와 동일하게 */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid #1500FF;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
  font-family: inherit;
  color: #999;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border: 1px solid #1500FF;
  box-shadow: 0 0 0 2px rgba(21,0,255,0.2);
  outline: none;
}
/* 댓글 등록 버튼도 라인 맞추기 */
.comment-form .submit {
  appearance: none;
  border: 1px solid #1500FF;
  background: #fff;
  color: #1500FF;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0;
}
.comment-form .submit:hover {
  background:#1500FF;
  color:#fff;
}

body.page-id-4482 footer {
	display: none !important;
}
}