/**
 * specguide Community — forum.specguide.kr
 * 타겟: 미니PC 구매 리서치 유저 (클린·신뢰·스캔 가능 — RTINGS/클리앙 톤)
 * 브랜드: specguide.kr (--ink, --navy, --coral, Pretendard)
 */

:root {
  --sg-ink: #1a1d24;
  --sg-gray: #5a616e;
  --sg-faint: #8b919c;
  --sg-line: #e8e9ee;
  --sg-coral: #d8491c;
  --sg-coral-dk: #b83d16;
  --sg-navy: #0d1220;
  --sg-green: #2f8a63;
  --sg-ivory: #faf9f6;
  --sg-sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --sg-radius: 12px;
  --sg-radius-sm: 8px;
  --sg-shadow: 0 4px 16px rgba(20, 20, 30, 0.06);
}

/* ── bbPress PHP wrapper shell ──────────────────── */

.sg-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sg-header {
  border-bottom: 3px solid var(--sg-navy);
  background: #fff;
  padding: 14px 0;
}

.sg-header__inner,
.sg-main__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.sg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sg-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sg-navy) !important;
  text-decoration: none !important;
  letter-spacing: -0.03em;
}

.sg-logo span {
  color: var(--sg-coral);
}

.sg-header__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sg-header__nav a {
  color: var(--sg-ink) !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--sg-radius-sm);
  text-decoration: none !important;
}

.sg-header__nav a:hover {
  background: var(--sg-ivory);
  color: var(--sg-coral) !important;
}

.sg-main {
  flex: 1;
  padding: 28px 0 40px;
}

.sg-footer {
  border-top: 1px solid var(--sg-line);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--sg-faint);
}

.sg-forum-hero__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sg-navy);
  margin: 0 0 0.5rem;
}

/* ── Base ───────────────────────────────────────── */

body.specguide-community,
body.specguide-community .wp-site-blocks {
  font-family: var(--sg-sans) !important;
  color: var(--sg-ink);
  background: #fff;
  word-break: keep-all;
}

body.specguide-community a {
  color: var(--sg-coral);
}

body.specguide-community a:hover {
  color: var(--sg-coral-dk);
}

/* ── Header / Nav (block theme) ─────────────────── */

body.specguide-community header.wp-block-template-part {
  border-bottom: 3px solid var(--sg-navy);
  background: #fff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.specguide-community .wp-block-site-title a {
  font-weight: 800 !important;
  color: var(--sg-navy) !important;
  letter-spacing: -0.03em;
  text-decoration: none !important;
}

body.specguide-community .sg-logo span,
body.specguide-community .wp-block-site-title .sg-logo span {
  color: var(--sg-coral);
}

body.specguide-community .wp-block-site-title a:hover {
  color: var(--sg-coral) !important;
}

body.specguide-community .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--sg-ink) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--sg-radius-sm);
  text-decoration: none !important;
}

body.specguide-community .wp-block-navigation .wp-block-navigation-item__content:hover {
  background: var(--sg-ivory);
  color: var(--sg-coral) !important;
}

body.specguide-community main.wp-block-group {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Forum hero ─────────────────────────────────── */

.sg-forum-hero {
  background: var(--sg-ivory);
  border-left: 4px solid var(--sg-coral);
  border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}

.sg-forum-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sg-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.35rem;
}

.sg-forum-hero__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sg-navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.sg-forum-hero__desc {
  font-size: 0.9rem;
  color: var(--sg-gray);
  margin: 0;
  line-height: 1.6;
}

.sg-forum-hero__desc a {
  font-weight: 600;
}

/* ── bbPress wrapper ────────────────────────────── */

#bbpress-forums {
  font-family: var(--sg-sans);
  font-size: 0.97rem;
  clear: both;
}

#bbpress-forums .bbp-body,
#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
  border: none;
}

/* Forum list — card grid feel */
#bbpress-forums ul.bbp-forums {
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  display: none;
}

#bbpress-forums li.bbp-body ul.forum {
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius);
  padding: 0 !important;
  margin: 0 !important;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
  overflow: hidden;
}

#bbpress-forums li.bbp-body ul.forum:hover {
  box-shadow: var(--sg-shadow);
  border-color: #d5d7de !important;
}

#bbpress-forums li.bbp-body ul.forum > li {
  border: none !important;
  padding: 14px 18px !important;
  background: transparent !important;
}

#bbpress-forums .bbp-forum-title {
  font-size: 1.05rem;
  font-weight: 700;
}

#bbpress-forums .bbp-forum-title a {
  color: var(--sg-navy) !important;
  text-decoration: none !important;
}

#bbpress-forums .bbp-forum-title a:hover {
  color: var(--sg-coral) !important;
}

#bbpress-forums .bbp-forum-content {
  font-size: 0.85rem;
  color: var(--sg-gray);
  margin-top: 4px;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-forum-freshness {
  font-size: 0.8rem;
  color: var(--sg-faint);
}

#bbpress-forums .bbp-forum-freshness a {
  color: var(--sg-gray) !important;
  font-size: 0.8rem;
}

/* Topic list */
#bbpress-forums li.bbp-body ul.topic {
  border: 1px solid var(--sg-line) !important;
  border-radius: var(--sg-radius-sm);
  margin-bottom: 8px !important;
  background: #fff !important;
  overflow: hidden;
}

#bbpress-forums li.bbp-body ul.topic > li {
  border: none !important;
  padding: 12px 16px !important;
}

#bbpress-forums .bbp-topic-title a {
  font-weight: 600;
  color: var(--sg-ink) !important;
  text-decoration: none !important;
}

#bbpress-forums .bbp-topic-title a:hover {
  color: var(--sg-coral) !important;
}

#bbpress-forums .bbp-topic-meta {
  font-size: 0.8rem;
  color: var(--sg-faint);
}

/* Single topic / replies */
#bbpress-forums div.bbp-reply-header,
#bbpress-forums div.bbp-topic-header {
  background: var(--sg-navy) !important;
  color: #fff;
  border-radius: var(--sg-radius-sm) var(--sg-radius-sm) 0 0;
  padding: 10px 16px !important;
  border: none !important;
}

#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content {
  border: 1px solid var(--sg-line);
  border-top: none;
  border-radius: 0 0 var(--sg-radius-sm) var(--sg-radius-sm);
  padding: 16px 18px !important;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.75;
}

#bbpress-forums .bbp-reply-author .bbp-author-name {
  font-weight: 700;
  color: #fff;
}

#bbpress-forums .bbp-admin-links a {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.75rem;
}

/* Breadcrumbs */
#bbpress-forums .bbp-breadcrumb {
  font-size: 0.8rem;
  color: var(--sg-faint);
  margin-bottom: 1rem;
  padding: 8px 12px;
  background: var(--sg-ivory);
  border-radius: var(--sg-radius-sm);
}

#bbpress-forums .bbp-breadcrumb a {
  color: var(--sg-gray) !important;
}

/* Pagination */
#bbpress-forums .bbp-pagination {
  margin: 1.25rem 0;
}

#bbpress-forums .bbp-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 2px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
  color: var(--sg-ink) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.85rem;
}

#bbpress-forums .bbp-pagination .page-numbers.current {
  background: var(--sg-navy);
  color: #fff !important;
  border-color: var(--sg-navy);
}

#bbpress-forums .bbp-pagination .page-numbers:hover {
  background: var(--sg-ivory);
  border-color: var(--sg-coral);
  color: var(--sg-coral) !important;
}

/* Forms (new topic / reply) */
#bbpress-forums fieldset.bbp-form {
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 1.25rem 1.5rem;
  background: var(--sg-ivory);
  margin-top: 1.5rem;
}

#bbpress-forums fieldset.bbp-form legend {
  font-weight: 800;
  color: var(--sg-navy);
  font-size: 1rem;
  padding: 0 8px;
}

#bbpress-forums fieldset.bbp-form input[type='text'],
#bbpress-forums fieldset.bbp-form input[type='password'],
#bbpress-forums fieldset.bbp-form input[type='email'],
#bbpress-forums fieldset.bbp-form input[type='url'],
#bbpress-forums fieldset.bbp-form textarea,
#bbpress-forums fieldset.bbp-form select {
  font-family: var(--sg-sans);
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
  width: 100%;
  max-width: 100%;
  background: #fff;
}

#bbpress-forums fieldset.bbp-form input:focus,
#bbpress-forums fieldset.bbp-form textarea:focus {
  outline: 2px solid var(--sg-coral);
  outline-offset: 1px;
  border-color: var(--sg-coral);
}

#bbpress-forums .bbp-submit-wrapper button,
#bbpress-forums .bbp-submit-wrapper input[type='submit'] {
  background: var(--sg-coral) !important;
  color: #fff !important;
  font-family: var(--sg-sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px !important;
  border: none !important;
  border-radius: var(--sg-radius-sm) !important;
  cursor: pointer;
}

#bbpress-forums .bbp-submit-wrapper button:hover,
#bbpress-forums .bbp-submit-wrapper input[type='submit']:hover {
  background: var(--sg-coral-dk) !important;
}

/* Search */
#bbpress-forums #bbp-search-form {
  margin-bottom: 1rem;
}

#bbpress-forums #bbp-search-form input[type='text'] {
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
  padding: 8px 12px;
  font-family: var(--sg-sans);
}

/* ── Report page (CF7) ──────────────────────────── */

body.specguide-community .page .wp-block-post-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sg-navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

body.specguide-community .wp-block-post-content > p {
  color: var(--sg-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

body.specguide-community .wp-block-post-content ul {
  background: var(--sg-ivory);
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 1rem 1.25rem 1rem 2rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--sg-gray);
}

body.specguide-community .wpcf7 {
  background: #fff;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius);
  padding: 1.5rem;
  margin-top: 0.5rem;
  box-shadow: var(--sg-shadow);
}

body.specguide-community .wpcf7 label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sg-ink);
  margin-bottom: 1rem;
}

body.specguide-community .wpcf7 input[type='text'],
body.specguide-community .wpcf7 input[type='number'],
body.specguide-community .wpcf7 input[type='url'],
body.specguide-community .wpcf7 input[type='email'],
body.specguide-community .wpcf7 textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: var(--sg-sans);
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-radius-sm);
  background: #fff;
}

body.specguide-community .wpcf7 input:focus,
body.specguide-community .wpcf7 textarea:focus {
  outline: 2px solid var(--sg-coral);
  outline-offset: 1px;
  border-color: var(--sg-coral);
}

body.specguide-community .wpcf7 input[type='submit'] {
  background: var(--sg-coral) !important;
  color: #fff !important;
  font-family: var(--sg-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px !important;
  border: none !important;
  border-radius: var(--sg-radius-sm) !important;
  cursor: pointer;
  margin-top: 0.5rem;
}

body.specguide-community .wpcf7 input[type='submit']:hover {
  background: var(--sg-coral-dk) !important;
}

body.specguide-community .wpcf7-response-output {
  border-radius: var(--sg-radius-sm) !important;
  font-size: 0.9rem;
  margin: 1rem 0 0 !important;
}

body.specguide-community .wpcf7 form.sent .wpcf7-response-output {
  border-color: var(--sg-green) !important;
  background: #eef6f1;
  color: #1e5c40;
}

/* ── Footer ─────────────────────────────────────── */

body.specguide-community footer.wp-block-template-part {
  border-top: 1px solid var(--sg-line);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--sg-faint);
  text-align: center;
}

body.specguide-community footer a {
  color: var(--sg-gray) !important;
}

/* ── Misc WP blocks ─────────────────────────────── */

body.specguide-community .wp-block-button__link {
  border-radius: var(--sg-radius-sm) !important;
  font-weight: 700 !important;
}

body.specguide-community .wp-block-separator {
  border-color: var(--sg-line) !important;
}

/* Sticky / closed topic badges */
#bbpress-forums .bbp-topic-sticky-link,
#bbpress-forums .bbp-topic-super-sticky-link {
  background: var(--sg-coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

#bbpress-forums .bbp-topic-closed {
  opacity: 0.75;
}

/* ── Mobile ─────────────────────────────────────── */

@media (max-width: 640px) {
  body.specguide-community main.wp-block-group {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sg-forum-hero__title {
    font-size: 1.15rem;
  }

  #bbpress-forums li.bbp-body ul.forum > li,
  #bbpress-forums li.bbp-body ul.topic > li {
    padding: 10px 12px !important;
  }

  #bbpress-forums .bbp-forums-list .bbp-forum-topic-count,
  #bbpress-forums .bbp-forums-list .bbp-forum-reply-count {
    font-size: 0.75rem;
  }
}

/* Hide WP Armour admin notices on front */
body.specguide-community .wparmour-notice {
  display: none !important;
}
