/* From list.skin.php */
/* 🎨 Premium Board List Styles */
:root {
    --primary-color: #ff5c00;
    --primary-gradient: linear-gradient(135deg, #ff8a00 0%, #ff3d00 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06);
    --hover-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.12);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-board-wrap {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    margin-bottom: 40px;
    transition: var(--transition);
}
.premium-board-wrap:hover {
    box-shadow: var(--hover-shadow);
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}

.premium-table th {
    background-color: #e2e8f0;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 22px 15px;
    border-bottom: 2px solid #cbd5e1;
    letter-spacing: 0.5px;
}

.premium-table td {
    padding: 20px 15px;
    color: #334155;
    font-size: 0.98rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: var(--transition);
}

.premium-table tbody tr {
    transition: var(--transition);
    background-color: #ffffff;
}

/* 호버 시 부드러운 리프트업 애니메이션 및 그림자 입체감 제공 */
.premium-table tbody tr:hover {
    background-color: #fcfdfe;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.1);
}

/* 공지사항 행 럭셔리 스타일 */
.premium-table tbody tr.notice-tr {
    background-color: rgba(255, 92, 0, 0.02);
    border-left: 4px solid var(--primary-color);
}
.premium-table tbody tr.notice-tr:hover {
    background-color: rgba(255, 92, 0, 0.04);
}

.notice-badge {
    background-color: rgba(255, 92, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 92, 0, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 92, 0, 0.05);
}

.title-cell {
    text-align: left !important;
}

.post-title-link {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.premium-table tbody tr:hover .post-title-link {
    color: var(--primary-color);
}
.premium-table tbody tr.notice-tr .post-title-link {
    color: #b91c1c;
    font-weight: 500;
}
.premium-table tbody tr.notice-tr:hover .post-title-link {
    color: var(--primary-color);
}

.comment-badge {
    /* 숫자만 — 테두리도 바탕도 없다. 알약 꼴이면 카테고리 표와
       구분이 안 된다(색까지 같았다). */
    display: inline-block;
    margin-left: 6px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    vertical-align: middle;
}

.file-icon {
    color: #94a3b8;
    margin-left: 8px;
    font-size: 0.95rem;
    vertical-align: middle;
    transition: var(--transition);
}
.post-title-link:hover ~ .file-icon,
.file-icon:hover {
    color: var(--primary-color);
    transform: scale(1.15);
}

.btn-premium-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    margin-right: 8px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-premium-edit:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 92, 0, 0.1);
}

/* Pagination & Actions */
.board-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.premium-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.premium-pagination.mobile-only {
    display: none;
}

.premium-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.premium-pagination a:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.premium-pagination a.active {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 92, 0, 0.3);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(255, 92, 0, 0.25);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 92, 0, 0.4);
    color: #ffffff;
}

/* Search Form (Rounded & Focused Shadow) */
.premium-search {
    display: flex;
    justify-content: center;
}
.premium-search form {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.03);
    transition: var(--transition);
}
.premium-search form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px -10px rgba(255, 92, 0, 0.15);
}
.premium-search select {
    border: none;
    background: transparent;
    padding: 10px 15px 10px 25px;
    color: #475569;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.premium-search input {
    border: none;
    background: transparent;
    padding: 10px 15px;
    width: 280px;
    outline: none;
    border-left: 1px solid #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
}
.premium-search button {
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.premium-search button:hover {
    background: #0f172a;
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .premium-table th { padding: 18px 10px; }
    .premium-table td { padding: 16px 10px; }
    .premium-search input { width: 200px; }
}

@media (max-width: 768px) {
    .premium-table th:nth-child(3),
    .premium-table td:nth-child(3),
    .premium-table th:nth-child(5),
    .premium-table td:nth-child(5) {
        display: none;
    }
    
    .section-padding { padding: 40px 0; }
    .container { padding: 0 15px; width: 100%; max-width: 100%; }
    
    .premium-board-wrap {
        border-radius: 20px;
        box-shadow: var(--card-shadow);
        border: 1px solid rgba(226, 232, 240, 0.8);
        margin-bottom: 30px;
        overflow: hidden;
    }
    
    .premium-table th { padding: 16px 10px; font-size: 0.9rem; }
    .premium-table td { padding: 15px 10px; font-size: 0.92rem; }
    
    .board-actions { 
        flex-direction: column; 
        align-items: stretch;
        gap: 25px;
    }
    
    .premium-search {
        order: 2;
        width: 100%;
    }
    .premium-search form {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
    .premium-search select {
        padding: 10px 5px 10px 10px;
        font-size: 0.9rem;
    }
    .premium-search input {
        flex-grow: 1;
        width: auto;
        min-width: 0;
        font-size: 0.92rem;
    }
    .premium-search button {
        padding: 10px 15px;
        font-size: 0.92rem;
    }
    
    .premium-pagination.pc-only {
        display: none;
    }
    .premium-pagination.mobile-only {
        display: flex;
        gap: 6px;
        order: 1;
        justify-content: center;
    }
    .premium-pagination.mobile-only a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0.9rem;
    }
    
    .board-actions div:last-child {
        order: 3;
        text-align: center !important;
    }
    .btn-primary-gradient {
        width: 100%;
        justify-content: center;
    }
}

/* From view.skin.php */
/* 🎨 Premium View Styles */
.view-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
}

.view-header-area {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #f1f5f9;
}

.view-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.view-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #64748b;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.meta-item i {
    color: #94a3b8;
}

.view-body {
    padding: 40px;
}





/* YouTube Embed Box */
.youtube-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    margin: 30px 0;
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* External Link Banner */
.external-link-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #eff6ff, #f8fafc);
    border-left: 4px solid #3b82f6;
    padding: 20px 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-decoration: none;
    color: #1e293b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.external-link-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59,130,246,0.1);
}
.external-link-info strong {
    display: block;
    font-size: 1.1rem;
    color: #1d4ed8;
    margin-bottom: 4px;
}
.external-link-info span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Attachments */
.attachments-area {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #cbd5e1;
}
.attachments-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.attachment-item:hover {
    background: #fff;
    border-color: #3b82f6;
    color: #1d4ed8;
    transform: translateX(5px);
}

/* Action Buttons */
.view-actions {
    background: #f8fafc;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-modern {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-list {
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.btn-list:hover {
    background: #f1f5f9;
    color: #1e293b;
}
.btn-primary-action {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    box-shadow: 0 4px 10px rgba(59,130,246,0.3);
}
.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59,130,246,0.4);
}
.btn-danger-action {
    background: #fff;
    color: #ef4444;
    border: 1px solid #fecaca;
}
.btn-danger-action:hover {
    background: #fef2f2;
}

@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .container { padding: 0; width: 100%; max-width: 100%; }
    .view-wrapper {
        border-radius: 0;
        box-shadow: none;
    }
    .view-header-area, .view-body, .view-actions { padding: 25px 15px; }
    .view-title { font-size: 1.8rem; }
    .view-actions { flex-direction: column; gap: 15px; }
    .view-actions .action-group { width: 100%; display: flex; justify-content: space-between; }
    .prev-next-area { padding: 15px 15px !important; }
}

/* From write.skin.php */
/* 🎨 Premium Write Form Styles */
.write-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    padding: 40px;
}
.write-group {
    margin-bottom: 28px;
}
.write-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 1.05rem;
}
.write-input {
    width: 100%;
    padding: 16px 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.3s ease;
}
.write-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}
.write-input::placeholder {
    color: #94a3b8;
}

/* Callout Boxes (YouTube & Link) */
.feature-box {
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 28px;
    transition: transform 0.2s ease;
}
.feature-box:hover {
    transform: translateY(-2px);
}
.feature-box-link {
    background: linear-gradient(to right, #f1f5f9, #f8fafc);
    border-left: 5px solid #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.feature-box-youtube {
    background: linear-gradient(to right, #fef2f2, #fff5f5);
    border-left: 5px solid #ef4444;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.feature-box-link .feature-title { color: #1e40af; }
.feature-box-youtube .feature-title { color: #991b1b; }

/* Custom Checkboxes */
.custom-checkbox-wrap {
    display: flex;
    gap: 24px;
    margin-top: 14px;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #475569;
    user-select: none;
}
.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* File Upload Area */
.file-upload-area {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.file-upload-area:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}
.file-upload-area input[type="file"] {
    display: block;
    margin: 0 auto;
    font-size: 1rem;
    color: #64748b;
}

/* Buttons */
.btn-submit {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.5);
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(59, 130, 246, 0.6);
}
.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .write-wrapper { padding: 20px; }
    .custom-checkbox-wrap { flex-direction: column; gap: 12px; }
}

@media (max-width: 768px) {
    .section-padding { padding-bottom: 100px !important; }
}
