/*
Theme Name: Samudera Lite
Description: Tema kustom minimalis khusus portal berita dan investigasi SamuderaKepri.
Author: SamuderaKepri Team
Version: 1.5
*/

/* ============================================
   1. GLOBAL & LAYOUT DASAR
   ============================================ */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: #cc0000; }

/* ============================================
   2. HEADER & NAVIGATION
   ============================================ */
header {
    background: #ffffff;
    border-bottom: 1px solid #e1e4e8;
    padding: 20px 30px;
}

header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

header h1 a {
    color: #0f172a;
    text-decoration: none;
}

header p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

nav {
    background: #0f172a;
    padding: 12px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff3333;
}

/* ============================================
   3. CONTAINER & POST DASAR
   ============================================ */
.container {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.post-item {
    margin-bottom: 35px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 25px;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.4;
}

.post-item h3 a {
    color: #1e293b;
    text-decoration: none;
}

.post-item h3 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.post-content {
    font-size: 16px;
    color: #334155;
}

footer {
    text-align: center;
    padding: 25px;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #e1e4e8;
    background: #ffffff;
    margin-top: 50px;
}

/* ============================================
   4. LANDING PAGE - SK HOME WRAPPER
   ============================================ */
.sk-home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
}

.sk-home-wrapper * { box-sizing: border-box; }

.sk-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   5. SECTION HEADER
   ============================================ */
.sk-section-header {
    text-align: center;
    position: relative;
    margin: 50px 0 30px;
}

.sk-section-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.sk-section-header span {
    background: #cc0000;
    color: #fff;
    padding: 6px 20px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    display: inline-block;
}

/* ============================================
   6. META, TITLE, EXCERPT
   ============================================ */
.sk-meta {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sk-meta .cat { color: #ff1a1a !important; font-weight: 800 !important; }
.sk-meta .date { color: #475569; font-weight: 600; }

.sk-title {
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px;
}

.sk-title-small { font-size: 14px; }
.sk-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   7. GRID SYSTEM
   ============================================ */
.sk-grid { display: grid; gap: 30px; }
.sk-grid-2 { grid-template-columns: 2fr 1fr; }
.sk-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sk-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================
   8. CARD
   ============================================ */
.sk-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
}

.sk-card.large img { height: 380px; }
.sk-card.large .sk-title { font-size: 26px; }
.sk-card.medium .sk-title { font-size: 18px; }
.sk-card.small .sk-title { font-size: 15px; }

/* ============================================
   9. LIST ITEM
   ============================================ */
.sk-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.sk-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sk-list-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 4px;
}

/* ============================================
   10. SIDEBAR HEADER
   ============================================ */
.sk-sidebar-header {
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.sk-sidebar-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

/* ============================================
   11. PLACEHOLDER
   ============================================ */
.sk-placeholder {
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 15px;
}

.sk-placeholder-large { height: 380px; }
.sk-placeholder-medium { height: 200px; }
.sk-placeholder-thumb { width: 120px; height: 90px; }
.sk-placeholder-dark { background: #333; }
.sk-placeholder-dark-thumb { background: #333; }

/* ============================================
   12. DARK SECTION (Investigasi & Gelar Fakta)
   ============================================ */
.sk-dark-section {
    background: #111;
    color: #fff;
    padding: 40px;
    margin: 50px 0;
    border-top: 4px solid #cc0000;
    border-radius: 8px;
    overflow: hidden;
}

.sk-dark-section a { color: #fff; }
.sk-dark-section a:hover { color: #ff3333; }
.sk-dark-section .sk-meta .date { color: #cbd5e1; }
.sk-dark-section .sk-excerpt { color: #ccc; }

.sk-dark-section .sk-list-item {
    display: flex;
    align-items: center;
    border-color: #333;
}

.sk-dark-section .sk-list-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    margin-left: auto;
}

.sk-cat-investigasi { color: #ff4444; }
.sk-title-investigasi { font-size: 22px; margin-bottom: 15px; }

.sk-video-thumb { position: relative; }

.sk-investigasi-img {
    height: 380px;
    object-fit: cover;
    margin-bottom: 0;
}

.sk-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sk-gelar-fakta-list {
    padding-left: 0;
    margin-top: 10px;
}

.sk-gelar-fakta-header {
    color: #fff;
    font-size: 16px;
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.sk-list-item-dark { border-color: #333; }
.sk-cat-gelar { color: #ff4444; }

/* ============================================
   13. PAGINATION
   ============================================ */
.sk-pagination {
    margin: 40px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sk-pagination .page-numbers {
    background: #f1f5f9;
    color: #1e293b;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #cbd5e1;
    text-decoration: none;
}

.sk-pagination .page-numbers.current {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

.sk-pagination .page-numbers:hover {
    background: #e2e8f0;
}

.sk-no-posts {
    text-align: center;
    padding: 40px 0;
    color: #64748b;
}

/* ============================================
   14. RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 992px) {
    .sk-grid-2,
    .sk-grid-3,
    .sk-grid-4 { grid-template-columns: 1fr; }
    
    .sk-card.large img { height: 200px; }
    
    .sk-dark-section { padding: 20px 15px; }
    .sk-dark-section .sk-card.large .sk-title { font-size: 18px; }
    
    .sk-dark-section .sk-list-item { display: block; }
    .sk-dark-section .sk-list-item img {
        width: 100%;
        height: 180px;
        max-width: 100%;
        margin-top: 12px;
        margin-left: 0;
        object-fit: cover;
        border-radius: 4px;
    }
    
    .sk-investigasi-img { height: 200px; }
}

/* ============================================
   15. RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 576px) {
    .sk-list-item { display: block; }
    .sk-list-item img {
        width: 100%;
        height: 180px;
        max-width: 100%;
        margin-left: 0;
    }
}

/* ============================================
   16. HEADER & NAVIGATION (header.php)
   ============================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.site-header * {
    box-sizing: border-box;
}

.header-top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 11px;
    border-bottom: 1px solid #1e293b;
    padding: 6px 15px;
    width: 100%;
}

.header-top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-tagline {
    color: #cbd5e1;
    font-weight: 600;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.site-logo img {
    max-height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-banner-box {
    flex-grow: 1;
    max-width: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner-box img {
    width: 100%;
    height: auto;
    max-height: 75px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.header-actions {
    flex-shrink: 0;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 4px 10px;
    width: 220px;
}

.header-search-form input[type="search"] {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #1e293b;
    width: 100%;
}

.header-search-form button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    color: #64748b;
}

.header-bottom-nav {
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
    width: 100%;
}

.category-nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    max-height: 48px;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.category-bar {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 22px;
    padding: 0 15px;
}

.category-bar a {
    display: inline-block;
    padding: 12px 0;
    color: #0f172a !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700 !important;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
}

.category-bar a:hover {
    color: #cc0000 !important;
    border-bottom-color: #cc0000;
}

.badge-new {
    background-color: #cc0000;
    color: #ffffff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: bold;
    vertical-align: middle;
}

.sk-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
}

/* ============================================
   17. RESPONSIVE HEADER - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .header-top-bar-inner {
        flex-direction: column;
        gap: 3px;
        text-align: center;
        font-size: 10px;
    }
    .header-top {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 10px 15px;
    }
    .header-nav-left {
        justify-content: center;
    }
    .site-logo img {
        max-height: 52px;
        margin: 0 auto;
    }
    .header-banner-box {
        max-width: 100%;
    }
    .header-search-form {
        width: 100%;
    }
    .category-nav-wrapper {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-nav-wrapper::-webkit-scrollbar {
        display: none;
    }
    .category-bar {
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 18px;
        padding: 0 15px;
    }
    .category-bar a {
        padding: 10px 0;
        font-size: 13px;
        flex-shrink: 0;
    }
}