/* =========================================
   게시판 스타일 — V3 리뉴얼
   유형별 차별화: 카드리스트 / 오버레이갤러리 / 아코디언FAQ / 매거진웹진
   ========================================= */

/* === 게시판 공통 — Archive & Peace 디자인 시스템 === */
.board-page {
    position: relative;
    --ht-gold: #d4af37;
    --ht-glass: rgba(255, 255, 255, 0.02);
    --ht-blur: blur(20px);
    --ht-transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.board-hero-header {
    text-align: center;
    padding: 20px 0 40px;
    margin-bottom: 80px;
    animation: archiveFadeIn 1.2s ease-out;
    position: relative;
}

.board-hero-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--ht-gold);
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.7;
    text-transform: uppercase;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.board-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #fff;
}

.board-desc {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    color: #888;
    margin-top: 20px;
    line-height: 1.8;
    font-weight: 300;
}

.board-hero-header .board-actions { margin-top: 30px; }

.board-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

/* Archive 글쓰기 버튼 */
.btn-archive {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid var(--ht-gold);
    color: var(--ht-gold);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    background: transparent;
    transition: all 0.4s ease;
    text-decoration: none;
}

.btn-archive:hover {
    background: var(--ht-gold);
    color: #000;
}

@keyframes archiveFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 카테고리 필터 탭 */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: var(--font-size-sm);
    font-weight: 400;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    transition: width 0.3s ease, left 0.3s ease;
}

.category-tab:hover {
    background: rgba(139, 34, 82, 0.08);
    border-color: rgba(139, 34, 82, 0.2);
    color: var(--text-primary);
}

.category-tab:hover::after,
.category-tab.active::after {
    width: 60%;
    left: 20%;
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(139, 34, 82, 0.12), rgba(201, 169, 110, 0.08));
    border-color: rgba(139, 34, 82, 0.25);
    color: var(--color-primary);
    font-weight: 500;
}

/* === 공통 배지 === */
.notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(201, 169, 110, 0.2);
    color: var(--color-gold);
    letter-spacing: 1px;
    border: 1px solid rgba(201, 169, 110, 0.2);
    white-space: nowrap;
}

.notice-badge svg { width: 11px; height: 11px; flex-shrink: 0; }

.new-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(232, 115, 74, 0.2), rgba(232, 115, 74, 0.12));
    color: var(--color-cta);
    border: 1px solid rgba(232, 115, 74, 0.2);
    line-height: 1.3;
    animation: newBadgePulse 3s ease-in-out infinite;
}

.hot-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(232, 60, 60, 0.2), rgba(232, 60, 60, 0.12));
    color: #E83C3C;
    border: 1px solid rgba(232, 60, 60, 0.2);
    line-height: 1.3;
    animation: newBadgePulse 3s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.secret-icon {
    font-size: 12px;
    color: var(--text-light);
    margin-left: 4px;
    vertical-align: middle;
}


/* ====================================
   목록형 — 카드 리스트 (테이블 대체)
   ==================================== */
.board-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.post-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, var(--color-gold), var(--color-primary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
    z-index: 1;
}

.post-card:hover {
    border-color: rgba(139, 34, 82, 0.15);
    background: rgba(26, 26, 46, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.post-card:hover::before { width: 3px; }

/* 공지 카드 */
.post-card.is-notice {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.06), rgba(26, 26, 46, 0.5));
    border-color: rgba(201, 169, 110, 0.12);
}

.post-card.is-notice::before {
    width: 3px;
    background: var(--color-gold);
}

/* 인기글 카드 */
.post-card.is-popular {
    border-color: rgba(139, 34, 82, 0.1);
}

/* 아바타 */
.post-card-avatar {
    flex-shrink: 0;
    margin-top: 2px;
}

.post-card-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.post-card-avatar-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 34, 82, 0.08);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* 카드 본문 */
.post-card-body {
    flex: 1;
    min-width: 0;
}

.post-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.post-card-category {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 400;
    padding: 2px 10px;
    background: rgba(139, 34, 82, 0.06);
    border: 1px solid rgba(139, 34, 82, 0.1);
    border-radius: 16px;
    letter-spacing: 0.3px;
}

.post-card-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 4px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.post-card:hover .post-card-title { color: var(--color-primary); }

.post-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
}

/* 메타 라인 */
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.post-card-author { font-weight: 400; }

.post-card-grade {
    font-size: 10px;
    font-weight: 500;
    margin-left: 4px;
}

.post-card-dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--text-light);
    opacity: 0.5;
}

.post-card-time { opacity: 0.7; }

.post-card-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.post-card-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.6;
}

.post-card-stats .stat-likes { color: var(--color-cta); opacity: 0.8; }

/* 카드 썸네일 */
.post-card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    align-self: center;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-card-thumb img { transform: scale(1.06); }


/* ====================================
   목록형 — Journey Spine 타임라인
   Archive & Peace 디자인
   ==================================== */
.journey-spine {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 60px;
}

/* 시간의 중심축 */
.journey-spine::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        rgba(212, 175, 55, 0.2) 15%,
        rgba(212, 175, 55, 0.2) 85%,
        transparent);
}

.journey-item {
    position: relative;
    display: block;
    background: var(--ht-glass);
    backdrop-filter: var(--ht-blur);
    -webkit-backdrop-filter: var(--ht-blur);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 50px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* 역사적 정박지: Anchor Node */
.journey-item::before {
    content: '';
    position: absolute;
    left: -64.5px; top: 48px;
    width: 10px; height: 10px;
    background: var(--ht-gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: var(--ht-transition);
    z-index: 10;
}

/* 호버: Shadow Echo */
.journey-item:hover {
    transform: translateX(15px);
    background: rgba(212, 175, 55, 0.03);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: -15px 30px 60px rgba(0, 0, 0, 0.7);
}

.journey-item:hover::before {
    transform: scale(1.4);
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

/* 공지 아이템 */
.journey-item.is-notice {
    border-color: rgba(212, 175, 55, 0.12);
}

.journey-item.is-notice::before {
    width: 12px; height: 12px;
    left: -65.5px;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
    animation: journeyNoticePulse 3s ease-in-out infinite;
}

@keyframes journeyNoticePulse {
    0%, 100% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.6); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.9), 0 0 60px rgba(212, 175, 55, 0.3); }
}

/* 공명 아이템 (인기글) */
.journey-item.is-resonant {
    border-color: rgba(212, 175, 55, 0.08);
}

.journey-meta {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ht-gold);
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
}

.journey-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.journey-item:hover .journey-title {
    color: var(--ht-gold);
}

.journey-summary {
    font-family: 'Noto Sans KR', sans-serif;
    color: #777;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 24px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journey-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.signature-line {
    width: 40px;
    height: 1px;
    background: var(--ht-gold);
    opacity: 0.3;
    transition: width 0.8s ease, opacity 0.8s ease;
}

.journey-item:hover .signature-line {
    width: 80px;
    opacity: 1;
}

.journey-author {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ht-gold);
    opacity: 0.6;
}

.journey-item:hover .journey-author {
    opacity: 1;
}

/* Journey Spine 반응형 */
@media (max-width: 768px) {
    .journey-spine { padding-left: 36px; }
    .journey-item { padding: 28px 24px; margin-bottom: 36px; }
    .journey-item::before { left: -41px; width: 8px; height: 8px; }
    .journey-item.is-notice::before { left: -42px; width: 10px; height: 10px; }
    .journey-title { font-size: 1.2rem; }
    .journey-summary { font-size: 0.9rem; }
}


/* ====================================
   갤러리형 — 오버레이 카드
   ==================================== */
.board-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 34, 82, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(201, 169, 110, 0.15);
}

.gallery-thumb-wrap {
    position: relative;
    overflow: hidden;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--glass-bg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-thumb { transform: scale(1.06); }

.gallery-thumb-empty {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(139, 34, 82, 0.06), rgba(201, 169, 110, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 32px;
}

/* 갤러리 오버레이 */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-content { margin-bottom: 8px; }

.gallery-overlay-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-overlay-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-overlay-stats {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.gallery-overlay-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.gallery-info {
    padding: 18px 20px;
}

.gallery-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
}


/* ====================================
   FAQ형 — Shadow Echo 아코디언
   ==================================== */
.board-faq {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
}

/* Shadow Echo — 골드 잔상 호버 */
.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.faq-item.active {
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 40px rgba(212, 175, 55, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: transparent;
    transition: all 0.3s ease;
    gap: 16px;
}

.faq-q-text {
    font-size: 17px;
    font-weight: 300;
    flex: 1;
    letter-spacing: -0.02em;
    line-height: 1.5;
}

.faq-toggle {
    font-size: 18px;
    color: var(--color-gold, #d4af37);
    opacity: 0.6;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    opacity: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.02));
}

.faq-item.active .faq-answer { max-height: 500px; }

.faq-a-content {
    padding: 0 30px 30px;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ 반응형 */
@media (max-width: 640px) {
    .faq-question { font-size: 15px; padding: 20px; }
    .faq-q-text { font-size: 15px; }
    .faq-a-content { font-size: 14px; padding: 0 20px 20px; }
}


/* ====================================
   웹진형 — 매거진 (첫 글 히어로)
   ==================================== */
.board-webzine {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.webzine-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.webzine-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 0;
    background: linear-gradient(180deg, var(--color-gold), var(--color-primary));
    transition: width 0.4s ease;
    border-radius: 0 2px 2px 0;
}

.webzine-item:hover {
    border-color: rgba(139, 34, 82, 0.15);
    transform: translateY(-6px) translateX(4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 20px rgba(212, 175, 55, 0.08);
}

.webzine-item:hover::before { width: 3px; }

/* 웹진 히어로 (첫 번째 글) */
.webzine-hero {
    grid-template-columns: 1fr;
    padding: 0;
    overflow: hidden;
}

.webzine-hero .webzine-thumb-wrap {
    height: 320px;
}

.webzine-hero .webzine-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.webzine-hero .webzine-thumb-empty {
    height: 100%;
    aspect-ratio: auto;
}

.webzine-hero .webzine-content {
    padding: 28px 32px;
}

.webzine-hero .webzine-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.webzine-hero .webzine-excerpt {
    -webkit-line-clamp: 4;
}

.webzine-thumb-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.webzine-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--glass-bg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.webzine-item:hover .webzine-thumb { transform: scale(1.03); }

.webzine-thumb-empty {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(139, 34, 82, 0.06), rgba(201, 169, 110, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 40px;
}

.webzine-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.webzine-category {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.webzine-title {
    font-family: 'Noto Serif KR', serif;
    font-size: var(--font-size-xl);
    font-weight: 500;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.webzine-excerpt {
    font-family: 'Noto Serif KR', serif;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webzine-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.7;
}

.webzine-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}


/* ====================================
   게시글 상세 — Viewer Sanctuary
   ==================================== */
.post-detail {
    max-width: 850px;
    margin: 0 auto;
    background: var(--ht-glass, rgba(255, 255, 255, 0.02));
    backdrop-filter: var(--ht-blur, blur(20px));
    -webkit-backdrop-filter: var(--ht-blur, blur(20px));
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    animation: archiveFadeIn 1.5s ease-out;
}

.post-detail-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.viewer-date-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--ht-gold, #d4af37);
    margin-bottom: 20px;
    opacity: 0.7;
}

.post-detail-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(22px, 4vw, 40px);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #fff;
}

.post-detail-meta {
    display: flex;
    gap: 20px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    flex-wrap: wrap;
    justify-content: center;
}

.post-detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
}

.post-author-image-default {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 34, 82, 0.08);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.post-author-grade {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 3px;
}

/* Heritage Seal — 워터마크 연도 */
.heritage-seal {
    position: absolute;
    bottom: 30px; right: 40px;
    font-family: 'Cinzel', serif;
    font-size: 6rem;
    color: var(--ht-gold, #d4af37);
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

/* 게시글 본문 */
.post-detail-content {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.15rem;
    line-height: 2.2;
    color: #ccc;
    margin-bottom: 40px;
    text-align: justify;
    word-break: keep-all;
    position: relative;
    z-index: 1;
}

/* Artist Signature — 인장 */
.artist-signature {
    margin-top: 60px;
    padding-top: 40px;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.artist-signature .seal-stamp {
    display: inline-block;
    margin-bottom: 12px;
    opacity: 0.85;
    animation: breathe-stamp 6s ease-in-out infinite;
}

.artist-signature .seal-stamp svg {
    display: block;
}

@keyframes breathe-stamp {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.03); }
}

.artist-signature .seal-slogan {
    display: block;
    margin-top: 12px;
    font-family: 'Noto Serif KR', serif;
    font-size: 12px;
    color: #555;
    font-style: italic;
    font-weight: 300;
}

/* Viewer Sanctuary 반응형 */
@media (max-width: 768px) {
    .post-detail { padding: 50px 24px; }
    .heritage-seal { font-size: 4rem; bottom: 20px; right: 20px; }
    .post-detail-title { font-size: clamp(20px, 5vw, 28px); }
    .post-detail-content { font-size: 1.05rem; line-height: 2; }
    .artist-signature .seal-stamp svg { width: 90px; height: 90px; }
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 16px 0;
}

.post-detail-content p { margin-bottom: 16px; }

.post-detail-content blockquote {
    border-left: none;
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.post-detail-content blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-gold), transparent);
    border-radius: 2px;
}

/* 좋아요 + 액션 */
.post-detail-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.btn-like {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.btn-like::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(232, 115, 74, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-like:hover,
.btn-like.liked {
    border-color: rgba(232, 115, 74, 0.3);
    color: var(--color-cta);
}

.btn-like:hover::after,
.btn-like.liked::after { opacity: 1; }

.like-icon { font-size: 18px; position: relative; z-index: 1; }

/* 이전/다음글 네비게이션 */
.post-nav {
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.post-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.post-nav-item + .post-nav-item {
    border-top: 1px solid var(--glass-border);
}

.post-nav-item:hover {
    background: rgba(139, 34, 82, 0.04);
    padding-left: 28px;
}

.post-nav-item:hover .post-nav-title { color: var(--color-primary); }

.post-nav-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
    color: var(--text-light);
    flex-shrink: 0;
    width: 70px;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.post-nav-title {
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}


/* ====================================
   댓글
   ==================================== */
.comments-section { margin-top: 40px; }

.comments-title {
    font-size: var(--font-size-lg);
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.comment-input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: var(--font-size-sm);
    resize: none;
    min-height: 80px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: rgba(139, 34, 82, 0.3);
    box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.06);
}

.comment-submit {
    align-self: flex-end;
    padding: 12px 24px;
    min-height: 44px;
}

.comment-list { display: flex; flex-direction: column; }

.comment-item {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease;
}

.comment-item:hover { background: rgba(139, 34, 82, 0.01); }

.comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-author-image {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author-image-default {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(139, 34, 82, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.comment-author-name {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.comment-author-grade {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
    opacity: 0.6;
}

.comment-content {
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    line-height: 1.7;
}


/* ====================================
   글쓰기 폼
   ==================================== */
.write-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group { margin-bottom: 24px; }

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.form-required {
    color: var(--color-cta);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(139, 34, 82, 0.3);
    box-shadow: 0 0 0 3px rgba(139, 34, 82, 0.06);
}

.form-textarea {
    min-height: 400px;
    resize: vertical;
    line-height: 1.8;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-sm);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

/* 이미지 업로드 */
.image-upload-area {
    position: relative;
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    border: 2px dashed var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light, #888);
    font-size: 14px;
}

.image-upload-placeholder:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.02);
    color: var(--ht-gold, #d4af37);
}

.image-upload-hint {
    font-size: 12px;
    opacity: 0.5;
}

.image-upload-preview {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
}

.image-upload-preview img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.image-upload-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-upload-remove:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: scale(1.1);
}


/* ====================================
   페이지네이션
   ==================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    padding-top: 20px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-link:hover {
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
    transform: translateY(-1px);
}

.page-link:hover::before { opacity: 1; }

.page-link.active {
    background: linear-gradient(135deg, rgba(139, 34, 82, 0.12), rgba(201, 169, 110, 0.1));
    border-color: rgba(139, 34, 82, 0.2);
    color: var(--color-primary);
    font-weight: 500;
}

.page-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* ====================================
   빈 상태
   ==================================== */
.board-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}

.board-empty-icon {
    margin-bottom: 16px;
    opacity: 0.4;
}

.board-empty-text {
    font-size: var(--font-size-base);
    font-weight: 300;
}


/* ====================================
   SNS 공유 패널 (관리자)
   ==================================== */
.sns-share-panel {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sns-share-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.sns-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sns-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sns-share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sns-kakao:hover { background: #FEE500; color: #191919; border-color: #FEE500; }
.sns-x:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.sns-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.sns-copy:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }


/* ====================================
   반응형
   ==================================== */
@media (max-width: 768px) {
    /* 카드 리스트 모바일 */
    .post-card {
        padding: 16px;
        gap: 12px;
    }

    .post-card-avatar { display: none; }

    .post-card-thumb {
        width: 72px;
        height: 60px;
    }

    .post-card-excerpt { display: none; }

    .post-card-stats {
        margin-left: 0;
        margin-top: 4px;
    }

    .post-card-meta { flex-wrap: wrap; }

    /* 갤러리 모바일 */
    .board-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-overlay { display: none; }

    /* 웹진 모바일 */
    .webzine-item { grid-template-columns: 1fr; gap: 0; padding: 0; }

    .webzine-thumb-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .webzine-thumb, .webzine-thumb-empty { aspect-ratio: 16/9; }

    .webzine-content { padding: 20px; }

    .webzine-hero .webzine-thumb-wrap { height: 220px; }
    .webzine-hero .webzine-content { padding: 20px; }
    .webzine-hero .webzine-title { font-size: var(--font-size-lg); }

    /* 상세 모바일 */
    .post-detail-title { font-size: var(--font-size-xl); }

    .post-nav-label { width: 56px; }

    .comment-form { flex-direction: column; }
    .comment-submit { align-self: stretch; }
    .form-footer { flex-direction: column-reverse; }

    /* SNS 공유 모바일 */
    .sns-share-panel { flex-direction: column; align-items: flex-start; }
    .sns-share-btn span { display: none; }
    .sns-share-btn { padding: 10px; border-radius: 50%; }
}

@media (max-width: 480px) {
    .board-gallery { grid-template-columns: 1fr; }
}

/* ====================================
   에너지 레벨 시각화 (Energy Level)
   인기도에 따라 카드 배경 그라데이션 변화
   ==================================== */
.post-card.is-popular {
    border-color: rgba(201, 169, 110, 0.12);
    background: linear-gradient(135deg,
        rgba(201, 169, 110, 0.04) 0%,
        rgba(139, 34, 82, 0.03) 50%,
        var(--glass-bg) 100%);
}

.post-card.is-popular::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 20%, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: energyPulse 6s ease-in-out infinite;
}

.gallery-item.is-popular,
.webzine-item.is-popular {
    border-color: rgba(201, 169, 110, 0.15);
    box-shadow: 0 4px 24px rgba(201, 169, 110, 0.06);
}

.webzine-item.is-popular::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 20% 30%, rgba(201, 169, 110, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: energyPulse 6s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}


/* ====================================
   웹진 Reading Time
   ==================================== */
.webzine-read-time {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(201, 169, 110, 0.6);
    text-transform: uppercase;
}

.webzine-read-time svg {
    vertical-align: -1px;
    opacity: 0.5;
}

/* ====================================
   Mood Tags (분위기 태그)
   카테고리 기반 감성 색상 코딩
   ==================================== */
.webzine-mood {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    margin-bottom: 10px;
}

.webzine-mood.mood-calm {
    background: rgba(91, 154, 107, 0.1);
    border-color: rgba(91, 154, 107, 0.2);
    color: #5B9A6B;
}

.webzine-mood.mood-energy {
    background: rgba(232, 115, 74, 0.1);
    border-color: rgba(232, 115, 74, 0.2);
    color: #E8734A;
}

.webzine-mood.mood-deep {
    background: rgba(139, 34, 82, 0.1);
    border-color: rgba(139, 34, 82, 0.2);
    color: #B44D7E;
}

.webzine-mood.mood-joy {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.2);
    color: #C9A96E;
}

.webzine-mood.mood-rest {
    background: rgba(155, 125, 191, 0.1);
    border-color: rgba(155, 125, 191, 0.2);
    color: #9B7DBF;
}

.webzine-mood .mood-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: moodPulse 3s ease-in-out infinite;
}

@keyframes moodPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ====================================
   Floating Actions (상세 페이지 플로팅 버튼)
   ==================================== */
.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.floating-actions.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(13, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-action-btn:hover {
    border-color: rgba(201, 169, 110, 0.4);
    color: var(--color-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.15);
}

.floating-action-btn.liked {
    color: var(--color-cta);
    border-color: rgba(232, 115, 74, 0.3);
}

.floating-action-btn .like-count {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 9px;
    background: var(--color-cta);
    color: #fff;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 14px;
    text-align: center;
}

/* Thumbnail-based post nav */
.post-nav-thumb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.post-nav-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.post-nav-card:hover {
    border-color: rgba(201, 169, 110, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.post-nav-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(139, 34, 82, 0.06), rgba(201, 169, 110, 0.06));
}

.post-nav-card-body {
    padding: 16px;
}

.post-nav-card-dir {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-gold);
    opacity: 0.6;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.post-nav-card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-card:hover .post-nav-card-title {
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .floating-actions { right: 16px; bottom: 70px; }
    .post-nav-thumb { grid-template-columns: 1fr; }
}


/* ====================================
   공유 바 (Share Bar) — 모든 유저 대상
   ==================================== */
.post-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 20px;
}

.post-share-label {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--ht-gold, #d4af37);
    opacity: 0.5;
    text-transform: uppercase;
}

.post-share-buttons {
    display: flex;
    gap: 8px;
}

.post-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    background: var(--glass-bg, rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-light, #888);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-share-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.post-share-btn.share-kakao:hover { background: #FEE500; color: #191919; border-color: #FEE500; }
.post-share-btn.share-naver:hover { background: #03C75A; color: #fff; border-color: #03C75A; }
.post-share-btn.share-x:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.post-share-btn.share-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.post-share-btn.share-link:hover { background: var(--color-primary, #8B2252); color: #fff; border-color: var(--color-primary); }

@media (max-width: 480px) {
    .post-share-bar { flex-direction: column; gap: 10px; }
}


/* ====================================
   웹진 예약 CTA (Reservation Banner)
   ==================================== */
.webzine-reservation-cta {
    text-align: center;
    padding: 48px 24px;
    margin: 32px 0;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 32px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    position: relative;
    z-index: 1;
}

.webzine-reservation-cta .cta-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--ht-gold, #d4af37);
    opacity: 0.6;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.webzine-reservation-cta .cta-text {
    font-family: 'Noto Serif KR', serif;
    font-size: 1rem;
    color: #888;
    margin-bottom: 24px;
    font-weight: 300;
    line-height: 1.8;
}

.webzine-reservation-cta .cta-reserve {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 100px;
    font-size: 14px;
    letter-spacing: 0.5px;
}


/* ====================================
   Reading Progress Bar
   상단 얇은 진행률 바
   ==================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: none;
    will-change: transform;
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}


/* ====================================
   Reading Heatmap
   오래 머문 문단의 골드 열선
   ==================================== */
.post-detail-content [data-hm-idx] {
    transition: border-left 1s ease, padding-left 0.3s ease;
    border-left: 3px solid transparent;
}

.heatmap-highlight {
    position: relative;
}

.heatmap-highlight::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(201, 169, 110, 0.4), rgba(201, 169, 110, 0.1));
    animation: heatmapGlow 4s ease-in-out infinite;
}

@keyframes heatmapGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; box-shadow: 0 0 6px rgba(201, 169, 110, 0.2); }
}


/* ====================================
   Zen Write (명상 글쓰기 모드)
   ==================================== */
body.zen-mode .site-header,
body.zen-mode .site-footer,
body.zen-mode .board-hero-header,
body.zen-mode .board-header,
body.zen-mode .form-footer,
body.zen-mode .category-tabs {
    opacity: 0.1;
    filter: blur(2px);
    transition: opacity 0.8s ease, filter 0.8s ease;
    pointer-events: none;
}

body.zen-mode .form-group {
    transition: opacity 0.8s ease, filter 0.8s ease;
}

body.zen-mode .write-form {
    position: relative;
    z-index: 10;
}

body.zen-mode .form-textarea {
    border-color: rgba(201, 169, 110, 0.2);
    box-shadow:
        0 0 0 3px rgba(201, 169, 110, 0.04),
        0 0 40px rgba(201, 169, 110, 0.03);
    transition: border-color 0.8s ease, box-shadow 0.8s ease;
    min-height: 500px;
}

body.zen-mode .form-textarea:focus {
    border-color: rgba(201, 169, 110, 0.3);
    box-shadow:
        0 0 0 4px rgba(201, 169, 110, 0.06),
        0 0 60px rgba(201, 169, 110, 0.05);
}

.zen-cursor-glow {
    pointer-events: none;
    transition: opacity 0.6s ease, left 0.15s ease, top 0.15s ease;
}

body.zen-mode::after {
    content: '명상 글쓰기';
    position: fixed;
    bottom: 20px;
    right: 24px;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(201, 169, 110, 0.3);
    font-weight: 300;
    z-index: 100;
    animation: zenLabel 6s ease-in-out infinite;
}

@keyframes zenLabel {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}


/* ====================================
   Ripple Comments (물결 댓글)
   ==================================== */
.ripple-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-light);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.ripple-toggle:hover {
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
}

.ripple-toggle.active {
    background: rgba(201, 169, 110, 0.08);
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
}

.comment-list.ripple-mode {
    overflow: visible;
}

.comment-list.ripple-mode .comment-item {
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.comment-list.ripple-mode .comment-author {
    flex-direction: column;
    gap: 4px;
}

.comment-list.ripple-mode .comment-content {
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-list.ripple-mode .comment-date {
    margin-left: 0;
    font-size: 10px;
}

@keyframes rippleWave {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(1.02); }
    100% { opacity: 0.6; transform: scale(1); }
}


/* ====================================
   Ambient Sound Toggle
   ==================================== */
.ambient-sound-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    opacity: 0.5;
}

.ambient-sound-toggle:hover {
    opacity: 1;
    border-color: rgba(201, 169, 110, 0.3);
    transform: scale(1.1);
}

.ambient-sound-toggle.active {
    opacity: 1;
    color: var(--color-gold);
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 0 16px rgba(201, 169, 110, 0.1);
}

.ambient-sound-toggle.active .sound-wave-1 {
    animation: soundWave 1.5s ease-in-out infinite;
}

.ambient-sound-toggle.active .sound-wave-2 {
    animation: soundWave 1.5s ease-in-out infinite 0.3s;
}

.ambient-sound-toggle:not(.active) .sound-wave-1,
.ambient-sound-toggle:not(.active) .sound-wave-2 {
    opacity: 0.3;
}

@keyframes soundWave {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}


/* ====================================
   View Switcher (뷰 전환 버튼)
   ==================================== */
.view-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
}

.view-switch-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.view-switch-btn:hover {
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
}

.view-switch-btn.active {
    background: rgba(201, 169, 110, 0.08);
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--color-gold);
}


/* ====================================
   헤리티지 / FAQ 전용 헤더 — 엠블럼 + 서브타이틀
   ==================================== */
.heritage-hero-header {
    text-align: center;
    padding: 40px 20px 80px;
    margin-bottom: 40px;
    animation: archiveFadeIn 1.2s ease-out;
    position: relative;
}

.heritage-emblem {
    width: 76px;
    height: 76px;
    margin: 0 auto 32px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: var(--ht-gold, #d4af37);
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.1), inset 0 0 20px rgba(212, 175, 55, 0.03);
}

.heritage-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.heritage-hero-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.04em;
    max-width: 520px;
    margin: 0 auto;
}

.heritage-hero-header .board-actions {
    margin-top: 32px;
}


/* ====================================
   헤리티지형 — HT 치유 박물관 (Bento Grid)
   ==================================== */
.heritage-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 24px;
    position: relative;
}

.heritage-card {
    position: relative;
    background: var(--ht-glass, rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.heritage-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Bento 크기 변형 */
.heritage-card.large { grid-column: span 2; grid-row: span 2; }
.heritage-card.tall { grid-row: span 2; }
.heritage-card.wide { grid-column: span 2; }

/* 카드 이미지 — 흑백 → 컬러 */
.heritage-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.4);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.heritage-card:hover .heritage-card-img {
    filter: grayscale(20%) brightness(0.6);
    transform: scale(1.08);
}

.heritage-card-img-empty {
    background: radial-gradient(ellipse at 30% 70%, rgba(212, 175, 55, 0.06) 0%, rgba(139, 34, 82, 0.04) 50%, transparent 100%);
}

/* 카드 컨텐츠 오버레이 */
.heritage-card-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.95) 0%, rgba(5, 7, 10, 0.4) 50%, transparent 100%);
}

/* Heritage Seal 뱃지 */
.heritage-card-seal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--ht-gold, #d4af37);
    border: 1px solid var(--ht-gold, #d4af37);
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 600;
    opacity: 0.7;
}

.heritage-card-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.heritage-card.large .heritage-card-title { font-size: 1.8rem; }
.heritage-card.tall .heritage-card-title { font-size: 1.4rem; }

.heritage-card-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.heritage-card-artist {
    font-family: 'Noto Serif KR', serif;
    font-style: italic;
    color: var(--ht-gold, #d4af37);
    font-size: 14px;
    opacity: 0.8;
}


/* --- 비회원 블러 오버레이 (아키타입 전용) --- */
.heritage-bento.is-locked {
    filter: blur(8px) brightness(0.7);
    pointer-events: none;
    user-select: none;
}

.heritage-lock-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 20px 0;
    margin-bottom: -120px;
}

.heritage-lock-inner {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 32px;
    padding: 60px 50px;
    max-width: 520px;
}

.heritage-lock-seal {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--ht-gold, #d4af37);
    margin-bottom: 30px;
    opacity: 0.6;
}

.heritage-lock-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 16px;
}

.heritage-lock-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
    font-weight: 300;
}


/* --- 안식의 잔상: Sanctuary Modal --- */
.sanctuary-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sanctuary-modal.active {
    opacity: 1;
}

.sanctuary-body {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 48px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 80px 50px;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.sanctuary-modal.active .sanctuary-body {
    transform: translateY(0);
}

/* 스크롤바 스타일링 */
.sanctuary-body::-webkit-scrollbar { width: 4px; }
.sanctuary-body::-webkit-scrollbar-track { background: transparent; }
.sanctuary-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 2px;
}

.sanctuary-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    z-index: 10;
}

.sanctuary-close:hover {
    color: var(--ht-gold, #d4af37);
    transform: rotate(90deg);
}

.sanctuary-header {
    margin-bottom: 32px;
}

.sanctuary-evidence-label {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--ht-gold, #d4af37);
    opacity: 0.6;
}

.sanctuary-image {
    margin-bottom: 32px;
    border-radius: 20px;
    overflow: hidden;
}

.sanctuary-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.sanctuary-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sanctuary-excerpt {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.05rem;
    line-height: 2;
    color: #aaa;
    margin-bottom: 40px;
    font-weight: 300;
}

.sanctuary-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sanctuary-footer-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.sanctuary-footer-artist {
    font-family: 'Noto Serif KR', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ht-gold, #d4af37);
}

.sanctuary-gratitude {
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sanctuary-gratitude-main {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    color: #999;
    font-weight: 300;
    margin-bottom: 8px;
    font-style: italic;
}

.sanctuary-gratitude-energy {
    font-size: 13px;
    color: #555;
    font-weight: 300;
}

.sanctuary-detail-link {
    text-align: center;
    margin-top: 24px;
}

/* --- Heritage 게시글 상세 (view.php) --- */
.heritage-view-gratitude {
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.heritage-view-gratitude .sanctuary-gratitude-main {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    color: #999;
    font-weight: 300;
    margin-bottom: 8px;
    font-style: italic;
}

.heritage-view-gratitude .sanctuary-gratitude-energy {
    font-size: 13px;
    color: #555;
    font-weight: 300;
}


/* --- Heritage 반응형 --- */
@media (max-width: 1024px) {
    .heritage-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    .heritage-card.large { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 768px) {
    .heritage-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 16px;
    }
    .heritage-card.large,
    .heritage-card.wide { grid-column: span 1; }
    .heritage-card.large { grid-row: span 2; }
    .heritage-card-content { padding: 20px; }
    .heritage-card-title { font-size: 1.1rem !important; }
    .heritage-card-seal { top: 16px; right: 16px; font-size: 9px; }

    .sanctuary-body { padding: 30px 24px; border-radius: 28px; }
    .sanctuary-title { font-size: 20px; }
    .sanctuary-image { border-radius: 14px; }

    .heritage-lock-inner { padding: 40px 24px; border-radius: 24px; }
    .heritage-lock-title { font-size: 1.2rem; }
}

@media (max-width: 640px) {
    .heritage-emblem { width: 64px; height: 64px; font-size: 10px; letter-spacing: 2px; }
    .heritage-hero-title { letter-spacing: 0.12em; }
    .heritage-hero-desc { font-size: 13px; }
}

@media (max-width: 480px) {
    .heritage-bento { grid-auto-rows: 200px; }
    .heritage-card.tall,
    .heritage-card.large { grid-row: span 1; }
}


/* ====================================
   접근성: 모션 감소
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    .post-card,
    .gallery-item,
    .webzine-item,
    .faq-item,
    .post-card::before,
    .webzine-item::before {
        transition: none;
    }
    .gallery-item:hover .gallery-thumb,
    .webzine-item:hover .webzine-thumb,
    .post-card:hover .post-card-thumb img {
        transform: none;
    }
    .new-badge, .hot-badge { animation: none; }
}

/* --- Heritage 무한 스크롤 로더 --- */
.heritage-scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.heritage-loader-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ht-gold, #d4af37);
    animation: heritagePulse 1.5s ease-in-out infinite;
}

@keyframes heritagePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.heritage-scroll-end {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0 30px;
    opacity: 0.5;
}


/* ====================================
   이용후기형 — Echoes of Healing
   매슨리 글래스 카드 + 숨결 + 인용구
   ==================================== */

/* 매슨리 그리드 (CSS columns) */
.review-masonry {
    columns: 3 320px;
    column-gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* 안개 페이드 — 몽환적 경계 */
.review-mist {
    position: relative;
    left: 0; right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 10;
}
.review-mist-top {
    background: linear-gradient(to bottom, var(--bg-primary, #0D0D14) 0%, transparent 100%);
    margin-bottom: -30px;
}
.review-mist-bottom {
    background: linear-gradient(to top, var(--bg-primary, #0D0D14) 0%, transparent 100%);
    margin-top: -30px;
}

/* 글래스 카드 — 숨결 애니메이션 */
.review-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 24px;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    animation: reviewBreathe 5s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 숨결 — 각 카드가 개별적으로 호흡 */
@keyframes reviewBreathe {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.012); }
}

/* 공감 많은 카드 — 따뜻한 글로우 */
.review-card.is-warm {
    border-color: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
}

/* 공지 카드 */
.review-card.is-notice {
    border-color: rgba(212, 175, 55, 0.15);
    background: rgba(212, 175, 55, 0.02);
}

/* 호버: 부유 + 골드 글로우 + 숨결 정지 */
.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(212, 175, 55, 0.12);
    animation-play-state: paused;
    opacity: 1;
}

/* 골드 인장 워터마크 — 은은한 권위 */
.review-seal {
    position: absolute;
    top: 16px; right: 16px;
    font-family: 'Cinzel', serif;
    font-size: 8px;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.08);
    text-transform: uppercase;
    pointer-events: none;
}

/* 감각 태그 — 자동 추출 키워드 pill */
.review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.review-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}
.review-tag .tag-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: moodPulse 3s ease-in-out infinite;
}

/* 감각 태그 색상 — 5가지 치유 감각 */
.tag-warmth    { background: rgba(212, 168, 55, 0.08); border-color: rgba(212, 168, 55, 0.15); color: #d4a837; }
.tag-calm      { background: rgba(91, 154, 107, 0.08); border-color: rgba(91, 154, 107, 0.15); color: #5B9A6B; }
.tag-fresh     { background: rgba(100, 160, 200, 0.08); border-color: rgba(100, 160, 200, 0.15); color: #7BB8D4; }
.tag-gratitude { background: rgba(155, 125, 191, 0.08); border-color: rgba(155, 125, 191, 0.15); color: #9B7DBF; }
.tag-wow       { background: rgba(232, 115, 74, 0.08); border-color: rgba(232, 115, 74, 0.15); color: #E8734A; }

/* 인용구 — 대형 큰따옴표 스타일 */
.review-quote {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px;
    padding: 0;
    border: none;
    word-break: keep-all;
}
.review-quote-mark {
    color: rgba(212, 175, 55, 0.25);
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3em;
    font-weight: 200;
    vertical-align: -1px;
}

/* 발췌 — 2줄 제한 */
.review-excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 하단 메타 */
.review-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.review-author {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.review-likes {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    color: rgba(232, 115, 74, 0.5);
}

/* 반응형 */
@media (max-width: 768px) {
    .review-masonry { columns: 2 180px; column-gap: 16px; }
    .review-card { padding: 24px 20px; border-radius: 22px; margin-bottom: 16px; }
    .review-quote { font-size: 1rem; }
    .review-mist { height: 40px; }
}
@media (max-width: 480px) {
    .review-masonry { columns: 1; }
    .review-mist { height: 30px; }
}

/* 접근성: 모션 축소 */
@media (prefers-reduced-motion: reduce) {
    .review-card { animation: none !important; }
    .review-tag .tag-dot { animation: none !important; }
}


/* ====================================
   Reading Ritual — 디지털 조도 조절
   상세 페이지 진입 시 배경이 서서히 어두워지며
   텍스트에만 조명이 집중 (읽는 행위 = 안식)
   ==================================== */
body.reading-ritual::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 40%,
        transparent 0%,
        rgba(5, 7, 10, 0.3) 50%,
        rgba(5, 7, 10, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1);
}

body.reading-ritual.ritual-active::before {
    opacity: 1;
}

/* 글 본문 영역에 집중 조명 효과 */
body.reading-ritual.ritual-active .post-detail {
    position: relative;
    z-index: 2;
}

body.reading-ritual.ritual-active .post-detail-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
}

/* 헤더/푸터/사이드바 dimming */
body.reading-ritual.ritual-active .site-header {
    opacity: 0.3;
    transition: opacity 2s ease;
}

body.reading-ritual.ritual-active .site-footer {
    opacity: 0.2;
    transition: opacity 2s ease;
}

/* 플로팅 버튼은 유지 */
body.reading-ritual.ritual-active .floating-actions {
    z-index: 3;
}

/* Ritual 해제 버튼 (우하단 미세한 아이콘) */
.ritual-toggle {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(5, 7, 10, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ht-gold, #d4af37);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.ritual-toggle.visible {
    opacity: 0.5;
    pointer-events: auto;
}

.ritual-toggle:hover {
    opacity: 1;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.1);
}

.ritual-toggle svg {
    width: 16px;
    height: 16px;
}

/* Ritual 안내 텍스트 (최초 1회) */
.ritual-hint {
    position: fixed;
    bottom: 140px;
    right: 24px;
    font-family: 'Noto Serif KR', serif;
    font-size: 11px;
    color: rgba(212, 175, 55, 0.4);
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}

.ritual-hint.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    body.reading-ritual::before { transition: none; }
    body.reading-ritual.ritual-active .site-header,
    body.reading-ritual.ritual-active .site-footer { transition: none; }
}

@media (max-width: 768px) {
    .ritual-toggle { bottom: 80px; right: 16px; width: 32px; height: 32px; }
    .ritual-hint { bottom: 116px; right: 16px; font-size: 10px; }
}


/* ====================================
   Etiquette Protocol — 공유 에티켓 팝업
   공유 버튼 클릭 시 상호 존중 메시지 팝업
   ==================================== */
.etiquette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
}

.etiquette-overlay.active {
    opacity: 1;
    visibility: visible;
}

.etiquette-card {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 48px 36px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 40px;
    background: rgba(15, 17, 22, 0.9);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.etiquette-overlay.active .etiquette-card {
    transform: translateY(0) scale(1);
}

.etiquette-emblem {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 10, 0.8);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
}

.etiquette-emblem svg {
    color: var(--ht-gold, #d4af37);
    opacity: 0.7;
}

.etiquette-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    letter-spacing: 0.25em;
    color: var(--ht-gold, #d4af37);
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
}

.etiquette-message {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
}

.etiquette-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.etiquette-btn {
    padding: 12px 32px;
    border-radius: 100px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.etiquette-btn-proceed {
    border: 1px solid var(--ht-gold, #d4af37);
    background: transparent;
    color: var(--ht-gold, #d4af37);
}

.etiquette-btn-proceed:hover {
    background: var(--ht-gold, #d4af37);
    color: #000;
}

.etiquette-btn-cancel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
}

.etiquette-btn-cancel:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 480px) {
    .etiquette-card { padding: 36px 24px; border-radius: 32px; }
    .etiquette-actions { flex-direction: column; }
    .etiquette-btn { width: 100%; }
}

/* =========================================
   등급 잠금 시스템 (Grade Lock System)
   B. 게시판 전체 잠금 화면
   C. 게시물별 잠금 표시
   ========================================= */

/* --- B. 게시판 전체 잠금 화면 --- */
.board-grade-lock {
    text-align: center;
    padding: 80px 24px 120px;
    max-width: 480px;
    margin: 0 auto;
    animation: archiveFadeIn 0.8s ease-out;
}

.grade-lock-emblem {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: var(--ht-gold, #d4af37);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.08), inset 0 0 20px rgba(212, 175, 55, 0.03);
    animation: gradeLockBreathe 4s ease-in-out infinite;
}

@keyframes gradeLockBreathe {
    0%, 100% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.08), inset 0 0 20px rgba(212, 175, 55, 0.03); }
    50% { box-shadow: 0 0 60px rgba(212, 175, 55, 0.15), inset 0 0 30px rgba(212, 175, 55, 0.06); }
}

.grade-lock-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: var(--ht-gold, #d4af37);
    margin-bottom: 20px;
    opacity: 0.7;
    text-transform: uppercase;
}

.grade-lock-title {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.grade-lock-desc {
    font-family: 'Noto Serif KR', serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 12px;
    font-weight: 300;
}

.grade-lock-desc strong {
    color: var(--ht-gold, #d4af37);
    font-weight: 400;
}

.grade-lock-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 28px;
}

.grade-lock-current {
    color: var(--ht-gold, #d4af37);
}

.grade-lock-btn {
    font-size: 13px !important;
    padding: 12px 36px !important;
}

.grade-lock-home {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.grade-lock-home:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* --- C. 게시물별 잠금 표시 — 목록 --- */

/* 잠금 뱃지 (제목 옆 표시) */
.post-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--ht-gold, #d4af37);
    opacity: 0.7;
    margin-left: 8px;
    vertical-align: middle;
    background: rgba(212, 175, 55, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    white-space: nowrap;
}

/* 잠금된 게시물 — 카드 수준 스타일 */
.journey-item.is-grade-locked {
    cursor: default;
    position: relative;
}

.journey-item.is-grade-locked .journey-title {
    color: rgba(255, 255, 255, 0.35);
}

.journey-item.is-grade-locked .journey-summary {
    filter: blur(4px);
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

.journey-item.is-grade-locked:hover {
    transform: none;
    box-shadow: none;
}

/* 웹진 잠금 */
.webzine-item.is-grade-locked {
    cursor: default;
}

.webzine-item.is-grade-locked .webzine-title {
    color: rgba(255, 255, 255, 0.35);
}

.webzine-item.is-grade-locked:hover {
    transform: none;
}

/* 갤러리 잠금 */
.gallery-item.is-grade-locked {
    cursor: default;
}

.gallery-item.is-grade-locked .gallery-thumb {
    filter: blur(8px) grayscale(100%) brightness(0.3);
}

.gallery-item.is-grade-locked:hover {
    transform: none;
}

/* 썸네일 위 잠금 오버레이 (웹진/갤러리) */
.post-lock-overlay-thumb {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(5, 7, 10, 0.6);
    backdrop-filter: blur(2px);
    color: var(--ht-gold, #d4af37);
    z-index: 5;
    border-radius: inherit;
}

.post-lock-overlay-label {
    font-family: 'Cinzel', serif;
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- C. 게시물별 잠금 표시 — 상세 페이지 --- */
.post-grade-lock-wrapper {
    position: relative;
    margin: 32px 0;
}

.post-grade-locked-content {
    filter: blur(8px);
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
    min-height: 200px;
}

.post-grade-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.post-grade-lock-inner {
    text-align: center;
    padding: 40px;
    background: rgba(5, 7, 10, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 32px;
    color: var(--ht-gold, #d4af37);
    max-width: 400px;
}

.post-grade-lock-inner svg {
    opacity: 0.6;
    margin-bottom: 12px;
}

.post-grade-lock-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.8;
}

.post-grade-lock-msg {
    font-family: 'Noto Serif KR', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    font-weight: 300;
}

/* --- 헤더 메뉴 잠금 링크 --- */
.nav-locked-link {
    opacity: 0.45 !important;
    transition: opacity 0.3s;
}

.nav-locked-link:hover {
    opacity: 0.7 !important;
}

/* 반응형 */
@media (max-width: 768px) {
    .board-grade-lock {
        padding: 60px 20px 80px;
    }
    .grade-lock-emblem {
        width: 64px;
        height: 64px;
    }
    .grade-lock-emblem svg {
        width: 28px;
        height: 28px;
    }
    .post-grade-lock-inner {
        padding: 28px 20px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grade-lock-emblem {
        animation: none;
    }
}
