/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: Verdana, Geneva, 'DejaVu Sans', Arial, Helvetica, sans-serif;
    color: #000000;
    line-height: 1.4;
    font-size: 13px;
    min-height: 100vh;
}

/* ========== HEADER BIRU MUDA AWAN ========== */
.header {
    background-color: #d0e4f5;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #a3c4e0;
    font-size: 13px;
    flex-wrap: wrap;
    min-height: 36px;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    object-fit: contain;
    max-height: 12px;
}

.header-title {
    font-weight: bold;
    font-size: 15px;
    color: #1a3a5c;
    text-decoration: none;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
}

.header-nav a {
    color: #1a3a5c;
    text-decoration: none;
    font-weight: normal;
    padding: 2px 5px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -moz-tap-highlight-color: rgba(0,0,0,0);
    tap-highlight-color: rgba(0,0,0,0);
}

.header-nav a:focus {
    outline: none;
    background-color: transparent;
}

.header-nav a:active {
    background-color: transparent;
    color: #1a3a5c;
}

.header-nav a:visited {
    color: #1a3a5c;
}

.header-nav a.active-nav {
    background-color: #a3c4e0;
    font-weight: bold;
    color: #0d2137;
}

.header-nav a.active-nav:active {
    background-color: #a3c4e0;
}

.header-nav a.active-nav:focus {
    background-color: #a3c4e0;
}

.header-nav .sep {
    color: #7a9bb5;
    user-select: none;
    font-size: 11px;
}

/* ========== KONTEN UTAMA ========== */
.content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f6f6ef;
    padding: 14px 20px 25px 20px;
    min-height: calc(100vh - 100px);
}

/* ========== DAFTAR ARTIKEL ========== */
.article-table {
    width: 100%;
    border-collapse: collapse;
}

.article-row {
    border-bottom: 1px solid #e0e0e0;
}

.article-row:hover {
    background-color: #edf4fb;
}

.article-number {
    width: 34px;
    text-align: right;
    padding: 8px 6px 8px 0;
    color: #8a9baa;
    font-size: 14px;
    vertical-align: top;
    font-family: 'Courier New', Courier, monospace;
}

.article-upvote {
    width: 28px;
    text-align: center;
    padding: 6px 2px;
    vertical-align: top;
    cursor: pointer;
    user-select: none;
    color: #8a9baa;
    font-size: 13px;
    transition: color 0.1s;
}

.article-upvote:hover {
    color: #4a7da8;
}

.article-upvote.voted {
    color: #4a7da8;
}

.article-content-cell {
    padding: 8px 6px;
    vertical-align: top;
}

.article-title-line {
    font-size: 14px;
    margin-bottom: 3px;
}

.article-title-link {
    color: #000000;
    text-decoration: none;
    font-weight: normal;
    cursor: pointer;
}

.article-title-link:visited {
    color: #8a9baa;
}

.article-title-link:hover {
    text-decoration: underline;
    color: #1a3a5c;
}

.article-meta-line {
    font-size: 10px;
    color: #8a9baa;
    margin-top: 1px;
}

.article-meta-line a {
    color: #8a9baa;
    text-decoration: none;
}

.article-meta-line a:hover {
    text-decoration: underline;
}

/* ========== PAGINATION ========== */
.pagination {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
}

.pagination a {
    color: #1a3a5c;
    text-decoration: none;
    padding: 2px 6px;
}

.pagination a:hover {
    text-decoration: underline;
}

.page-current {
    font-weight: bold;
    color: #1a3a5c;
    padding: 2px 6px;
}

.page-disabled {
    color: #c0c0c0;
    padding: 2px 6px;
}

.page-sep {
    color: #8a9baa;
    margin: 0 2px;
}

/* ========== HALAMAN DETAIL ARTIKEL ========== */
.detail-container {
    background-color: #f6f6ef;
    padding: 24px 30px;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

.detail-back {
    color: #1a3a5c;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 18px;
    display: inline-block;
    cursor: pointer;
}

.detail-back:hover {
    text-decoration: underline;
    color: #4a7da8;
}

.detail-title {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: Verdana, sans-serif;
}

.detail-meta {
    font-size: 11px;
    color: #8a9baa;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #c4d6e8;
}

.detail-body {
    font-size: 14px;
    line-height: 1.8;
    color: #1a1a1a;
    font-family: Verdana, 'DejaVu Sans', sans-serif;
}

.detail-body p {
    margin-bottom: 14px;
    text-align: justify;
}

.detail-body code {
    background: #f0f4f8;
    padding: 1px 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    border: 1px solid #d0dce6;
    border-radius: 2px;
    color: #1a3a5c;
}

.detail-body pre {
    background: #f4f7fa;
    border: 1px solid #d0dce6;
    padding: 14px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    margin: 14px 0;
    white-space: pre-wrap;
    border-radius: 3px;
}

.detail-signature {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
    color: #6b8095;
    font-size: 12px;
    border-top: 1px solid #d0dce6;
    padding-top: 14px;
}

.detail-signature a {
    color: #4a7da8;
    text-decoration: none;
}

.detail-signature a:hover {
    text-decoration: underline;
}

/* ========== HALAMAN ABOUT ========== */
.about-container {
    background-color: #f6f6ef;
    padding: 24px 30px;
    max-width: 800px;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

.about-title {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 22px;
    line-height: 1.3;
    font-family: Verdana, sans-serif;
    padding-bottom: 14px;
    border-bottom: 2px solid #c4d6e8;
}

/* ========== PROFIL ABOUT ========== */
.about-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 2px solid #c4d6e8;
}

.profile-photo {
    flex-shrink: 0;
}

.profile-img {
    width: 80px;
    height: 80px;
    border: 2px solid #a3c4e0;
    display: block;
    object-fit: cover;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: #1a3a5c;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #a3c4e0;
    flex-shrink: 0;
}

.avatar-letter {
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    color: #1a3a5c;
    margin-bottom: 6px;
}

.profile-bio {
    font-size: 12px;
    color: #5a6d7e;
    line-height: 1.6;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 12px;
    color: #4a7da8;
    text-decoration: none;
}

.profile-email:hover {
    text-decoration: underline;
}

/* ========== BODY ABOUT ========== */
.about-body {
    font-size: 14px;
    line-height: 1.8;
    color: #1a1a1a;
    font-family: Verdana, 'DejaVu Sans', sans-serif;
}

.about-body p {
    margin-bottom: 14px;
    text-align: justify;
}

.about-body b {
    color: #1a3a5c;
}

/* ========== PESAN KOSONG ========== */
.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #8a9baa;
}

.empty-message p {
    font-size: 14px;
    margin-bottom: 6px;
}

.empty-message a {
    color: #4a7da8;
    text-decoration: underline;
    cursor: pointer;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 16px;
    font-size: 11px;
    color: #8a9baa;
    background-color: #f6f6ef;
    border-top: 2px solid #c4d6e8;
    max-width: 900px;
    margin: 0 auto;
}
.footer a {
    color: #8a9baa;
    text-decoration: underline;
}

.footer a:hover {
    color: #4a7da8;
}

.footer-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    color: #8a9baa;
    margin-top: 6px;
}

.footer-logo {
    height: 46px;
    display: block;
    object-fit: contain;
}

.footer-sep {
    color: #c0c0c0;
    font-size: 10px;
}

/* ========== UTILITY ========== */
.hidden {
    display: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 650px) {
    .header {
        padding: 6px 8px;
        gap: 6px;
    }

    .header-title {
        font-size: 13px;
    }

    .header-nav {
        font-size: 11px;
        gap: 2px;
    }

    .header-nav .sep {
        font-size: 10px;
    }

    .content {
        padding: 10px 8px;
    }

    .article-number {
        width: 26px;
        font-size: 12px;
    }

    .article-title-line {
        font-size: 12px;
    }

    .detail-container,
    .about-container {
        padding: 16px 12px;
    }

    .detail-title,
    .about-title {
        font-size: 17px;
    }

    .about-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-img {
        width: 70px;
        height: 70px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
    }

    .avatar-letter {
        font-size: 30px;
    }
}