F/* =========================================================
   bowrex — LOGBOOK ONLY (FINAL)
   File: logbook.css
   Scope:
   - Category: /category/logbook/
   - Single: Logbook posts + Q&A style (single-logbook.php)
   ========================================================= */

/* ---------------------------------------------------------
   0) SAFETY (logbook pages only)
   --------------------------------------------------------- */
body.category-logbook *,
body.single-post.category-logbook *{
  box-sizing: border-box;
}

body.category-logbook,
body.single-post.category-logbook{
  overflow-x: hidden;
}

/* =========================================================
   1) LOGBOOK CATEGORY PAGE
   ========================================================= */

/* Page wrap */
body.category-logbook .pb-logbook-wrap{
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 16px 70px;
}

/* Hero */
body.category-logbook .pb-logbook-hero{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
body.category-logbook .pb-logbook-hero img{
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* Head */
body.category-logbook .pb-logbook-head{ margin-top: 16px; }
body.category-logbook .pb-logbook-h1{
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
}
body.category-logbook .pb-logbook-desc{
  margin: 0;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 75ch;
}

/* List */
body.category-logbook .pb-logbook-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

/* ✅ Category list card: thumbnail(좌) + text(우) */
body.category-logbook article.pb-logbook-card{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);

  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}

/* hover */
body.category-logbook article.pb-logbook-card:hover{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

/* Thumbnail */
body.category-logbook .pb-logbook-thumb{
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
body.category-logbook .pb-logbook-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.category-logbook .pb-logbook-thumb-placeholder{
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.06);
}

/* Body */
body.category-logbook .pb-logbook-body{
  flex: 1 1 auto;
  min-width: 0; /* ✅ 말줄임 필수 */
}

/* Title: 1-line ... */
body.category-logbook .pb-logbook-title{ margin: 0; }
body.category-logbook .pb-logbook-title a{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  color: rgba(255,255,255,0.88);
  font-size: clamp(14px, 1.2vw, 18px);
  text-decoration: none;
}
body.category-logbook .pb-logbook-title a:hover{
  color: rgba(255,255,255,1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Pills: 아래줄 + wrap 허용 (모바일 안전) */
body.category-logbook .pb-logbook-meta{
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body.category-logbook .pb-logbook-pill{
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.14);
  color: rgba(255,255,255,0.78);
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}

/* ✅ Read 버튼 / excerpt 제거 */
body.category-logbook .pb-logbook-actions,
body.category-logbook .pb-logbook-excerpt{
  display: none !important;
}

/* Mobile tighter */
@media (max-width: 480px){
  body.category-logbook article.pb-logbook-card{
    padding: 8px 10px;
    gap: 10px;
  }
  body.category-logbook .pb-logbook-thumb{
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
  body.category-logbook .pb-logbook-pill{
    font-size: 9px;
  }
}

/* =========================================================
   2) LOGBOOK SINGLE — base (single-logbook.php)
   Requires: <main class="pb-logbook-single"> ... </main>
   ========================================================= */

/* ✅ 최상위 overlay/opacity 문제를 logbook single에서만 복구 */
body.single-post.category-logbook,
body.single-post.category-logbook #page,
body.single-post.category-logbook .site,
body.single-post.category-logbook .site-content,
body.single-post.category-logbook .site-main,
body.single-post.category-logbook main,
body.single-post.category-logbook article,
body.single-post.category-logbook .entry-header,
body.single-post.category-logbook .entry-content{
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* pseudo overlay 제거(있으면) */
body.single-post.category-logbook::before,
body.single-post.category-logbook::after,
body.single-post.category-logbook #page::before,
body.single-post.category-logbook #page::after,
body.single-post.category-logbook .site::before,
body.single-post.category-logbook .site::after,
body.single-post.category-logbook .site-content::before,
body.single-post.category-logbook .site-content::after{
  content: none !important;
  display: none !important;
}

/* Main wrapper */
body.single-post.category-logbook main.pb-logbook-single{
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px 60px; /* ✅ 위쪽 공백 줄임 */
}

/* Article panel */
body.single-post.category-logbook .pb-logbook-single-article,
body.single-post.category-logbook main.pb-logbook-single article.post{
  background: rgba(11,15,26,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 18px 16px 22px;
}

/* Title */
body.single-post.category-logbook main.pb-logbook-single .entry-title{
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  margin: 8px 0 10px;
  color: rgba(255,255,255,0.96) !important;

  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Content typography */
body.single-post.category-logbook main.pb-logbook-single .entry-content,
body.single-post.category-logbook main.pb-logbook-single .entry-content p,
body.single-post.category-logbook main.pb-logbook-single .entry-content li{
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.90) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.single-post.category-logbook main.pb-logbook-single .entry-content h2{
  font-size: 20px;
  font-weight: 700;
  margin: 22px 0 10px;
  color: rgba(255,255,255,0.94) !important;
}
body.single-post.category-logbook main.pb-logbook-single .entry-content h3{
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: rgba(255,255,255,0.92) !important;
}

/* Links */
body.single-post.category-logbook main.pb-logbook-single .entry-content a{
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Prevent code blocks from overflow */
body.single-post.category-logbook main.pb-logbook-single pre,
body.single-post.category-logbook main.pb-logbook-single code{
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Mobile single */
@media (max-width: 700px){
  body.single-post.category-logbook main.pb-logbook-single{
    padding: 8px 12px 54px;
  }
  body.single-post.category-logbook main.pb-logbook-single .entry-title{
    font-size: 22px !important;
    line-height: 1.12 !important;
    margin-top: 6px !important;
  }
  body.single-post.category-logbook main.pb-logbook-single .entry-content,
  body.single-post.category-logbook main.pb-logbook-single .entry-content p,
  body.single-post.category-logbook main.pb-logbook-single .entry-content li{
    font-size: 14.5px !important;
    line-height: 1.68 !important;
  }
}

/* =========================================================
   3) Q&A blocks (single-logbook.php)
   ========================================================= */

.pb-logbook-single .pb-qa-header{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
}

.pb-logbook-single .pb-qa-qtag,
.pb-logbook-single .pb-qa-atag{
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

.pb-logbook-single .pb-qa-title{
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.96);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pb-logbook-single .pb-qa-topics{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pb-logbook-single .pb-qa-pill{
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.pb-logbook-single .pb-qa-answer{
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.pb-logbook-single .pb-qa-content{
  flex: 1 1 auto;
  min-width: 0;
}
.pb-logbook-single .pb-qa-content p,
.pb-logbook-single .pb-qa-content li{
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  overflow-wrap: anywhere;
}

/* Mobile Q&A */
@media (max-width: 700px){
  .pb-logbook-single .pb-qa-qtag,
  .pb-logbook-single .pb-qa-atag{
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .pb-logbook-single .pb-qa-content p,
  .pb-logbook-single .pb-qa-content li{
    font-size: 14.5px;
    line-height: 1.68;
  }
}

/* =========================================================
   4) COMMENTS (Follow-up questions)
   ========================================================= */

/* Comment count / title highlight */
body.single-post.category-logbook #comments h2,
body.single-post.category-logbook #comments h3,
body.single-post.category-logbook #comments .comments-title,
body.single-post.category-logbook .comments-area h2,
body.single-post.category-logbook .comments-area h3{
  color: #ffd24a !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  letter-spacing: 0.4px;
}

body.single-post.category-logbook #comments h2::before,
body.single-post.category-logbook #comments h3::before{
  content: "💬 ";
}

/* Actual comment text */
body.single-post.category-logbook #comments .comment-content,
body.single-post.category-logbook #comments .comment-content p,
body.single-post.category-logbook #comments .comment-body,
body.single-post.category-logbook #comments .comment-body p,
body.single-post.category-logbook #comments .comment-author,
body.single-post.category-logbook #comments .comment-metadata,
body.single-post.category-logbook #comments .comment-meta{
  color: rgba(255,255,255,0.88) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* Reply link */
body.single-post.category-logbook #comments .reply a,
body.single-post.category-logbook #comments a.comment-reply-link{
  color: #ffd24a !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
body.single-post.category-logbook #comments .reply a:hover,
body.single-post.category-logbook #comments a.comment-reply-link:hover{
  text-decoration: underline !important;
}

/* Comment form inputs (guest + logged-in) */
body.single-post.category-logbook #comments .comment-form label,
body.single-post.category-logbook #comments .comment-notes,
body.single-post.category-logbook #comments .logged-in-as,
body.single-post.category-logbook #comments .logged-in-as a{
  color: rgba(255,255,255,0.75) !important;
}

body.single-post.category-logbook #comments .comment-form input[type="text"],
body.single-post.category-logbook #comments .comment-form input[type="email"],
body.single-post.category-logbook #comments .comment-form input[type="url"],
body.single-post.category-logbook #comments .comment-form textarea{
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 10px !important;
  padding: 12px !important;
}

body.single-post.category-logbook #comments .comment-form input:focus,
body.single-post.category-logbook #comments .comment-form textarea:focus{
  outline: none !important;
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(255,255,255,0.35) !important;
}

/* Autofill white/yellow fix (mobile browsers) */
body.single-post.category-logbook #comments input:-webkit-autofill,
body.single-post.category-logbook #comments input:-webkit-autofill:hover,
body.single-post.category-logbook #comments input:-webkit-autofill:focus,
body.single-post.category-logbook #comments textarea:-webkit-autofill,
body.single-post.category-logbook #comments textarea:-webkit-autofill:hover,
body.single-post.category-logbook #comments textarea:-webkit-autofill:focus{
  -webkit-text-fill-color: rgba(255,255,255,0.95) !important;
  transition: background-color 9999s ease-in-out 0s !important;
  box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
}

/* Submit button */
body.single-post.category-logbook #comments .form-submit input[type="submit"]{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.single-post.category-logbook #comments .form-submit input[type="submit"]:hover{
  background: rgba(255,255,255,0.08);
}
