/* 핑퐁 Q&A, 새 디자인 (Controls/ForumList.V2.cs). 2026년 10월.
   옛 모습(Forum.css)은 그대로 두고, 새 디자인을 켠 사람에게만 이 파일이 실린다. */

.v2-fq { padding-top: 16px; font-family: var(--v2-font); color: var(--v2-text); }
.v2-fq a { text-decoration: none; color: inherit; }
.v2-fq h2 { margin: 0; font-family: var(--v2-font); font-size: 18px; font-weight: 900; color: var(--v2-navy); }

/* 머리 */
.v2-fq-hero { position: relative; display: flex; align-items: stretch; min-height: 210px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(110deg, #f1ebff 0%, #f8f3ff 45%, #e8f0ff 100%); }
.v2-fq-hero-copy { position: relative; z-index: 2; flex: 1; padding: 36px 40px; }
.v2-fq-hero-head { display: flex; align-items: center; gap: 14px; }
.v2-fq-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px;
    background: linear-gradient(135deg, #7c4dff, #5b3ad6); color: #fff; box-shadow: 0 8px 18px rgba(107, 63, 224, .28); }
.v2-fq-hero h1 { margin: 0; font-family: var(--v2-font); font-size: 40px; font-weight: 900; letter-spacing: -1px; color: var(--v2-navy); }
.v2-fq-hero-sub { margin: 14px 0 6px; font-size: 17px; font-weight: 700; color: #2b3150; }
.v2-fq-hero-topics { margin: 0; font-size: 14px; color: var(--v2-muted); }
.v2-fq-hero-art { position: relative; z-index: 1; width: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background:
        radial-gradient(circle at 75% 25%, rgba(230, 0, 92, .12) 0, transparent 36%),
        radial-gradient(circle at 25% 75%, rgba(107, 63, 224, .18) 0, transparent 42%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' preserveAspectRatio='xMidYMax meet'%3E%3Cpath fill='%236b3fe0' fill-opacity='.18' d='M0 300V230h40v-40h30v50h25v-90h45v90h20v-60h40v60h25V140h14v-20h8V20h5v-40h4v40h5v100h8v20h14v140h25v-70h50v70h20v-110h55v110h25v-40h45v40h30v-80h40v80h25v-45h45v115z'/%3E%3C/svg%3E") right bottom / contain no-repeat; }
.v2-fq-slogan { font-size: 24px; font-weight: 900; line-height: 1.4; color: var(--v2-primary); text-align: center; transform: rotate(-3deg); text-shadow: 0 2px 0 #fff; }
.v2-fq-bubble { position: relative; padding: 7px 14px; border-radius: 16px; font-size: 13px; font-weight: 700; box-shadow: 0 6px 14px rgba(31, 36, 48, .10); }
.v2-fq-bubble.is-ask { align-self: flex-start; margin-left: 12%; background: #fff; color: var(--v2-pink); }
.v2-fq-bubble.is-answer { align-self: flex-end; margin-right: 10%; background: var(--v2-primary); color: #fff; }

/* 두 칸 */
.v2-fq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 20px; align-items: start; }
.v2-fq-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.v2-fq-side { display: flex; flex-direction: column; gap: 16px; }

/* 숫자 */
.v2-fq-stats { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--v2-line); border-radius: 14px; background: #fff; }
.v2-fq-stat { flex: 1; display: flex; align-items: center; gap: 12px; padding: 4px 10px; border-right: 1px solid var(--v2-line); min-width: 0; }
.v2-fq-stat-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; }
.v2-fq-stat.is-all .v2-fq-stat-icon { background: #e8f1fd; color: #2f6fd6; }
.v2-fq-stat.is-wait .v2-fq-stat-icon { background: #fff1e3; color: #e07b1f; }
.v2-fq-stat.is-done .v2-fq-stat-icon { background: #e3f6ea; color: #16a34a; }
.v2-fq-stat-text { display: flex; flex-direction: column; line-height: 1.25; }
.v2-fq-stat-text span { font-size: 12.5px; color: var(--v2-muted); }
.v2-fq-stat-text b { font-size: 24px; font-weight: 900; color: var(--v2-navy); }
.v2-fq-stat.is-wait b { color: #e07b1f; }
.v2-fq-write { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #7c4dff, #5b3ad6); color: #fff !important; font-size: 15px; font-weight: 700; box-shadow: 0 6px 16px rgba(107, 63, 224, .25); }
.v2-fq-write b { font-size: 18px; line-height: 1; }
.v2-fq-write:hover { filter: brightness(1.06); }

/* 이용 수칙 */
.v2-fq-rules { border: 1px solid #e3dcfb; border-radius: 14px; background: #faf8ff; }
.v2-fq-rules summary { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; list-style: none; }
.v2-fq-rules summary::-webkit-details-marker { display: none; }
.v2-fq-rules-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-fq-rules-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-fq-rules-text b { font-size: 15px; color: var(--v2-navy); }
.v2-fq-rules-text span { font-size: 13px; line-height: 1.55; color: #4b5162; }
.v2-fq-rules-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 1px solid var(--v2-line); border-radius: 18px; background: #fff; font-size: 12.5px; font-weight: 700; color: #4b5162; }
.v2-fq-rules[open] .v2-fq-rules-more svg { transform: rotate(90deg); }
.v2-fq-rules ol { margin: 0; padding: 0 20px 16px 76px; font-size: 13px; line-height: 1.8; color: #4b5162; }

/* 검색 */
.v2-fq-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1px solid var(--v2-line); border-radius: 12px; background: #fff; }
.v2-fq-search:focus-within { border-color: var(--v2-primary); box-shadow: 0 0 0 3px var(--v2-primary-soft); }
.v2-fq-search-icon { color: var(--v2-muted); display: inline-flex; }
.v2-fq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; padding: 8px 0; }
.v2-fq-search button { border: 0; border-radius: 9px; background: var(--v2-primary); color: #fff; font: inherit; font-size: 14px; font-weight: 700; padding: 10px 22px; cursor: pointer; }
.v2-fq-search button:hover { background: #5a30c8; }

/* 카테고리 */
.v2-fq-cats h2 { font-size: 15px; margin-bottom: 10px; }
.v2-fq-cats ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.v2-fq-cats li { margin: 0; }
.v2-fq-cats a { display: block; padding: 8px 18px; border: 1px solid var(--v2-line); border-radius: 20px; background: #fff; font-size: 14px; font-weight: 700; color: #4b5162; }
.v2-fq-cats a:hover { border-color: #cdbff6; background: var(--v2-primary-soft); color: var(--v2-primary); }
.v2-fq-cats a.is-on { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }

/* 질문 목록 */
.v2-fq-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.v2-fq-list-head > span { font-size: 13px; color: var(--v2-muted); }
.v2-fq-list-head .forum-chip { margin-left: 8px; padding: 2px 10px; border-radius: 12px; background: var(--v2-primary-soft); color: var(--v2-primary); font-weight: 700; }
.v2-fq-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-fq-list li { margin: 0; }
.v2-fq-q { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--v2-line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.v2-fq-q:hover { border-color: #cdbff6; box-shadow: 0 6px 18px rgba(107, 63, 224, .08); }
.v2-fq-q-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-fq-q-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.v2-fq-q-title { min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-fq-q:hover .v2-fq-q-title { color: var(--v2-primary); }
.v2-fq-q-excerpt { font-size: 13.5px; line-height: 1.55; color: #5b6172; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.v2-fq-q-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--v2-muted); }
.v2-fq-q-meta span { display: inline-flex; align-items: center; gap: 4px; }
.v2-fq-q-state { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.v2-fq-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.v2-fq-badge.is-done { background: #e3f6ea; color: #15803d; }
.v2-fq-badge.is-wait { background: #fff1e3; color: #c2610c; }
.v2-fq-count { padding: 3px 10px; border-radius: 12px; background: var(--v2-primary-soft); color: var(--v2-primary); font-size: 12px; font-weight: 700; white-space: nowrap; }
.v2-fq-q-go { flex: 0 0 auto; color: #b3b8c6; display: inline-flex; }
.v2-fq-q:hover .v2-fq-q-go { color: var(--v2-primary); }
.v2-fq-empty { margin: 0; padding: 28px 16px; text-align: center; font-size: 14px; color: var(--v2-muted); border: 1px dashed var(--v2-line); border-radius: 14px; background: #fff; }

/* 분류 표 색 (분류 순서대로) */
.v2-fq-tag { flex: 0 0 auto; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.v2-fq-tag.is-blue, .v2-fq-avatar.is-blue { background: #e8f1fd; color: #2f6fd6; }
.v2-fq-tag.is-green, .v2-fq-avatar.is-green { background: #e3f6ea; color: #15803d; }
.v2-fq-tag.is-orange, .v2-fq-avatar.is-orange { background: #fff1e3; color: #c2610c; }
.v2-fq-tag.is-purple, .v2-fq-avatar.is-purple { background: #efe9fd; color: #6b3fe0; }
.v2-fq-tag.is-teal, .v2-fq-avatar.is-teal { background: #def5f2; color: #0f766e; }
.v2-fq-tag.is-pink, .v2-fq-avatar.is-pink { background: #fde8ef; color: #be185d; }

/* 더보기: the questions after the first ten (ForumList.V2) */
.v2-fq-morebtn { display: block; margin: 12px auto 0; padding: 10px 28px; border: 1px solid var(--v2-line); border-radius: 22px; background: #fff;
    font: inherit; font-size: 14px; font-weight: 700; color: #4b5162; cursor: pointer; }
.v2-fq-morebtn:hover { border-color: var(--v2-primary); color: var(--v2-primary); }

/* 쪽 넘기기 */
.v2-fq-pager { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.v2-fq-pager a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; color: #4b5162; }
.v2-fq-pager a:hover { border-color: var(--v2-primary); color: var(--v2-primary); }
.v2-fq-pager a.is-on { border-color: var(--v2-primary); background: var(--v2-primary); color: #fff; }

/* 오른쪽: 최근 답변 */
.v2-fq-card { padding: 18px; border: 1px solid var(--v2-line); border-radius: 14px; background: #fff; }
.v2-fq-card h2 { padding-left: 10px; border-left: 4px solid var(--v2-primary); font-size: 16px; margin-bottom: 8px; }
.v2-fq-answers ul { list-style: none; margin: 0; padding: 0; }
.v2-fq-answers li { margin: 0; border-bottom: 1px solid var(--v2-line); }
.v2-fq-answers li:last-child { border-bottom: 0; }
.v2-fq-answers a { display: flex; gap: 10px; padding: 12px 0; }
.v2-fq-avatar { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; }
.v2-fq-answer-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-fq-answer-text b { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--v2-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-fq-answers a:hover b { color: var(--v2-primary); }
.v2-fq-answer-who { font-size: 11.5px; color: var(--v2-muted); }
.v2-fq-answer-body { font-size: 12.5px; line-height: 1.5; color: #5b6172; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 오른쪽: 신고하기 */
.v2-fq-report { position: relative; padding: 20px; border-radius: 14px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #7c4dff 0%, #5b3ad6 100%); }
.v2-fq-report-head { display: flex; align-items: center; gap: 10px; }
.v2-fq-report-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); }
.v2-fq-report-head b { font-size: 18px; font-weight: 900; }
.v2-fq .v2-fq-report p { margin: 10px 0 14px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .92) !important; }
.v2-fq-report-mail { display: block; margin: 0 0 14px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 13px; color: #fff; user-select: all; }
.v2-fq-report-mail b { font-size: 14px; font-weight: 700; }
.v2-fq a.v2-fq-report-go { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 20px; background: #fff; color: var(--v2-primary); font-size: 14px; font-weight: 700; }
.v2-fq a.v2-fq-report-go:hover { background: var(--v2-primary-soft); }

@media (max-width: 1100px) {
    .v2-fq-grid { grid-template-columns: minmax(0, 1fr); }
    .v2-fq-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    /* the hero: the title and one line; the drawing with the speech bubbles is for wide screens */
    .v2-fq-hero { flex-direction: column; min-height: 0; }
    .v2-fq-hero-copy { padding: 18px 18px 16px; }
    .v2-fq-hero-icon { width: 44px; height: 44px; border-radius: 12px; }
    .v2-fq-hero h1 { font-size: 26px; }
    .v2-fq-hero-sub { margin: 10px 0 0; font-size: 14.5px; }
    .v2-fq-hero-topics { display: none; }
    .v2-fq-hero-art { display: none; }
    /* the counts in one compact row, the ask button under them */
    .v2-fq-stats { flex-wrap: wrap; gap: 8px; padding: 12px; }
    .v2-fq-stat { flex: 1 1 28%; flex-direction: column; align-items: center; gap: 4px; border-right: 0; padding: 2px; text-align: center; }
    .v2-fq-stat-icon { width: 34px; height: 34px; border-radius: 10px; }
    .v2-fq-stat-icon svg { width: 18px; height: 18px; }
    .v2-fq-stat-text { align-items: center; }
    .v2-fq-stat-text span { font-size: 11.5px; }
    .v2-fq-stat-text b { font-size: 20px; }
    .v2-fq-write { width: 100%; justify-content: center; padding: 12px 18px; }
    .v2-fq-side { grid-template-columns: minmax(0, 1fr); }
    /* a question: its title across the whole row (two lines), the answer state under it -
       side by side the badges left the title three letters */
    .v2-fq-q { flex-wrap: wrap; gap: 8px; padding: 14px; }
    .v2-fq-q-body { flex: 1 1 100%; }
    .v2-fq-q-top { flex-wrap: wrap; align-items: flex-start; }
    .v2-fq-q-title { flex: 1 1 100%; font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .v2-fq-q-state { flex-direction: row; gap: 6px; }
    .v2-fq-q-go { display: none; }
    /* the rules box: its "more" button under the text, the list without the wide indent */
    .v2-fq-rules summary { flex-wrap: wrap; align-items: flex-start; }
    .v2-fq-rules-text { flex: 1 1 calc(100% - 60px); }
    .v2-fq-rules-more { margin-left: 58px; }
    .v2-fq-rules ol { padding: 0 16px 14px 34px; }
}

/* ================================================================
   핑퐁 글 쪽 (Controls/ForumDetail.ascx). 안은 게시판과 같은 BoardDetail 이고,
   옛 모습의 규칙이 많아 몇 군데는 !important 로 이긴다.
   ================================================================ */
.v2-fd { padding-top: 18px; font-family: var(--v2-font); color: var(--v2-text); }
.v2-fd a { text-decoration: none; }
.v2-fd-crumb { margin: 0 4px 12px; font-size: 13px; color: var(--v2-muted); }
.v2-fd-crumb a { color: var(--v2-muted); }
.v2-fd-crumb a:hover { color: var(--v2-primary); }
/* 왼쪽 글, 오른쪽 다른 질문. 쪽은 머리와 같은 1320px 이고 글 칸은 읽기 좋은 폭(약 900px)에 머문다. */
.v2-fd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.v2-fd-side { display: flex; flex-direction: column; gap: 16px; }
.v2-fd-box { padding: 18px; border: 1px solid var(--v2-line); border-radius: 14px; background: #fff; }
.v2-fd-box h2 { margin: 0 0 6px; padding-left: 10px; border-left: 4px solid var(--v2-primary); font-family: var(--v2-font); font-size: 16px; font-weight: 900; color: var(--v2-navy); }
.v2-fd-box.is-wait h2 { border-left-color: #e07b1f; }
.v2-fd-box ul { list-style: none; margin: 0; padding: 0; }
.v2-fd-box li { margin: 0; border-bottom: 1px solid var(--v2-line); }
.v2-fd-box li:last-child { border-bottom: 0; }
.v2-fd-box li a { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; }
.v2-fd-box li b { font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--v2-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-fd-box li a:hover b { color: var(--v2-primary); }
.v2-fd-box li span { font-size: 11.5px; color: var(--v2-muted); }
.v2-fd-box-empty { margin: 8px 0 0; font-size: 13px; color: var(--v2-muted); }
.v2-fd-ask { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7c4dff 0%, #5b3ad6 100%); }
.v2-fd-ask b { font-size: 17px; font-weight: 900; }
.v2-fd-ask span { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .92); }
.v2-fd a.v2-fd-ask-go, .v2-fd-ask a { align-self: flex-start; margin-top: 8px; padding: 9px 18px; border-radius: 20px; background: #fff; color: var(--v2-primary) !important; font-size: 14px; font-weight: 700; }
.v2-fd-ask a:hover { background: var(--v2-primary-soft); }
/* 카드 모양은 안의 글(.v2-post, CSS/V2Post.css)이 진다. */
.v2-fd-card { min-width: 0; }
.v2-fd-cat { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 14px; background: var(--v2-primary-soft); color: var(--v2-primary) !important; font-size: 12.5px; font-weight: 700; }
.v2-fd-creport { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: #a3a9b8 !important; }
.v2-fd-creport:hover { color: #dc2626 !important; }

/* 로그인하지 않은 사람에게 */
.v2-fd-login { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(120deg, var(--v2-primary-soft), #fdeef4); }
.v2-fd-login div { display: flex; flex-direction: column; gap: 3px; }
.v2-fd-login b { font-size: 15px; color: var(--v2-navy); }
.v2-fd-login span { font-size: 13px; color: #4b5162; }
.v2-fd-login a { flex: 0 0 auto; padding: 10px 18px; border-radius: 10px; background: var(--v2-primary); color: #fff !important; font-size: 14px; font-weight: 700; }
.v2-fd-login a:hover { background: #5a30c8; }

@media (max-width: 1100px) {
    .v2-fd-grid { grid-template-columns: minmax(0, 1fr); }
    .v2-fd-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .v2-fd-login { flex-direction: column; align-items: stretch; text-align: center; }
    .v2-fd-side { grid-template-columns: minmax(0, 1fr); }
}
