/* GGULTV 포럼·마이페이지 — 화이트 카드 톤(위젯 계열과 통일) */
.gf, .gf-topics, .gf-inbox, .gf-avatarbox, .gf-points, .gf-ptlog { font-size: 14px; }

/* 주제 목록 */
.gf-topics { display: flex; flex-direction: column; gap: 8px; }
.gf-topic {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e6e8eb; border-radius: 10px;
  padding: 14px 16px; text-decoration: none; color: #1a1d21; transition: border-color .15s;
}
.gf-topic:hover { border-color: #1d4ed8; }
/* 테마 전역 a:hover(#fac59a — 흰 카드에서 흐림)를 덮어 또렷한 블루로 */
.gf-topic:hover, .gf-topic:focus, .gf-topic:active { color: #1a1d21; }
.gf-topic:hover .gf-topic__title, .gf-topic:focus .gf-topic__title { color: #1d4ed8; }
.gf-topic__title { font-weight: 700; }
.gf-topic__meta { font-size: 12px; color: #6b7280; white-space: nowrap; }

/* 글 작성 */
.gf-write { background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 12px; margin: 18px 0 10px; }
.gf-write textarea, .gf-replyform textarea {
  width: 100%; min-height: 84px; border: 1px solid #e6e8eb; border-radius: 8px;
  padding: 10px; font-size: 14px; resize: vertical; box-sizing: border-box; background: #fff; color: #1a1d21;
}
.gf-write__foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.gf-write__img { cursor: pointer; font-size: 13px; color: #6b7280; }
.gf-write__img:hover { color: #1a1d21; }
.gf-write__fname { font-size: 12px; color: #1d4ed8; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-write__count { margin-left: auto; font-size: 12px; color: #9ca3af; }
.gf-btn {
  appearance: none; border: 1px solid #e6e8eb; background: #fff; color: #374151;
  border-radius: 8px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.gf-btn--primary { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.gf-btn--primary:hover { background: #1e40af; }
.gf-btn--small { padding: 5px 12px; font-size: 12px; display: inline-block; margin-top: 8px; }
.gf-msg { font-size: 12px; margin: 6px 0 0; min-height: 1em; }
.gf-msg.is-ok { color: #1a7f37; }
.gf-msg.is-err { color: #d63638; }
.gf-loginask {
  background: #f4f6f9; border: 1px dashed #d1d5db; border-radius: 10px;
  padding: 16px; text-align: center; color: #6b7280; margin: 18px 0 10px;
}
.gf-loginask a { color: #1d4ed8; font-weight: 700; }

/* 정렬 */
.gf-sort { display: flex; gap: 6px; margin: 14px 0 10px; }
.gf-sort__btn {
  appearance: none; border: 1px solid #e6e8eb; border-radius: 999px; background: #fff;
  color: #6b7280; font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer;
}
.gf-sort__btn.is-on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }

/* 글 그룹 */
.gf-group { background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.gf-post { padding: 12px 14px; }
.gf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.gf-head .avatar { border-radius: 50%; flex: 0 0 auto; }
.gf-name { font-size: 13px; color: #1a1d21; }
.gf-date { font-size: 11px; color: #9ca3af; }
.gf-body { color: #1a1d21; line-height: 1.6; word-break: break-word; }
.gf-img img { max-width: 100%; border-radius: 8px; margin-top: 8px; }
.gf-actions { display: flex; gap: 8px; margin-top: 10px; }
.gf-like, .gf-replybtn, .gf-share {
  appearance: none; border: 1px solid #e6e8eb; background: #fff; border-radius: 999px;
  font-size: 12px; color: #6b7280; padding: 4px 12px; cursor: pointer;
}
.gf-share:hover { border-color: #0077d9; color: #0077d9; }
.gf-like.is-on { border-color: #e11d48; color: #e11d48; font-weight: 700; }
.gf-like b { font-weight: 700; }

/* 댓글 */
.gf-replies { background: #f8fafc; border-top: 1px solid #eef0f3; padding: 8px 14px 12px; }
.gf-reply { padding: 8px 0 8px 12px; border-left: 2px solid #e6e8eb; margin-top: 6px; }
.gf-reply .gf-body { font-size: 13px; }
.gf-replyform { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.gf-replyform textarea { min-height: 44px; flex: 1; }
.gf-replyform.is-hidden, .is-hidden { display: none; }
.gf-empty { color: #9ca3af; text-align: center; padding: 20px 0; }

/* 마이페이지: 포인트 */
.gf-points {
  display: grid; grid-auto-flow: column; justify-content: start;
  align-items: baseline; align-content: center; gap: 8px;
  background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 16px;
}
.gf-points__label { color: #6b7280; font-size: 13px; }
.gf-points__num { font-size: 26px; color: #1d4ed8; }
.gf-points__unit { color: #1d4ed8; font-weight: 700; }

/* 포인트 내역 */
.gf-ptlog { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; overflow: hidden; }
.gf-ptlog th, .gf-ptlog td { padding: 8px 10px; border-bottom: 1px solid #f0f2f4; font-size: 13px; text-align: left; }
.gf-ptlog th { background: #f4f6f9; color: #6b7280; font-size: 12px; }
.gf-ptlog .is-plus { color: #1a7f37; font-weight: 700; }
.gf-ptlog .is-minus { color: #d63638; font-weight: 700; }

/* 쪽지함 */
.gf-inbox { display: flex; flex-direction: column; gap: 6px; }
.gf-mail { background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.gf-mail__head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.gf-mail__head b { font-weight: 600; color: #374151; }
.gf-mail__head span { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.gf-mail.is-unread { border-color: #1d4ed8; }
.gf-mail.is-unread .gf-mail__head b { color: #1d4ed8; }
.gf-mail.is-unread .gf-mail__head b::before { content: '● '; font-size: 9px; vertical-align: 2px; }
.gf-mail__body { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eef0f3; color: #1a1d21; line-height: 1.6; font-size: 13px; }

/* 아바타 박스 */
.gf-avatarbox { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 16px; }
.gf-avatarbox__img .avatar { border-radius: 50%; }
.gf-avatarbox__info b { font-size: 16px; }

/* v1.6.0: 마이페이지 2열 그리드 — 카드가 열 높이를 채움(그리드 셀은 원래 stretch, 카드에 높이가 없어 짧았음).
   블록 에디터가 숏코드를 감싼 래퍼 div 2겹에 높이를 전달해야 100%가 해석된다. */
.gf-avatarbox, .gf-points { height: 100%; }
div:has(> .gf-avatarbox), div:has(> .gf-points),
div:has(> div > .gf-avatarbox), div:has(> div > .gf-points) { height: 100%; }

/* v1.1.0: 더보기 · 댓글 접기 · 휴지통(관리자) · 새 글 하이라이트 · 글 수 */
.gf-count { margin-left: auto; font-size: 12px; color: #9ca3af; font-weight: 600; align-self: center; }
.gf-morewrap { text-align: center; margin: 6px 0 4px; }
.gf-more { min-width: 220px; }
.gf-showreplies {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-size: 12px; color: #1d4ed8; font-weight: 700; padding: 6px 0 2px 12px; display: block;
}
.gf-showreplies:hover { text-decoration: underline; }
.gf-reply.is-hidden { display: none; }
.gf-group--trashed { opacity: .62; border-style: dashed; }
.gf-trashtag { font-size: 11px; color: #d63638; font-weight: 700; background: #fdf0f0; border-radius: 999px; padding: 2px 9px; }
.gf-restore { margin-left: auto; }
.gf-flash { animation: gfflash 2.4s ease-out; }
@keyframes gfflash {
  0% { box-shadow: 0 0 0 3px rgba(255, 152, 0, .85); }
  100% { box-shadow: 0 0 0 3px rgba(255, 152, 0, 0); }
}

/* v1.2.0: 스크린샷 붙여넣기·드래그 첨부 + 미리보기 */
.gf-write__preview { position: relative; display: inline-block; margin-top: 10px; }
.gf-write__preview img { max-height: 140px; max-width: 240px; border-radius: 8px; border: 1px solid #e6e8eb; display: block; }
.gf-write__preview.is-hidden { display: none; }
.gf-write__rm {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px;
  border-radius: 50%; border: 0; background: #1a1d21; color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.gf-write__hint { font-size: 11px; color: #9ca3af; margin: 8px 0 0; }
.gf-write.is-drag { border-color: #1d4ed8; box-shadow: 0 0 0 2px rgba(29, 78, 216, .18); }

/* v1.3.0: 영상 임베드(탭 재생 파사드) */
.gf-video {
  position: relative; margin-top: 10px; width: 100%; max-width: 480px;
  aspect-ratio: 16 / 9; background: #0b0e13; border-radius: 10px; overflow: hidden; cursor: pointer;
}
.gf-video--v { max-width: 250px; aspect-ratio: 9 / 16; }
.gf-video__thumb { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; }
.gf-video__play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 19px;
  display: flex; align-items: center; justify-content: center; padding-left: 4px; pointer-events: none;
}
.gf-video:hover .gf-video__play { background: #1d4ed8; }
.gf-video__label {
  position: absolute; left: 10px; bottom: 8px; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(0, 0, 0, .55); border-radius: 999px; padding: 2px 9px; pointer-events: none;
}
.gf-video iframe { width: 100%; height: 100%; border: 0; display: block; overflow: hidden; }
/* 틱톡: 임베드 콘텐츠(영상+하단 정보)가 9:16보다 길다 — 재생 시 실높이로 확장해 내부 스크롤 방지 */
.gf-video--tt.is-playing { max-width: 325px; aspect-ratio: 325 / 745; }

/* v1.3.0: 관리자 삭제 버튼(글/댓글 헤드 우측) */
.gf-del {
  appearance: none; border: 1px solid #e6e8eb; background: #fff; border-radius: 999px;
  font-size: 11px; line-height: 1.4; color: #9ca3af; padding: 2px 8px; cursor: pointer;
  margin-left: auto; flex: 0 0 auto;
}
.gf-del:hover { color: #d63638; border-color: #d63638; }
.gf-del--purge { margin-left: 6px; color: #d63638; border-color: #f0c1c1; font-weight: 700; }
.gf-del:disabled { opacity: .5; cursor: default; }

/* 공유 링크(?gf=)로 진입 시 상단 고정 글 */
.gf-pinned { margin: 0 0 18px; }
.gf-pinned__label { font-size: 12px; font-weight: 700; color: #0077d9; margin: 0 0 6px; }
.gf-pinned .gf-group { border-color: #0077d9; box-shadow: 0 0 0 2px rgba(0,119,217,.15); }
.gf-flash { animation: gf-flash 2.2s ease; }
@keyframes gf-flash { 0%,20% { box-shadow: 0 0 0 3px rgba(0,119,217,.45); } 100% { box-shadow: 0 0 0 2px rgba(0,119,217,.15); } }
/* 링크 복사 토스트 */
.gf-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(10px);
  background: rgba(17,17,17,.92); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 999px;
  z-index: 100000; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.gf-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
