/* Board template styles (no Tailwind) - Light Theme Optimized */
.board-page {
    display: block;
}

.board-title {
    text-align: center;
    margin-bottom: 12px;
}

.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.board-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-toolbar-left i {
    width: 14px;
    height: 18px;
    color: #4b5563;
}

.board-ctoolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-ctoolbar-left svg {
    width: 20px;
    height: 20px;
    color: #3b67cf;
}

.board-ctoolbar h3 {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
}

.board-toolbar h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.board-alert {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.board-alert-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.board-alert-success {
    border-color: #a7f3d0;
    background: #f0fdf4;
    color: #166534;
}

.board-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 26px;
    justify-content: center;
}

.board-filter {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #999;
    color: #333;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 16px;
    background: #fff;
}

.board-filter.is-active {
    border-color: #666;
    font-weight: 600;
    color: #111;
    background: #f1f1f1;
}

.board-comment-card {
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0px 16px 12px 16px;
}

.board-wcard {
    border: #ddd solid 1px;
    border-radius: 10px;
    padding: 0px 20px;
    margin: 8px 0;
}

.board-card-header {
    margin-top: 46px !important;
    padding-bottom: 12px;
}

.board-card-header h3 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -1px;
    font-weight: 600;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.board-media {
    margin-bottom: 16px;
}

.board-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.board-video.is-shorts {
    padding-top: 177.78%;
    max-width: 420px;
}

.board-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.board-audio-list {
    display: grid;
    gap: 10px;
    margin: 32px auto;
}

.board-audio-item {
    align-items: center;
    gap: 8px;
}

.board-audio-item i {
    width: 16px;
    height: 16px;
    color: #3b67cf;
}

.board-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
}

.board-btn-primary {
    background: #3b67cf;
    border-color: #3b67cf;
    color: #fff;
}

.board-btn-danger {
    border-color: #fca5a5;
    color: #b91c1c;
}

.board-link {
    color: #6b7280;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
}

.board-link-danger {
    color: #f87171;
}

.board-muted {
    color: #6b7280;
    font-size: 13px;
}

.board-form {
    display: grid;
    gap: 12px;
}

.board-field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.board-label {
    color: #4b5563;
    font-size: 14px;
}

.board-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.board-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    padding: 10px 12px;
    font-size: 14px;
}

.board-input:focus {
    outline: none;
    border-color: #3b67cf;
}

.board-select {
    max-width: 360px;
}

.board-textarea {
    min-height: 180px;
}

.board-stack {
    display: grid;
    gap: 8px;
}

.board-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    min-height: 750px;
    background: #ffffff;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th,
.board-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.board-table thead {
    background: #f9fafb;
    color: #4b5563;
}

.board-row-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.board-row-title i {
    width: 16px;
    height: 16px;
    color: #3b67cf;
}

.board-empty {
    padding: 18px;
    color: #6b7280;
    text-align: center;
}

.board-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.board-page-link {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    color: #6b7280;
    background: #fff;
}

.board-page-link.is-active {
    border-color: #3b67cf;
    color: #3b67cf;
    font-weight: 600;
}

.board-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.board-thumb {
    aspect-ratio: 5 / 3;
    background: #f9fafb;
    overflow: hidden;
}

.board-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.board-thumb-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-thumb-play svg {
    width: 48px;
    height: 38px;
    color: #fff;
    background: rgba(220, 38, 38, 0.85);
    border-radius: 10px;
}

.board-card-body {
    padding: 16px 0px;
}

.board-card-body .board-card-title {
    font-size: 18px !important;
    line-height: 24px !important;
    letter-spacing: -1px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.board-card-desc {
    color: #6b7280;
    font-size: 15px;
    line-height: 22px;
    margin: 8px 0 8px 0;
    height: 66px;
    overflow: hidden;
}

.board-card-body img {
    max-width: 95%;
    height:auto;
    border-radius: 10px;
    margin:20px auto;
}

.board-card-meta {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.board-webzine {
    display: grid;
    gap: 16px;
}

.board-webzine-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.board-webzine-body {
    padding: 14px;
}

.board-faqs {
    display: grid;
    gap: 10px;
}

.board-faq {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    background: #ffffff;
}

.board-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.board-faq-body {
    margin-top: 10px;
    color: #4b5563;
}

.board-comment {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.board-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #6b7280;
}

.board-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-comment-body {
    flex: 1;
}

.board-comment-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.board-comment-name {
    color: #374151;
    font-size: 14px;
}

.board-comment-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.board-comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
}

.board-replies {
    margin-left: 52px;
    border-left: 2px solid #e5e7eb;
    padding-left: 12px;
}

.hidden {
    display: none;
}

.inline {
    display: inline;
}

.view_sns {border:#ddd solid 1px;width:100%;margin:20px 0;padding:16px 20px;border-radius: 8px;}
.view_sns .view_sns_tit {font-size: 20px;font-weight: 600;color: #444;}
.view_sns .view_sns_tit svg {width:18px;height: 18px;color:#999;margin-right: 6px !important;}
.view_sns .view_sns_icon {text-align: center !important; gap:8px;}
.view_sns .view_sns_icon img {width:36px;height: 36px;}

.pn_list {border-top:#aaa solid 1px;margin:16px 0;}
.pn_list .pl_list {display:flex;border-bottom:#ddd solid 1px;padding:6px 0px;}
.pn_list .pl_list .pl_sbj {font-size:15px !important;height: 20px;overflow: hidden;margin-top:4px;color: #111 !important;font-weight: 500;}
.pn_list .pl_list .pl_tit {width:85px !important;text-align:center;margin-right:6px;font-size:14px;color:#444;letter-spacing: -1px;border:#ddd solid 1px;padding:3px 6px;border-radius: 4px;}
.pn_list .pl_list .pl_tit svg {width: 14px;height: 14px;color:#aaa;}

.pn_list .nl_list {display:flex;border-bottom:#aaa solid 1px;padding:6px 0px;}
.pn_list .nl_list .nl_sbj {font-size:15px !important;height: 20px;overflow: hidden;margin-top:4px;color: #111 !important;font-weight: 500;}
.pn_list .nl_list .nl_tit {width:85px !important;text-align:center;margin-right:6px;font-size:14px;color:#444;letter-spacing: -1px;border:#ddd solid 1px;padding:3px 6px;border-radius: 4px;}
.pn_list .nl_list .nl_tit svg {width: 14px;height: 14px;color:#aaa;}

.board-related-products h4 {font-size:18px;font-weight: 700;margin:26px 0 12px 0;}
.board-related-grid {display:grid; grid-template-columns:repeat(2, 1fr); gap:16px;}
.board-related-item {border:1px solid #ddd; border-radius:8px; overflow:hidden; background:#fff; display:block;padding:0px;margin:0px;}
.board-related-item:hover{border:1px solid #555;}

.p_grid {text-align:center;padding:0px;}
.p_grid img {width:100%; height:100%; object-fit:cover;}
.p_text {padding:0px 12px;text-align: center;}
.p_text .p_tit {font-weight:600; color:#333; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.p_text .p_price {color:#f90000; font-size:15px; margin:4px 0 16px 0;}

@media(max-width:767px) {
    .board-related-item:nth-child(n+3) {
        display:none!important
    }
}
@media(min-width:768px) {
    .board-related-grid {
        grid-template-columns:repeat(4, 1fr)!important;
    }
}


@media (max-width: 900px) {
    .board-grid {
        grid-template-columns: 1fr;
    }

    .board-title h2 {
        font-size: 30px !important;
        padding: 12px 0;
        color: #333;
    }

    .board-title h2::before {
        left: 48%;
        width: 30px;
        background-color: #999;
    }

    .board-thumb {
        height: 200px;
    }

    .view_sns .view_sns_tit {font-size: 18px;font-weight: 600;color: #444;}
    .view_sns .view_sns_tit svg {width:16px;height: 16px;color:#999;margin-right: 6px !important;}    

    .pn_list {border-top:#aaa solid 1px;margin:16px 0;}
    .pn_list .pl_list {display:flex;border-bottom:#ddd solid 1px;padding:6px 0px;}
    .pn_list .pl_list .pl_sbj {width:82% !important;font-size:15px !important;height: 20px;overflow: hidden;margin-top:4px;}
    .pn_list .pl_list .pl_tit {width:18% !important;margin-right:6px;font-size:14px;color:#777;letter-spacing: -1px;border:#ddd solid 1px;padding:3px 6px;border-radius: 4px;}
    .pn_list .pl_list .pl_tit svg {width: 14px;height: 14px;color:#aaa;}

    .pn_list .nl_list {display:flex;border-bottom:#aaa solid 1px;padding:6px 0px;}
    .pn_list .nl_list .nl_sbj {width:82% !important;font-size:15px !important;height: 20px;overflow: hidden;margin-top:4px;}
    .pn_list .nl_list .nl_tit {width:18% !important;margin-right:6px;font-size:14px;color:#777;letter-spacing: -1px;border:#ddd solid 1px;padding:3px 6px;border-radius: 4px;}
    .pn_list .nl_list .nl_tit svg {width: 14px;height: 14px;color:#aaa;}

}

/* Custom Additions for UI Refinement */
.board-thumb {
    position: relative;
    overflow: hidden;
}

.board-thumb img {
    height: 192px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.board-thumb img.is-youtube {
    object-position: center;
    transform: scale(1.35);
}

.board-icon-youtube {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Ensure clicks pass through to the link */
}

.board-thumb-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-icon-youtube svg,
.board-thumb-play svg {
    width: 56px;
    height: 44px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.board-icon-audio {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
}

.board-icon-audio svg {
    width: 18px;
    height: 18px;
}

.board-footer-actions .board-pagination {
    margin-top: 0;
}

.board-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

/* Board Modern Gray Template Styles */
.board-page {
    display: block;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

.board-title h2 {
    font-size: 32px !important;
    font-weight: 800;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.board-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #999;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Modern Tables */
.board-table-wrap {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.board-table th {
    background: #f1f3f5;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 15px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.board-table tr:hover td {
    background: #f8f9fa;
}

/* Modern Buttons in Board */
.board-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
}

.board-btn-primary {
    background: #666;
    color: #fff;
    border: none;
}

.board-btn-primary:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pagination */
.board-pagination {
    margin-top: 50px;
    gap: 12px;
}

.board-page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    font-weight: 600;
    transition: var(--transition);
}

.board-page-link.is-active {
    background: #212529;
    color: #fff;
    border-color: #212529;
}

.board-page-link:hover:not(.is-active) {
    background: #f1f3f5;
}

/* Post View Refinement */
.board-card-header {
    border-bottom: 1px solid #999;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.board-card-header h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
}

.board-meta {
    font-size: 14px;
    color: #888;
}

.board-content h2 {
    position: relative;
    font-size: 22px !important;
    font-weight: 600;
    letter-spacing: -1px;
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #333;
}

.board-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 4px;
    height: 36%;
    background-color: #999;
}

.board-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 26px 0 32px 0;
}

.board-actions.center {
    justify-content: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .board-page {
        display: block;
        background: #fff;
        padding: 15px;
        margin-top: 20px;
    }    

    .board-table th:nth-child(3),
    .board-table td:nth-child(3) {
        display: none; /* Hide date on small mobile lists */
    }

    .board-card-header h3 {
        font-size: 25px;
        font-weight: 600;
        line-height: 30px;
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .board-content h2 {
        position: relative;
        font-size: 22px !important;
        font-weight: 600;
        letter-spacing: -1px;
        padding: 10px 14px;
        line-height: 26px !important;
        margin-bottom: 16px;
        color: #333;
    }

    .board-content h2::before {
        content: '';
        position: absolute;
        left: 0;
        top: 14px;
        width: 4px;
        height: 28%;
        background-color: #999;
    }    
}

/* 기존 첨부 / 썸네일 (글쓰기) */
.board-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}
.board-attach-list {
    list-style: none;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}
.board-attach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}
.board-attach-item:last-child {
    border-bottom: none;
}
.board-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.board-attach-delete {
    color: #dc2626;
    font-size: 13px;
}
.board-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}
.board-badge-thumb {
    background: #fbbf24;
    color: #1f2937;
}
.board-badge-audio {
    background: #3b67cf;
    color: #fff;
}
.board-attach-name {
    flex: 1;
    min-width: 0;
    color: #374151;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
}
.board-attach-name:hover {
    color: #111;
}

/* 매거진 전용 글쓰기 */
.board-required { color: #dc2626; }
.board-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.board-inline-group { display: flex; gap: 8px; align-items: center; }
.board-inline-group .board-input { flex: 1; }
.board-input-color { width: 56px; height: 38px; padding: 2px; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; background: #fff; }
.board-btn-sm { padding: 6px 12px; font-size: 13px; }
.board-btn-success { background: #22c55e; color: #fff; border: none; }
.board-btn-success:hover { background: #16a34a; }
.board-card-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.board-magazine-item { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #f9fafb; }
.board-magazine-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.board-magazine-item-body .board-field { margin-bottom: 12px; }
.board-magazine-preview { max-width: 280px; height: auto; border-radius: 8px; border: 1px solid #e5e7eb; margin-top: 8px; display: block; }

