/* ===== 나의 홍보 경험담 게시판 ===== */

.exb-wrap { max-width: 1320px; margin: 0 auto; padding: 100px 24px 80px; }
@media (max-width: 480px) {
    .exb-wrap { padding: 80px 16px 60px; }
}

/* 메인 헤더 (포트폴리오 스타일 그라디언트) */
.exb-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 24px 0;
    background: linear-gradient(135deg, var(--primary-color, #6c63ff) 0%, var(--primary-light, #8a84ff) 100%);
    border-radius: 10px;
    padding: 30px;
    color: #fff;
    flex-wrap: wrap;
    gap: 16px;
}
.exb-hero-left h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}
.exb-hero-left .subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.92;
    color: #fff;
}
.exb-hero-right {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.exb-hero-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}
.exb-hero-btn:hover { background: rgba(255,255,255,0.32); color: #fff; }

/* 안내 인트로 */
.exb-intro {
    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    color: #444;
    font-size: 14px;
    line-height: 1.7;
}
.exb-intro strong { color: #6c63ff; }
.exb-intro ul { margin: 10px 0 0; padding-left: 18px; }
.exb-intro ul li { margin-bottom: 4px; }

/* 툴바 */
.exb-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.exb-header h1 { font-size: 26px; font-weight: 700; color: #222; margin: 0; }
.exb-header .subtitle { color: #777; font-size: 14px; margin-top: 4px; }

@media (max-width: 640px) {
    .exb-hero { margin: 20px 0 16px; padding: 22px 20px; }
    .exb-hero-left h1 { font-size: 22px; }
    .exb-hero-left .subtitle { font-size: 13px; }
    .exb-intro { padding: 16px 18px; font-size: 13px; }
}

.exb-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.exb-search { display: flex; gap: 8px; }
.exb-search input {
    width: 240px; padding: 10px 14px;
    border: 1px solid #dde1e7; border-radius: 8px;
    font-size: 14px; outline: none;
}
.exb-search input:focus { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }

.exb-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .15s; text-decoration: none;
}
.exb-btn-primary { background: #6c63ff; color: #fff; }
.exb-btn-primary:hover { opacity: .88; color: #fff; }
.exb-btn-secondary { background: #f0f2f5; color: #555; }
.exb-btn-secondary:hover { background: #e4e7ec; color: #333; }
.exb-btn-danger  { background: #ef4444; color: #fff; }
.exb-btn-ghost   { background: transparent; color: #6c63ff; }

/* ==== 목록 (카드 그리드) ==== */
.exb-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .exb-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .exb-list { grid-template-columns: 1fr; } }

.exb-card {
    background: #fff; border: 1px solid #eef0f3; border-radius: 12px;
    overflow: hidden; transition: transform .15s, box-shadow .15s;
    display: flex; flex-direction: column;
}
.exb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.exb-card a.exb-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.exb-card .thumb {
    width: 100%; height: 180px; background: #f6f7f9;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    color: #c4c9d1; font-size: 28px;
}
.exb-card .body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.exb-card .title {
    font-weight: 700; font-size: 16px; color: #222;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.4; min-height: 44px;
}
.exb-card .excerpt {
    font-size: 13px; color: #666; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.exb-card .meta {
    margin-top: auto; display: flex; align-items: center;
    justify-content: space-between; font-size: 12px; color: #999;
    padding-top: 10px; border-top: 1px solid #f0f0f0;
}
.exb-card .meta .author { display: flex; align-items: center; gap: 6px; }
.exb-card .meta .stats { display: flex; gap: 10px; }
.exb-card .meta .stats i { margin-right: 2px; }

/* 빈 상태 */
.exb-empty {
    text-align: center; padding: 80px 20px; color: #999;
    background: #f9fafb; border-radius: 12px;
}
.exb-empty i { font-size: 42px; margin-bottom: 10px; }

/* 페이징 */
.exb-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.exb-pagination a, .exb-pagination span {
    padding: 8px 12px; border-radius: 6px;
    color: #555; text-decoration: none; font-size: 14px;
    border: 1px solid #e5e7eb; background: #fff;
}
.exb-pagination a:hover { background: #f3f4f6; }
.exb-pagination .current { background: #6c63ff; color: #fff; border-color: #6c63ff; }

/* ==== 상세 ==== */
.exb-detail { background: #fff; border: 1px solid #eef0f3; border-radius: 12px; padding: 32px; }
.exb-detail-title { font-size: 26px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; }
.exb-detail-meta {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; padding-bottom: 18px;
    border-bottom: 1px solid #eef0f3; margin-bottom: 24px;
}
.exb-detail-meta .author { display: flex; align-items: center; gap: 10px; }
.exb-detail-meta .author-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #e4e7ec; object-fit: cover;
}
.exb-detail-meta .author-info .name { font-weight: 600; font-size: 14px; color: #333; }
.exb-detail-meta .author-info .date { font-size: 12px; color: #999; }
.exb-detail-meta .stats { display: flex; gap: 16px; font-size: 13px; color: #777; }
.exb-detail-content {
    min-height: 200px; font-size: 15px; line-height: 1.75; color: #333;
    word-break: break-word;
}
.exb-detail-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.exb-detail-content p { margin: 0 0 12px; }

/* 액션 (좋아요/공유) */
.exb-actions {
    display: flex; justify-content: center; gap: 10px;
    margin: 32px 0 24px;
}
.exb-action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 999px;
    border: 1px solid #e5e7eb; background: #fff; color: #555;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .15s;
}
.exb-action-btn:hover { background: #f9fafb; }
.exb-action-btn.liked { background: #ffecef; border-color: #ff4d6d; color: #ff4d6d; }
.exb-action-btn i { font-size: 16px; }

/* 댓글 섹션 */
.exb-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid #eef0f3; }
.exb-comments h3 { font-size: 18px; margin: 0 0 16px; color: #333; }

.exb-comment-form { display: flex; gap: 10px; margin-bottom: 24px; }
.exb-comment-form textarea {
    flex: 1; min-height: 72px; padding: 12px 14px;
    border: 1px solid #dde1e7; border-radius: 8px;
    font-size: 14px; font-family: inherit; resize: vertical; outline: none;
}
.exb-comment-form textarea:focus { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.exb-comment-form button { align-self: flex-end; }
.exb-comment-login {
    padding: 18px; text-align: center; color: #666;
    background: #f9fafb; border-radius: 10px; margin-bottom: 20px;
}

.exb-comment-list { list-style: none; padding: 0; margin: 0; }
.exb-comment-item {
    display: flex; gap: 12px; padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.exb-comment-item:last-child { border-bottom: none; }
.exb-comment-item.reply { margin: 6px 0 6px 50px; padding: 12px 16px; background: #fafbfc; border-radius: 8px; }
.exb-comment-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #e4e7ec; flex-shrink: 0; object-fit: cover;
}
.exb-comment-body { flex: 1; }
.exb-comment-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.exb-comment-head .name { font-weight: 600; font-size: 13px; color: #333; }
.exb-comment-head .date { font-size: 12px; color: #999; }
.exb-comment-text {
    font-size: 14px; line-height: 1.55; color: #333;
    white-space: pre-wrap; word-break: break-word;
}
.exb-comment-actions {
    display: flex; gap: 12px; margin-top: 6px; font-size: 12px;
}
.exb-comment-actions button {
    background: none; border: none; padding: 0;
    color: #999; cursor: pointer; font-size: 12px;
}
.exb-comment-actions button:hover { color: #6c63ff; }

/* ==== 작성/수정 ==== */
.exb-form-section { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.exb-form-section label { font-size: 14px; font-weight: 600; color: #444; }
.exb-form-section input[type=text] {
    padding: 12px 14px; border: 1px solid #dde1e7; border-radius: 8px;
    font-size: 15px; outline: none;
}
.exb-form-section input[type=text]:focus { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,.1); }
.exb-form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; }

/* 공유 모달 */
.exb-share-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: none; align-items: center; justify-content: center;
    z-index: 9999;
}
.exb-share-modal.active { display: flex; }
.exb-share-box {
    background: #fff; padding: 24px; border-radius: 12px;
    width: 340px; max-width: 92vw;
}
.exb-share-box h4 { margin: 0 0 14px; font-size: 16px; }
.exb-share-box input {
    width: 100%; padding: 10px 12px; border: 1px solid #dde1e7;
    border-radius: 6px; font-size: 13px; margin-bottom: 10px; box-sizing: border-box;
}
.exb-share-list { display: flex; justify-content: space-around; margin-bottom: 10px; }
.exb-share-list button {
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid #e5e7eb; background: #fff; cursor: pointer;
    font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.exb-share-list button:hover { background: #f9fafb; }
