﻿/* From list.skin.php */
/* 📰 News Board List Styles */
.news-board-wrap { margin-bottom: 40px; }

/* Top Headline */
.top-headline {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    margin-bottom: 40px; border: 1px solid #e2e8f0;
    text-decoration: none; color: inherit; transition: all 0.3s ease;
}
.top-headline:hover {
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.th-img-box { position: relative; width: 100%; height: 100%; min-height: 350px; overflow: hidden; background:#f8fafc; }
.th-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.top-headline:hover .th-img-box img { transform: scale(1.05); }
.th-badge { position: absolute; top: 20px; left: 20px; background: #e11d48; color: #fff; padding: 6px 16px; font-size: 0.85rem; font-weight: 800; border-radius: 50px; z-index: 10; box-shadow: 0 4px 10px rgba(225,29,72,0.3); letter-spacing: 1px; }

.th-content { padding: 40px 40px 40px 10px; display: flex; flex-direction: column; justify-content: center; }
.th-title { font-size: 2.2rem; font-weight: 900; color: #0f172a; margin: 0 0 15px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.th-desc { font-size: 1.1rem; color: #475569; margin: 0 0 25px 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-meta { display: flex; align-items: center; gap: 15px; font-size: 0.9rem; color: #94a3b8; font-weight: 500; }
.th-meta span { display: flex; align-items: center; gap: 5px; }

/* News List */
.news-list { display: flex; flex-direction: column; border-top: 2px solid #0f172a; }
.news-item {
    display: flex; gap: 24px; padding: 30px 0; border-bottom: 1px solid #e2e8f0;
    text-decoration: none; color: inherit; transition: background 0.3s ease;
}
.news-item:hover { background: #f8fafc; }
.ni-img-box { width: 240px; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #f1f5f9; }
.ni-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-item:hover .ni-img-box img { transform: scale(1.05); }

.ni-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ni-title { font-size: 1.35rem; font-weight: 800; color: #1e293b; margin: 0 0 10px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.news-item:hover .ni-title { color: #2563eb; }
.ni-desc { font-size: 1rem; color: #64748b; margin: 0 0 15px 0; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-meta { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: #94a3b8; }
.ni-meta i { color: #cbd5e1; }

.empty-news { text-align: center; padding: 80px 0; color: #94a3b8; font-size: 1.1rem; }

/* Actions & Pagination */
.board-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; flex-wrap: wrap; gap: 20px; }
.premium-search { display: flex; justify-content: center; }
.premium-search form { display: flex; background: #fff; border-radius: 50px; padding: 5px; box-shadow: 0 4px 15px rgba(0,0,0,0.05), 0 0 0 1px #e2e8f0; }
.premium-search select { border: none; background: transparent; padding: 10px 15px; color: #475569; font-weight: 500; outline: none; cursor: pointer; }
.premium-search input { border: none; background: transparent; padding: 10px 15px; width: 200px; outline: none; border-left: 1px solid #e2e8f0; font-size: 0.95rem; }
.premium-search button { background: #0f172a; color: #fff; border: none; border-radius: 50px; padding: 10px 20px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.premium-search button:hover { background: #1e293b; }

.premium-pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.premium-pagination.mobile-only { display: none; }
.premium-pagination a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: #475569; font-weight: 600; text-decoration: none; transition: all 0.2s; }
.premium-pagination a:hover { border-color: #cbd5e1; background: #f8fafc; }
.premium-pagination a.active { background: #0f172a; border-color: #0f172a; color: #fff; }

.btn-primary { background: #0f172a; color: #fff; padding: 10px 24px; border-radius: 50px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s ease; border: none; cursor: pointer; }
.btn-primary:hover { background: #1e293b; transform: translateY(-2px); color: #fff; box-shadow: 0 4px 12px rgba(15,23,42,0.2); }

@media (max-width: 900px) {
    .top-headline { grid-template-columns: 1fr; }
    .th-img-box { min-height: 250px; }
    .th-content { padding: 30px; }
    .th-title { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .news-item { flex-direction: column; gap: 15px; }
    .ni-img-box { width: 100%; aspect-ratio: 16/9; }
    .board-actions { 
        flex-direction: column; 
        align-items: stretch;
        gap: 20px;
    }
    .premium-pagination.mobile-only {
        display: flex;
        gap: 5px;
        order: 1;
        justify-content: center;
    }
    .premium-pagination.mobile-only a {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    .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;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .board-actions div:last-child {
        order: 3;
        text-align: center !important;
        width: 100%;
    }
    .btn-primary {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .premium-pagination.pc-only {
        display: none;
    }
}

/* From view.skin.php */
/* 📰 News View Styles */
.view-wrapper {
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-top: 4px solid #0f172a;
    padding-top: 30px;
}

.view-header-area {
    padding: 20px 0 40px;
    border-bottom: 2px solid #0f172a;
    margin-bottom: 40px;
    text-align: center;
}

.view-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 25px;
    word-break: keep-all;
}

.view-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 1rem;
    color: #475569;
}

.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-item i { color: #cbd5e1; }
.meta-divider { color: #cbd5e1; }

.view-body {
    padding: 0 40px;
    margin-bottom: 60px;
}






/* YouTube Embed Box */
.youtube-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    max-width: 100%; background: #000; margin: 40px 0;
}
.youtube-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Attachments */
.attachments-area {
    margin-top: 40px; padding: 30px 40px;
    background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.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: #fff; padding: 12px 20px; border: 1px solid #e2e8f0;
    text-decoration: none; color: #475569; transition: all 0.2s ease;
}
.attachment-item:hover {
    border-color: #0f172a; color: #0f172a; transform: translateX(3px);
}

/* External Link */
.external-link-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: #f1f5f9; border-left: 4px solid #0f172a;
    padding: 20px 25px; margin: 30px 40px; text-decoration: none; color: #1e293b; transition: all 0.2s;
}
.external-link-banner:hover { background: #e2e8f0; }
.external-link-info strong { display: block; font-size: 1.1rem; color: #0f172a; margin-bottom: 4px; }
.external-link-info span { color: #64748b; font-size: 0.95rem; }

/* Action Buttons */
.view-actions {
    padding: 25px 0; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #e2e8f0; margin-top: 30px;
}
.btn-modern {
    padding: 12px 24px; 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: #f1f5f9; color: #475569; }
.btn-list:hover { background: #e2e8f0; color: #1e293b; }
.btn-primary-action { background: #0f172a; color: white; }
.btn-primary-action:hover { background: #1e293b; }
.btn-danger-action { background: #fff; color: #ef4444; border: 1px solid #fecaca; }
.btn-danger-action:hover { background: #fef2f2; }

@media (max-width: 768px) {
    .view-header-area { padding: 15px 0 25px; margin-bottom: 25px; }
    .view-title { font-size: 2rem; }
    .view-body { padding: 0 15px; }
    .attachments-area { padding: 25px 15px; }
    .external-link-banner { margin: 20px 15px; }
    .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; }
}
