/**
 * 로드비(Roadview) 게시판 스킨 - loadb.css
 * 그누보드 라공 에디션용
 */

/* ============================================================
   CSS 변수
   ============================================================ */
:root {
    --lb-bg:          #f5f5f3;
    --lb-surface:     rgba(3, 47, 69, 0.8);
    --lb-surface-2:   #4aa18e40;
    --lb-border:      #ffe84347;
    --lb-border-soft: #ffe8430f;
    --lb-text:        #afc7ff;
    --lb-text-sub:    #ffe843;
    --lb-text-mute:   #ffe843;
    --lb-accent:      #ff4dd7c2;
    --lb-accent-hover:#ffe843d9;
    --lb-danger:      #ffe843;
    --lb-danger-bg:   #ff4d4dab;
    --lb-radius:      12px;
    --lb-radius-sm:   8px;
    --lb-shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    --lb-shadow-hover:0 2px 8px rgba(0,0,0,.1), 0 8px 24px rgba(0,0,0,.08);
    --lb-font:        'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, sans-serif;
    --lb-font-mono:   'JetBrains Mono', 'Fira Code', monospace;
    --lb-transition:  0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --lb-max-width:   650px;
}

/* ============================================================
   기본 리셋 & 공통
   ============================================================ */
.lb-board-wrap *,
.lb-write-wrap * {
    box-sizing: border-box;
}

/* ============================================================
   게시판 전체 래퍼
   ============================================================ */
.lb-board-wrap {
    max-width: var(--lb-max-width);
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: var(--lb-font);
    color: var(--lb-text);
    /* background: var(--lb-bg); */
    min-height: 100vh;
}

/* ============================================================
   게시판 헤더
   ============================================================ */
.lb-board-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 16px;
}

.lb-write-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #4aa18edb;
    color: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--lb-transition), transform var(--lb-transition);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.lb-write-btn:hover {
    background: var(--lb-accent-hover);
    transform: translateY(-1px);
}

/* ============================================================
   빈 상태
   ============================================================ */
.lb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--lb-text-mute);
}

.lb-empty-icon {
    opacity: 0.3;
}

.lb-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ============================================================
   게시글 목록 컨테이너
   ============================================================ */
.lb-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================================
   게시글 카드
   ============================================================ */
.lb-post-card {
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    border: 1px solid var(--lb-border);
    overflow: hidden;
    transition: box-shadow var(--lb-transition);
    animation: lb-fade-in 0.3s ease both;
}

.lb-post-card:hover {
    box-shadow: var(--lb-shadow);
}

@keyframes lb-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 게시글 카드 헤더 */
.lb-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--lb-border-soft);
}

.lb-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-post-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--lb-text-mute);
    font-family: var(--lb-font-mono);
    background: var(--lb-surface-2);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--lb-border);
}

.lb-post-date {
    font-size: 12px;
    color: var(--lb-text-mute);
    font-family: var(--lb-font-mono);
}

/* 수정/삭제 버튼 그룹 */
.lb-post-actions {
    display: flex;
    gap: 4px;
}

.lb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--lb-transition);
    text-decoration: none;
    background: transparent;
    font-family: var(--lb-font);
}

.lb-edit-btn {
    color: var(--lb-text-sub);
    border-color: var(--lb-border);
}

.lb-edit-btn:hover {
    background: var(--lb-surface-2);
    border-color: var(--lb-text-sub);
    color: var(--lb-text);
}

.lb-delete-btn {
    color: var(--lb-danger);
    border-color: transparent;
}

.lb-delete-btn:hover {
    background: var(--lb-danger-bg);
    border-color: #fca5a5;
}

/* ============================================================
   이미지 영역
   ============================================================ */
.lb-images-wrap {
    position: relative;
}

/* 단일 이미지 */
.lb-single-image .lb-image-item {
    width: 100%;
}

.lb-single-image .lb-image {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* 다중 이미지 */
.lb-multi-image {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lb-multi-image .lb-image-item {
    width: 100%;
}

.lb-multi-image .lb-image {
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
}

/* 이미지 오버레이 (hover) */
.lb-image-item {
    position: relative;
    overflow: hidden;
}

.lb-image-link {
    display: block;
    position: relative;
}

.lb-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--lb-transition);
    opacity: 0;
}

.lb-image-link:hover .lb-image-overlay {
    background: rgba(0,0,0,0.3);
    opacity: 1;
}

/* 이미지 수 뱃지 */
.lb-image-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
    font-family: var(--lb-font-mono);
}

/* ============================================================
   게시글 본문
   ============================================================ */
.lb-post-body {
    padding: 16px;
}

.lb-author-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.lb-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text);
}

.lb-post-subject {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--lb-text);
}

.lb-post-content {
    font-size: 14px;
    line-height: 1.75;
    color: #6a88cf;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================================================
   댓글 영역
   ============================================================ */
.lb-comment-section {
    border-top: 1px solid var(--lb-border-soft);
    padding: 0 16px 16px;
}

.lb-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 10px;
}

.lb-comment-count-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text-sub);
}

.lb-cmt-num {
    color: var(--lb-text);
}

.lb-toggle-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: none;
    border: 1px solid var(--lb-border);
    border-radius: 6px;
    font-size: 11px;
    color: var(--lb-text-sub);
    cursor: pointer;
    transition: all var(--lb-transition);
    font-family: var(--lb-font);
}

.lb-toggle-comments:hover {
    background: var(--lb-surface-2);
}

/* 댓글 목록 */
.lb-comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.lb-comment-item {
    display: flex;
    gap: 10px;
    animation: lb-fade-in 0.2s ease both;
}

.lb-cmt-body {
    flex: 1;
    min-width: 0;
}

.lb-cmt-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.lb-cmt-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text);
}

.lb-cmt-date {
    font-size: 11px;
    color: var(--lb-text-mute);
    font-family: var(--lb-font-mono);
}

.lb-cmt-del-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--lb-text-mute);
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    transition: color var(--lb-transition);
    font-family: var(--lb-font);
}

.lb-cmt-del-btn:hover {
    color: var(--lb-danger);
}

.lb-cmt-content {
    font-size: 13px;
    line-height: 1.6;
    color: #6a88cf;
    margin: 0;
    word-break: break-word;
}

/* 댓글 입력 폼 */
.lb-comment-form {
    margin-top: 4px;
}

.lb-cmt-guest-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.lb-cmt-name-input,
.lb-cmt-pw-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-size: 13px;
    background: var(--lb-surface-2);
    color: var(--lb-text);
    font-family: var(--lb-font);
    transition: border-color var(--lb-transition);
    outline: none;
}

.lb-cmt-name-input:focus,
.lb-cmt-pw-input:focus {
    border-color: var(--lb-accent);
    background: var(--lb-surface);
}

.lb-cmt-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.lb-cmt-input-wrap {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.lb-cmt-textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    background: var(--lb-surface-2);
    color: var(--lb-text);
    font-family: var(--lb-font);
    transition: border-color var(--lb-transition);
    outline: none;
    overflow: hidden;
    min-height: 40px;
    max-height: 120px;
}

.lb-cmt-textarea:focus {
    border-color: var(--lb-accent);
    background: var(--lb-surface);
}

.lb-cmt-submit-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--lb-radius-sm);
    background: var(--lb-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--lb-transition), transform var(--lb-transition);
}

.lb-cmt-submit-btn:hover {
    background: var(--lb-accent-hover);
    transform: translateY(-1px);
}

/* ============================================================
   페이지네이션
   ============================================================ */
.lb-pagination {
    display: flex;
    justify-content: center;
    padding: 32px 0 0;
}

.lb-pagination .pg_wrap,
.lb-pagination .pg-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.lb-pagination a,
.lb-pagination strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--lb-radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--lb-border);
    text-decoration: none;
    color: var(--lb-text-sub);
    transition: all var(--lb-transition);
    padding: 0 6px;
}

.lb-pagination a:hover {
    border-color: var(--lb-accent);
    color: var(--lb-accent);
    background: var(--lb-surface);
}

.lb-pagination strong {
    background: var(--lb-accent);
    color: #fff;
    border-color: var(--lb-accent);
}

/* ============================================================
   라이트박스
   ============================================================ */
.lb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
}

.lb-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
    animation: lb-lightbox-in 0.25s ease both;
}

@keyframes lb-lightbox-in {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

.lb-lightbox-close,
.lb-lightbox-prev,
.lb-lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--lb-transition);
    backdrop-filter: blur(8px);
}

.lb-lightbox-close:hover,
.lb-lightbox-prev:hover,
.lb-lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}

.lb-lightbox-close {
    top: 20px;
    right: 20px;
}

.lb-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-family: var(--lb-font-mono);
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ============================================================
   삭제 모달
   ============================================================ */
.lb-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.lb-modal-box {
    position: relative;
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 28px 24px 20px;
    width: min(320px, 90vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: lb-modal-in 0.2s ease both;
}

@keyframes lb-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lb-modal-msg {
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 20px;
    color: var(--lb-text);
}

.lb-modal-btns {
    display: flex;
    gap: 8px;
}

.lb-modal-cancel,
.lb-modal-confirm {
    flex: 1;
    height: 40px;
    border-radius: var(--lb-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--lb-transition);
    font-family: var(--lb-font);
}

.lb-modal-cancel {
    background: var(--lb-surface-2);
    color: var(--lb-text-sub);
    border: 1px solid var(--lb-border);
}

.lb-modal-cancel:hover {
    background: var(--lb-border);
}

.lb-modal-confirm {
    background: var(--lb-danger);
    color: #fff;
}

.lb-modal-confirm:hover {
    background: #b91c1c;
}

/* ============================================================
   글쓰기 페이지
   ============================================================ */
.lb-write-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px 80px;
    font-family: var(--lb-font);
    color: var(--lb-text);
    min-height: 100vh;
}

.lb-write-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 0 20px;
    position: sticky;
    top: 0;
    /* background: var(--lb-bg, #f5f5f3); */
    z-index: 10;
    border-bottom: 1px solid var(--lb-border);
    margin-bottom: 8px;
}

.lb-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--lb-text-sub);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--lb-radius-sm);
    transition: all var(--lb-transition);
    font-family: var(--lb-font);
}

.lb-back-btn:hover {
    background: var(--lb-surface-2);
    color: var(--lb-text);
}

.lb-write-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.lb-submit-btn-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--lb-accent);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--lb-transition);
    font-family: var(--lb-font);
    white-space: nowrap;
}

.lb-submit-btn-top:hover {
    background: var(--lb-accent-hover);
    transform: translateY(-1px);
}

.lb-write-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lb-write-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--lb-border-soft);
}

.lb-write-section:last-of-type {
    border-bottom: none;
}

.lb-write-section--guest {
    background: var(--lb-surface-2);
    border-radius: var(--lb-radius);
    padding: 16px;
    border: 1px solid var(--lb-border);
    margin-bottom: 4px;
}

.lb-write-row {
    display: flex;
    gap: 12px;
}

.lb-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lb-form-group--half {
    flex: 1;
}

.lb-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-label-optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--lb-text-mute);
    background: var(--lb-surface-2);
    border: 1px solid var(--lb-border);
    padding: 1px 6px;
    border-radius: 4px;
}

.lb-form-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-size: 15px;
    background: var(--lb-surface);
    color: var(--lb-text);
    font-family: var(--lb-font);
    transition: border-color var(--lb-transition), box-shadow var(--lb-transition);
    outline: none;
}

.lb-form-input:focus {
    border-color: var(--lb-accent);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.lb-subject-input {
    font-size: 16px;
    font-weight: 500;
    height: 48px;
}

.lb-form-textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-size: 14px;
    line-height: 1.75;
    resize: none;
    background: var(--lb-surface);
    color: var(--lb-text);
    font-family: var(--lb-font);
    transition: border-color var(--lb-transition);
    outline: none;
    overflow: hidden;
    min-height: 120px;
}

.lb-form-textarea:focus {
    border-color: var(--lb-accent);
    box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.lb-char-count {
    text-align: right;
    font-size: 11px;
    color: var(--lb-text-mute);
    font-family: var(--lb-font-mono);
    margin-top: 4px;
}

/* ============================================================
   업로드 섹션
   ============================================================ */
.lb-upload-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lb-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lb-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px dashed var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--lb-text-sub);
    cursor: pointer;
    transition: all var(--lb-transition);
    white-space: nowrap;
    background: var(--lb-surface);
}

.lb-upload-btn:hover {
    border-color: var(--lb-accent);
    color: var(--lb-accent);
    background: var(--lb-surface-2);
}

/* 드롭존 */
.lb-dropzone {
    border: 2px dashed var(--lb-border);
    border-radius: var(--lb-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--lb-transition);
    background: var(--lb-surface);
}

.lb-dropzone:hover,
.lb-dropzone.lb-dragover {
    border-color: var(--lb-accent);
    background: var(--lb-surface-2);
}

.lb-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--lb-text-mute);
    pointer-events: none;
}

.lb-dropzone-inner svg {
    opacity: 0.4;
}

.lb-dropzone-inner p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.lb-dropzone-inner strong {
    color: var(--lb-text-sub);
}

.lb-dropzone-hint {
    font-size: 12px;
    color: var(--lb-text-mute);
}

/* 미리보기 그리드 */
.lb-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.lb-preview-grid:empty {
    display: none;
}

.lb-preview-item {
    position: relative;
    border-radius: var(--lb-radius-sm);
    overflow: hidden;
    border: 1px solid var(--lb-border);
    background: var(--lb-surface-2);
    aspect-ratio: 1;
    cursor: grab;
    transition: transform var(--lb-transition), box-shadow var(--lb-transition);
    animation: lb-fade-in 0.2s ease both;
}

.lb-preview-item:active {
    cursor: grabbing;
}

.lb-preview-item.lb-drag-over {
    border-color: var(--lb-accent);
    box-shadow: 0 0 0 2px var(--lb-accent);
}

.lb-preview-item.lb-dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.lb-preview-thumb {
    width: 100%;
    height: 100%;
}

.lb-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.lb-preview-controls {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 6px;
    transition: background var(--lb-transition);
    opacity: 0;
}

.lb-preview-item:hover .lb-preview-controls {
    opacity: 1;
    background: rgba(0,0,0,0.3);
}

.lb-drag-handle {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lb-text);
    cursor: grab;
}

.lb-preview-del {
    width: 26px;
    height: 26px;
    background: rgba(220,38,38,0.9);
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background var(--lb-transition);
}

.lb-preview-del:hover {
    background: var(--lb-danger);
}

.lb-preview-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lb-font-mono);
    backdrop-filter: blur(4px);
}

.lb-upload-info {
    font-size: 12px;
    color: var(--lb-text-mute);
    display: flex;
    align-items: center;
    gap: 12px;
}

.lb-reorder-hint {
    color: var(--lb-text-mute);
}

/* ============================================================
   글쓰기 하단 버튼
   ============================================================ */
.lb-write-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 24px;
}

.lb-cancel-btn {
    height: 44px;
    padding: 0 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    background: var(--lb-surface-2);
    color: var(--lb-text-sub);
    border: 1px solid var(--lb-border);
    cursor: pointer;
    transition: all var(--lb-transition);
    font-family: var(--lb-font);
}

.lb-cancel-btn:hover {
    background: var(--lb-border);
}

.lb-submit-btn {
    height: 44px;
    padding: 0 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    background: var(--lb-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all var(--lb-transition);
    font-family: var(--lb-font);
}

.lb-submit-btn:hover {
    background: var(--lb-accent-hover);
    transform: translateY(-1px);
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 480px) {
    .lb-board-header {
        padding: 20px 0 16px;
    }


    .lb-write-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .lb-post-header {
        padding: 10px 12px 8px;
    }

    .lb-post-body {
        padding: 12px;
    }

    .lb-comment-section {
        padding: 0 12px 12px;
    }

    .lb-action-btn span,
    .lb-action-btn svg + span {
        display: none;
    }

    .lb-action-btn {
        padding: 6px 8px;
    }

    .lb-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .lb-write-wrap {
        padding: 0 12px 60px;
    }
}

/* ============================================================
   스크롤바
   ============================================================ */
.lb-board-wrap::-webkit-scrollbar,
.lb-write-wrap::-webkit-scrollbar {
    width: 4px;
}

.lb-board-wrap::-webkit-scrollbar-track,
.lb-write-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.lb-board-wrap::-webkit-scrollbar-thumb,
.lb-write-wrap::-webkit-scrollbar-thumb {
    background: var(--lb-border);
    border-radius: 4px;
}

/* ============================================================
   글쓰기 - 로그인 상태 표시
   ============================================================ */
.lb-write-section--member {
    padding: 16px 0;
    border-bottom: 1px solid var(--lb-border-soft);
}

.lb-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lb-member-nick {
    font-size: 14px;
    font-weight: 600;
    color: var(--lb-text);
}

.lb-member-badge {
    font-size: 11px;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

/* 댓글 로그인 상태 표시 */
.lb-cmt-loggedin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lb-cmt-author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text);
}

/* 수정 시 이미지 순서 변경 불가 안내 */
.lb-order-notice {
    font-size: 12px;
    color: #4aa18edb;
    margin: 8px 0 0;
    padding: 8px 12px;
    background: var(--lb-surface-2);
    border-radius: var(--lb-radius-sm);
    border-left: 3px solid var(--lb-border);
    line-height: 1.5;
}

/* 비밀번호 확인 모달 */
.lb-pw-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-pw-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.lb-pw-box {
    position: relative;
    background: var(--lb-surface);
    border-radius: var(--lb-radius);
    padding: 28px 24px 20px;
    width: min(340px, 90vw);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: lb-modal-in 0.2s ease both;
}

@keyframes lb-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lb-pw-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--lb-text);
}

.lb-pw-desc {
    font-size: 13px;
    color: var(--lb-text-sub);
    margin: 0 0 16px;
}

.lb-pw-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    font-size: 14px;
    font-family: var(--lb-font);
    background: var(--lb-surface-2);
    color: var(--lb-text);
    outline: none;
    transition: border-color var(--lb-transition);
    box-sizing: border-box;
}

.lb-pw-input:focus {
    border-color: var(--lb-accent);
}

.lb-pw-error {
    font-size: 12px;
    color: var(--lb-danger);
    margin: 6px 0 0;
}

.lb-pw-btns {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.lb-pw-cancel,
.lb-pw-confirm {
    flex: 1;
    height: 40px;
    border-radius: var(--lb-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--lb-font);
    transition: all var(--lb-transition);
}

.lb-pw-cancel {
    background: var(--lb-surface-2);
    color: var(--lb-text-sub);
    border: 1px solid var(--lb-border);
}

.lb-pw-cancel:hover {
    background: var(--lb-border);
}

.lb-pw-confirm {
    background: var(--lb-danger);
    color: #fff;
}

.lb-pw-confirm:hover {
    background: #b91c1c;
}
