/* ===================================
   Webzine Board Skin - Marketplace Style
   마켓플레이스/웹진 레이아웃
   =================================== */

.webzine-market-wrap {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #e6edf3;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* 메인 컨테이너 - 2컬럼 레이아웃 */
.market-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    transition: all 0.3s ease;
}

/* ===================================
   메인 영역
   =================================== */
.market-main {
    min-width: 0;
}

/* 검색 및 필터 컨트롤 */
.market-controls {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-select {
    width: 150px;
    padding: 12px 16px;
    border: 2px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.search-select:focus {
    outline: none;
    border-color: #1f6feb;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #30363d;
    background: #0d1117;
    color: #e6edf3;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #1f6feb;
}

.search-input::placeholder {
    color: #7d8590;
}

.btn-search {
    padding: 12px 24px;
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    transform: translateY(-1px);
}

/* 필터 요약 */
.filter-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-tag a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    font-weight: bold;
    transition: opacity 0.2s;
}

.filter-tag a:hover {
    opacity: 1;
}

.result-info {
    color: #7d8590;
    font-size: 14px;
}

.result-info strong {
    color: #58a6ff;
}

/* 관리자 컨트롤 */
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

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

.btn-admin {
    padding: 8px 16px;
    background: #21262d;
    color: #e6edf3;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-admin:hover {
    background: #30363d;
    border-color: #1f6feb;
}

/* 체크박스 스타일 */
.chk-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e6edf3;
    font-size: 14px;
}

.chk-label input[type="checkbox"] {
    display: none;
}

.chk-icon {
    width: 18px;
    height: 18px;
    border: 2px solid #30363d;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    background: #0d1117;
}

.chk-label:hover .chk-icon {
    border-color: #1f6feb;
}

.chk-label input[type="checkbox"]:checked + .chk-icon {
    background: #1f6feb;
    border-color: #1f6feb;
}

.chk-label input[type="checkbox"]:checked + .chk-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* ===================================
   웹진 리스트
   =================================== */
.market-list {
    position: relative;
}

.market-webzine {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

/* 웹진 아이템 - 좌측 이미지 + 우측 컨텐츠 */
.webzine-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 240px;
    position: relative;
}

.webzine-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(31, 111, 235, 0.2);
    border-color: #1f6feb;
}

.webzine-item.notice {
    border-left: 4px solid #f0c020;
}

/* 체크박스 */
.item-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

/* 이미지 영역 */
.webzine-image {
    position: relative;
    overflow: hidden;
    background: #21262d;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    aspect-ratio: 4/3;
}

.webzine-image a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.webzine-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.webzine-item:hover .webzine-image img {
    transform: scale(1.05);
}

.notice-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4a50a, #f0c020);
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.default-avatar.color-1 { background: linear-gradient(135deg, #1f6feb, #388bfd); }
.default-avatar.color-2 { background: linear-gradient(135deg, #238636, #3fb950); }
.default-avatar.color-3 { background: linear-gradient(135deg, #da3633, #f85149); }
.default-avatar.color-4 { background: linear-gradient(135deg, #8957e5, #a371f7); }
.default-avatar.color-5 { background: linear-gradient(135deg, #d4a50a, #f0c020); color: #1a1a1a; }
.default-avatar.color-6 { background: linear-gradient(135deg, #bf4b8a, #e85aad); }
.default-avatar.color-7 { background: linear-gradient(135deg, #0d8050, #2ea043); }
.default-avatar.color-8 { background: linear-gradient(135deg, #6e40c9, #8b5cf6); }

/* 배지 */
.badge-new,
.badge-hot {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 5;
}

.badge-new {
    background: #da3633;
    color: white;
}

.badge-hot {
    background: #f85149;
    color: white;
    right: 60px;
}

/* 컨텐츠 영역 */
.webzine-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webzine-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-categories {
    display: flex;
    gap: 6px;
}

.category-tag {
    background: #21262d;
    color: #58a6ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #30363d;
    transition: all 0.2s;
}

.category-tag:hover {
    background: #1f6feb;
    color: white;
    border-color: #1f6feb;
}

.post-meta-small {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #7d8590;
}

.post-meta-small i {
    margin-right: 4px;
}

/* 제목 */
.webzine-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.webzine-title a {
    color: #f0f6fc;
    text-decoration: none;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.webzine-title a:hover {
    color: #58a6ff;
}

.webzine-title i.fa-lock {
    color: #7d8590;
    margin-right: 6px;
}

.comment-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    background: #1f6feb;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 11px;
    margin-left: 8px;
}

/* 본문 미리보기 */
.webzine-excerpt {
    flex: 1;
}

.webzine-excerpt p {
    margin: 0;
    color: #7d8590;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 푸터 */
.webzine-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #30363d;
    margin-top: auto;
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #30363d;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-avatar span {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 600;
    color: #f0f6fc;
    font-size: 14px;
}

.post-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #7d8590;
}

.stat-item i {
    font-size: 12px;
}

/* 빈 목록 */
.market-empty {
    text-align: center;
    padding: 80px 20px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.empty-icon {
    font-size: 64px;
    color: #30363d;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 20px;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 8px;
}

.empty-subtext {
    color: #7d8590;
    font-size: 14px;
}

/* 하단 액션 버튼 */
.board-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-write:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(35, 134, 54, 0.4);
}

/* ===================================
   사이드바
   =================================== */
.market-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 16px;
}

.btn-admin-link,
.btn-write-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-admin-link {
    background: #21262d;
    color: #e6edf3;
    border: 1px solid #30363d;
}

.btn-admin-link:hover {
    background: #30363d;
    border-color: #1f6feb;
}

.btn-write-sidebar {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
}

.btn-write-sidebar:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    transform: translateY(-1px);
}

/* 필터 섹션 */
.filter-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.filter-section h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
    border-bottom: 1px solid #30363d;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section h3 i {
    color: #7d8590;
}

/* 카테고리 필터 */
.category-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    color: #e6edf3;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.category-item:hover {
    background: #21262d;
    border-color: #30363d;
}

.category-item.active {
    background: linear-gradient(135deg, #1f6feb22, #58a6ff22);
    border-color: #1f6feb;
    color: #58a6ff;
}

.category-name {
    font-size: 14px;
    font-weight: 500;
}

/* 게시판 정보 */
.board-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #21262d;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #7d8590;
    font-size: 13px;
}

.info-value {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 14px;
}

/* 정렬 옵션 */
.sort-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #e6edf3;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
}

.sort-item:hover {
    background: #21262d;
    border-color: #30363d;
}

.sort-item.active {
    background: linear-gradient(135deg, #1f6feb22, #58a6ff22);
    border-color: #1f6feb;
    color: #58a6ff;
}

.sort-item i {
    width: 16px;
    text-align: center;
    color: #7d8590;
}

.sort-item.active i {
    color: #58a6ff;
}

/* ===================================
   페이지네이션
   =================================== */
.pg_wrap {
    text-align: center;
    margin: 30px 0;
}

.pg {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.pg a,
.pg span,
.pg strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pg a:hover {
    background: #21262d;
    border-color: #1f6feb;
    color: #58a6ff;
}

.pg strong {
    background: linear-gradient(135deg, #1f6feb, #388bfd);
    border-color: #1f6feb;
    color: white;
}

.pg .pg_prev,
.pg .pg_next {
    font-weight: 600;
}

/* ===================================
   큰 화면에서 사이드바 오른쪽 고정
   =================================== */
@media (min-width: 1700px) {
    /* 그누보드 부모 컨테이너 오버라이드 */
    #wrapper,
    #container,
    .container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #bo_webzine.webzine-market-wrap {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #bo_webzine.webzine-market-wrap .market-container {
        display: block !important;
        grid-template-columns: none !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #bo_webzine.webzine-market-wrap .market-container .market-main {
        display: block !important;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #bo_webzine.webzine-market-wrap .market-container .market-sidebar {
        position: fixed !important;
        right: 0 !important;
        top: 80px !important;
        height: calc(100vh - 80px) !important;
        width: 320px !important;
        overflow-y: auto !important;
        z-index: 600 !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: 1px solid #30363d;
        background: #161b22;
        padding: 20px;
    }

    #bo_webzine .market-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    #bo_webzine .market-sidebar::-webkit-scrollbar-track {
        background: #0d1117;
        border-radius: 3px;
    }

    #bo_webzine .market-sidebar::-webkit-scrollbar-thumb {
        background: #30363d;
        border-radius: 3px;
    }

    #bo_webzine .market-sidebar::-webkit-scrollbar-thumb:hover {
        background: #1f6feb;
    }

    #bo_webzine .market-sidebar .filter-section {
        border: none;
        border-bottom: 1px solid #30363d;
        border-radius: 0;
        margin-bottom: 0;
        padding: 20px 0;
    }

    #bo_webzine .market-sidebar .filter-section:last-child {
        border-bottom: none;
    }

    #bo_webzine .market-sidebar .sidebar-section {
        margin-bottom: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid #30363d;
    }
}

/* ===================================
   반응형
   =================================== */
@media (max-width: 1024px) {
    .market-container {
        grid-template-columns: 1fr 260px;
        gap: 20px;
    }

    .webzine-item {
        grid-template-columns: 280px 1fr;
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .webzine-market-wrap {
        padding: 12px;
    }

    .market-container {
        grid-template-columns: 1fr;
    }

    .market-sidebar {
        position: static;
        order: -1;
    }

    .webzine-item {
        grid-template-columns: 1fr;
    }

    .webzine-image {
        height: 200px;
    }

    .webzine-content {
        padding: 20px;
    }

    .webzine-title {
        font-size: 18px;
    }

    .webzine-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .post-stats {
        width: 100%;
        justify-content: flex-end;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-select {
        width: 100%;
    }

    .admin-controls {
        flex-direction: column;
        gap: 12px;
    }

    .admin-buttons {
        width: 100%;
        justify-content: center;
    }

    /* 사이드바 필터 가로 정렬 */
    .filter-section {
        padding: 16px;
    }

    .category-filter,
    .sort-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .category-item,
    .sort-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ===================================
   게시글 보기 (view.skin.php)
   =================================== */
#bo_v {
    width: 100%;
    padding: 24px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
}

.bo_v_header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}

.bo_v_cate {
    display: inline-block;
    padding: 4px 12px;
    background: #21262d;
    color: #58a6ff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid #30363d;
}

.bo_v_title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1.4;
}

.bo_v_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}

.info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-left .author-profile {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #21262d;
    border: 2px solid #30363d;
}

.info-left .author-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-left .author-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-left .author-name {
    font-size: 15px;
    font-weight: 600;
    color: #f0f6fc;
}

.info-left .author-name .ip {
    font-size: 12px;
    color: #7d8590;
    font-weight: normal;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #7d8590;
}

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

.post-meta a {
    color: #7d8590;
    text-decoration: none;
}

.post-meta a:hover {
    color: #58a6ff;
}

.info-right .btn_bo_user {
    gap: 6px;
}

/* 본문 영역 */
#bo_v_atc {
    margin-bottom: 24px;
}

.bo_v_share {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btn-scrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-scrap:hover {
    background: #30363d;
    color: #58a6ff;
    border-color: #1f6feb;
}

#bo_v_img {
    margin-bottom: 24px;
}

#bo_v_img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#bo_v_con {
    min-height: 200px;
    padding: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #e6edf3;
    word-break: break-word;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
}

#bo_v_con a {
    color: #58a6ff;
}

.bo_v_signature {
    margin-top: 20px;
    padding: 16px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    font-size: 13px;
    color: #7d8590;
}

/* 추천/비추천 */
#bo_v_act {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #30363d;
}

.bo_v_good,
.bo_v_nogood {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 32px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 12px;
    color: #e6edf3;
    text-decoration: none;
    transition: all 0.2s;
}

.bo_v_good:hover {
    border-color: #238636;
    color: #3fb950;
}

.bo_v_nogood:hover {
    border-color: #da3633;
    color: #f85149;
}

.bo_v_good i,
.bo_v_nogood i {
    font-size: 24px;
}

.bo_v_good strong,
.bo_v_nogood strong {
    font-size: 20px;
    font-weight: 700;
}

.bo_v_good span,
.bo_v_nogood span {
    font-size: 12px;
}

/* 첨부파일 / 관련링크 */
#bo_v_file,
#bo_v_link {
    margin-top: 24px;
    padding: 20px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 12px;
}

#bo_v_file h3,
#bo_v_link h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #f0f6fc;
}

#bo_v_file ul,
#bo_v_link ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#bo_v_file li,
#bo_v_link li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #30363d;
}

#bo_v_file li:last-child,
#bo_v_link li:last-child {
    border-bottom: none;
}

#bo_v_file a,
#bo_v_link a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e6edf3;
    text-decoration: none;
    transition: color 0.2s;
}

#bo_v_file a:hover,
#bo_v_link a:hover {
    color: #58a6ff;
}

.file-name,
.link-url {
    color: #f0f6fc;
}

.file-size {
    color: #7d8590;
    font-size: 12px;
}

.file-info,
.link-info {
    color: #7d8590;
    font-size: 12px;
}

/* 이전글/다음글 */
.bo_v_nav {
    margin-top: 24px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #e6edf3;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-prev:hover,
.nav-next:hover {
    background: #30363d;
}

.nav-prev {
    border-bottom: 1px solid #30363d;
}

.nav-label {
    min-width: 80px;
    font-size: 13px;
    color: #7d8590;
}

.nav-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-date {
    font-size: 13px;
    color: #7d8590;
}

/* 버튼 아이콘 */
.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #30363d;
    color: #58a6ff;
    border-color: #1f6feb;
}

.btn_bo_user {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 더보기 드롭다운 메뉴 */
.opt-wrap {
    position: relative;
}

.more_opt {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px 0;
}

.more_opt li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #e6edf3;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.more_opt li a:hover {
    background: #21262d;
    color: #58a6ff;
}

/* ===================================
   글쓰기 (write.skin.php)
   =================================== */
#bo_w {
    width: 100%;
    padding: 24px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-sizing: border-box;
}

.write-title {
    font-size: 20px;
    font-weight: 700;
    color: #f0f6fc;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #30363d;
}

.write-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.write-row {
    margin-bottom: 20px;
}

.write-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
}

.write-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-field .write-label {
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1f6feb;
}

.form-input::placeholder {
    color: #7d8590;
}

/* 옵션 그룹 */
.options-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #e6edf3;
    transition: all 0.2s;
}

.option-item:hover {
    background: #30363d;
    border-color: #1f6feb;
}

.option-item input {
    display: none;
}

.option-item .chk-icon {
    width: 18px;
    height: 18px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.option-item input:checked + .chk-icon {
    background: #1f6feb;
    border-color: #1f6feb;
}

.option-item input:checked + .chk-icon::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* 제목 영역 */
.subject-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.subject-wrap .form-input {
    flex: 1;
    min-width: 300px;
}

/* 내용 영역 */
.content-wrap {
    position: relative;
}

/* 에디터 감싸는 흰색 wrapper */
.editor-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    border: 2px solid #30363d;
}

.editor-wrapper textarea,
.editor-wrapper iframe,
.editor-wrapper .note-editable,
.editor-wrapper .se2_inputarea,
.editor-wrapper .edui-body-container,
.editor-wrapper #wr_content {
    width: 100%;
    min-height: 350px;
    padding: 16px;
    background: #ffffff !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #222 !important;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

/* SmartEditor2 iframe 흰색 배경 */
iframe[src*="SmartEditor"],
iframe[src*="smarteditor"],
.editor-wrapper iframe {
    background-color: #ffffff !important;
}

.editor-wrapper textarea:focus {
    outline: none;
    border-color: #1f6feb;
}

.char-info {
    color: #7d8590;
    font-size: 12px;
    margin-bottom: 8px;
}

.char-info strong {
    color: #58a6ff;
}

.char-count {
    text-align: right;
    color: #7d8590;
    font-size: 12px;
    margin-top: 8px;
}

.char-count span {
    color: #58a6ff;
    font-weight: 600;
}

/* 파일 업로드 */
.file-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-file {
    width: 100%;
    padding: 12px 16px;
    background: #0d1117;
    border: 2px dashed #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-file:hover {
    border-color: #1f6feb;
    background: #161b22;
}

.form-file::file-selector-button {
    padding: 8px 16px;
    margin-right: 12px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    cursor: pointer;
    transition: all 0.2s;
}

.form-file::file-selector-button:hover {
    background: #30363d;
    color: #58a6ff;
}

.file-del {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 13px;
    cursor: pointer;
}

.file-del input {
    display: none;
}

.file-del .chk-icon {
    width: 16px;
    height: 16px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.file-del input:checked + .chk-icon {
    background: #da3633;
    border-color: #da3633;
}

.file-del input:checked + .chk-icon::after {
    content: '✓';
    color: white;
    font-size: 10px;
}

/* 캡차 */
.captcha-wrap {
    padding: 16px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
}

.captcha-wrap #captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.captcha-wrap #captcha legend {
    display: none;
}

.captcha-wrap #captcha_img {
    border-radius: 6px;
    height: 50px;
}

.captcha-wrap #captcha_key {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #e6edf3;
    font-size: 14px;
}

.captcha-wrap #captcha_key:focus {
    outline: none;
    border-color: #1f6feb;
}

.captcha-wrap #captcha button {
    padding: 10px 16px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-wrap #captcha button:hover {
    background: #30363d;
    color: #58a6ff;
}

/* 폼 액션 버튼 */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid #30363d;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: #21262d;
    border: 1px solid #30363d;
    color: #e6edf3;
}

.btn-cancel:hover {
    background: #30363d;
    color: #f85149;
    border-color: #da3633;
}

.btn-submit {
    background: linear-gradient(135deg, #238636, #2ea043);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
    transform: translateY(-1px);
}

/* 글쓰기 반응형 */
@media (max-width: 768px) {
    #bo_w {
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .subject-wrap {
        flex-direction: column;
    }

    .subject-wrap .form-input {
        min-width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .captcha-wrap #captcha {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-wrap #captcha_img {
        align-self: center;
    }

    .captcha-wrap #captcha button {
        width: 100%;
    }
}

/* ===================================
   댓글 (view_comment.skin.php)
   =================================== */
.comment-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #30363d;
}

.cmt-label {
    font-weight: 600;
    font-size: 16px;
    color: #f0f6fc;
}

.cmt-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #1f6feb;
    color: white;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
}

#bo_vc {
    margin-top: 24px;
    padding: 20px;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 12px;
}

#bo_vc_empty {
    text-align: center;
    padding: 40px 20px;
    color: #7d8590;
    font-size: 14px;
}

#bo_vc_empty i {
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #30363d;
    position: relative;
}

.comment-item:first-child {
    padding-top: 0;
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-item.is-reply {
    background: #0d1117;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
    border-bottom: none;
}

.comment-author {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #161b22;
    border: 2px solid #30363d;
}

.comment-author img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.comment-header .author-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0f6fc;
}

.comment-header .author-ip {
    font-size: 12px;
    color: #7d8590;
}

.comment-time {
    font-size: 12px;
    color: #7d8590;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #e6edf3;
    word-break: break-word;
}

.comment-content .secret-icon {
    color: #7d8590;
    margin-right: 6px;
}

/* 댓글 액션 버튼 */
.comment-actions {
    position: relative;
}

.btn-cmt-opt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #7d8590;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-cmt-opt:hover {
    background: #30363d;
    color: #e6edf3;
}

.cmt-opt-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
    list-style: none;
    margin: 4px 0 0 0;
    padding: 6px 0;
}

.cmt-opt-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #e6edf3;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.cmt-opt-menu li a:hover {
    background: #21262d;
    color: #58a6ff;
}

/* 댓글 입력 */
#bo_vc_w,
.bo_vc_w {
    margin-top: 20px;
}

.comment-form {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
}

.comment-guest-info {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #21262d;
    border-bottom: 1px solid #30363d;
}

.comment-guest-info .form-input {
    flex: 1;
    padding: 10px 14px;
}

.comment-textarea-wrap {
    position: relative;
}

.comment-textarea-wrap textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: #0d1117;
    border: none;
    color: #e6edf3;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.comment-textarea-wrap textarea:focus {
    outline: none;
}

.comment-textarea-wrap textarea::placeholder {
    color: #7d8590;
}

.char-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 12px;
    color: #7d8590;
}

.comment-form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #21262d;
    border-top: 1px solid #30363d;
}

.comment-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.secret-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #e6edf3;
    cursor: pointer;
}

.secret-option input {
    display: none;
}

.secret-option .chk-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #0d1117;
    border: 2px solid #30363d;
    border-radius: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.secret-option input:checked + .chk-icon {
    background: #1f6feb;
    border-color: #1f6feb;
}

.secret-option input:checked + .chk-icon::after {
    content: '✓';
    color: white;
    font-size: 10px;
    line-height: 1;
}

.btn-comment-submit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #238636, #2ea043);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-comment-submit:hover {
    background: linear-gradient(135deg, #2ea043, #3fb950);
}
