@charset "utf-8";

/* Toss Style Voucher Board Skin */

.v-board-container {
    margin-bottom: 50px;
}

/* List Page */
.mw-board-head {
    margin-top: 48px;
    margin-bottom: 32px;
}

.mw-board-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.v-card-list {
    display: grid;
    gap: 24px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

/* PC: 3 x 5 */
@media (min-width: 992px) {
    .v-card-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 columns */
@media (max-width: 991px) and (min-width: 641px) {
    .v-card-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column (usually 1 is cleaner for Toss style on mobile) */
@media (max-width: 640px) {
    .v-card-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.v-card-item {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.v-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.v-card-header {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    position: relative;
    color: #fff;
    border-bottom: 0;
}

/* Gradient variations (Modern & Vibrant) */
.v-bg-0 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

/* Blue & Indigo */
.v-bg-1 {
    background: linear-gradient(135deg, #e3dc5b 0%, #e9800a 100%);
}

/* Rose & Red */
.v-bg-2 {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

/* Mint & Green */
.v-bg-3 {
    background: linear-gradient(135deg, #f093fb 0%, #dd2c44 100%);
}

/* Pink & Coral */
.v-bg-4 {
    background: linear-gradient(135deg, #4facfe 0%, #0049fe 100%);
}

/* Sky Blue & Cyan */

.v-badge {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.2;
    word-break: keep-all;
    max-width: 90%;
}

.v-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.v-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.v-card-content {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
}

.v-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Fix spacing for pagination and buttons */
.mw-pagination:empty {
    display: none;
    margin: 0;
}

.v-board-container .mw-pagination {
    margin-top: 20px;
}


/* View Page */
.v-view-container {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    margin: 30px 0;
}

.v-view-container .v-badge br {
    display: none;
}

@media (max-width: 768px) {
    .v-view-container {
        padding: 24px;
    }
}

.v-view-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.v-view-top-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.v-view-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.v-view-date {
    color: var(--text-muted);
    font-size: 14px;
}

.v-view-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    word-break: keep-all;
}

.v-view-subtitle {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
    font-weight: 600;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .v-view-title {
        font-size: 24px;
    }
}

.v-view-content {
    min-height: 300px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-sub);
    word-break: break-all;
}

.v-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.v-view-actions {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.v-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    text-decoration: none !important;
    cursor: pointer;
    border: none;
}

.v-btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.v-btn-primary:hover {
    background: #2272e5;
}

.v-btn-outline {
    background: var(--bg-color);
    color: var(--text-main);
}

.v-btn-outline:hover {
    background: var(--border-color);
}

.v-file-list {
    margin-top: 20px;
    background: var(--bg-color);
    padding: 16px;
    border-radius: var(--radius-md);
}

.v-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-sub);
    padding: 8px 0;
}

.v-file-item:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.v-file-item a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Write Page */
.v-write-container {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    margin: 30px 0;
}

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

.v-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.v-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background: var(--bg-color);
    font-size: 15px;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.v-input:focus {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

.v-textarea,
.v-write-container textarea,
#wr_content {
    min-height: 300px;
    resize: vertical;
    font-family: 'Pretendard', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 20px !important;
}

.v-write-submit {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

/* Common Board Buttons (Normal Skin Aligned) */
.mw-btn-write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
}

.mw-btn-write:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Search (Normal Skin Aligned) */
.mw-board-search-wrapper {
    margin: 30px 0;
    display: flex;
    justify-content: right;
}

.mw-board-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.mw-board-search-select {
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    outline: none;
}

.mw-board-search-input {
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 15px;
    width: 250px;
    outline: none;
}

.mw-board-search-btn {
    padding: 12px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.mw-board-search-btn:hover {
    filter: brightness(1.1);
}

/* Admin buttons (Normal Skin Aligned) */
.mw-view-writer-bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 20px 0;
}

.mw-view-btn-writer {
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

.mw-view-btn-writer:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* List Button (Normal Skin Aligned) */
.mw-view-actions {
    display: flex;
    justify-content: center;
    margin: 18px 0 80px;
}

.mw-btn-list {
    padding: 16px 48px;
    background: var(--text-main);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.mw-btn-list:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mw-board-search-input {
        width: 150px;
    }
}

/* Autosave Button Styling */
.btn_frmline {
    padding: 8px 16px;
    background: var(--text-main);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn_frmline:hover {
    filter: brightness(1.2);
}

/* Autosave Popover Styling */
#autosave_pop {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 1000;
    width: 400px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
}

@media (max-width: 480px) {
    #autosave_pop {
        width: calc(100vw - 40px);
    }
}

#autosave_pop strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 12px;
}

#autosave_pop ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

#autosave_pop li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#autosave_pop li:last-child {
    border-bottom: none;
}

#autosave_pop a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

#autosave_pop a:hover {
    color: var(--primary-color);
}

#autosave_pop span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

#autosave_pop .autosave_del {
    padding: 4px 8px;
    background: #fff0f1;
    color: #ff4d4f;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

#autosave_pop .autosave_del:hover {
    background: #ff4d4f;
    color: #fff;
}

#autosave_pop .autosave_close {
    width: 100%;
    margin-top: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 800;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

#autosave_pop .autosave_close:hover {
    background: var(--border-color);
}

/**기타**/
.v-view-cont {
    padding: 40px;
}

#bo_v_con ul {
    padding-left: 10px;
}

@media (max-width: 768px) {
    .v-view-cont {
        padding: 20px;
    }
}


/****바우처상세 스타일 (Premium Upgrade)****/
.vou-info-wrapper {
    color: var(--text-main);
    font-weight: 450;
    line-height: 1.8;
}

/* 제목 스타일 - 더 입체적이고 세련되게 */
.vou-info-wrapper h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 40px 0 20px 0;
    padding: 12px 20px;
    background: linear-gradient(to right, var(--primary-light) 0%, transparent 100%);
    border-left: 5px solid var(--primary-color);
    border-radius: 4px;
    position: relative;
    letter-spacing: -0.5px;
}

.vou-info-wrapper h2:first-child {
    margin-top: 0;
}

.vou-info-wrapper h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vou-info-wrapper h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 10px;
    opacity: 0.6;
}

.vou-info-wrapper p {
    font-size: 16px;
    color: var(--text-sub);
}

/* 강조 텍스트 - 형광펜 느낌 */
.vou-info-wrapper b,
.vou-info-wrapper strong {
    color: var(--text-main);
    font-weight: 700;
    background: linear-gradient(to top, rgba(49, 130, 246, 0.15) 40%, transparent 40%);
    padding: 0 2px;
}

/* 리스트 스타일 */
.vou-info-wrapper ul,
.vou-info-wrapper ol {
    margin: 20px 0;
    padding-left: 20px;
}

.vou-info-wrapper li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
    padding-left: 15px;
}

.vou-info-wrapper li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 테이블 스타일 (Premium Toss-inspired) */
.vou-info-table-wrapper {
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
}

.vou-info-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border-spacing: 0;
    border: 0;
}

.vou-info-wrapper table th {
    background: #f8fafc;
    color: #4a5568;
    font-weight: 700;
    padding: 18px 20px;
    font-size: 14px;
    border-bottom: 2px solid #edf2f7;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.vou-info-wrapper table td {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    color: #2d3748;
    text-align: center;
    line-height: 1.5;
    transition: background 0.15s ease;
}

.vou-info-wrapper table tr:last-child td {
    border-bottom: none;
}

.vou-info-wrapper table tr:hover td {
    background: #fcfdfe;
}

/* 표 내부의 구분 느낌을 위한 첫 번째 열 스타일링 */
.vou-info-wrapper table td:first-child {
    font-weight: 600;
    color: #111;
    background: #fbfcfe;
}

/* 모바일 대응 */
@media screen and (max-width: 768px) {
    .vou-info-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .vou-info-table-wrapper table {
        min-width: 600px;
    }

    .vou-info-wrapper h2 {
        font-size: 19px;
        padding: 10px 15px;
    }
}