/*
Theme Name: Aldipo Minimal V2
Theme URI: https://contohblogkamu.com
Author: Aldipo Prayudi
Author URI: https://contohblogkamu.com
Description: Theme blog minimalis buatan sendiri untuk belajar.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: aldipo-minimal
*/
/* ====== Base layout ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
    font-size: 16px;        /* ukuran teks dasar */
    line-height: 1.7;       /* jarak antar baris biar lega */
}

/* Biar konten di tengah */
.site-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    background: #ffffff;
    min-height: 100vh;
}

/* ====== Header ====== */
.site-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: underline;
}

.site-description {
    margin: 0.3rem 0 0;
    color: #666;
    font-size: 0.95rem;
}

/* ====== Post list ====== */
.site-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ====== Two-column layout: content + sidebar ====== */
.content-wrapper {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0; /* cegah overflow */
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-card {
    margin: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-card-title {
    margin: 0 0 0.3rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover .post-card-title {
    text-decoration: underline;
}

.post-card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.75rem;
}

.post-card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #0070f3;
}

.read-more:hover {
    text-decoration: underline;
}

/* ====== Single Post Title ====== */
.post-single-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

/* ====== Footer ====== */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

/* ====== Responsive ====== */
@media (max-width: 600px) {
    .site-wrapper {
        padding: 1.5rem 1rem 3rem;
    }

    .post-card-title {
        font-size: 1.3rem;
    }
}
/* ====== Header Navigation ====== */
.header-nav {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #444;
    font-size: 0.95rem;
    font-size: 0.95rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.nav-menu li a:hover {
        background: #dbe4ff;
}
/* ====== Pagination ====== */
.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 0.3rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #555;
}

.pagination .page-numbers:hover {
    border-color: #ddd;
}

.pagination .page-numbers.current {
    background: #222;
    color: #fff;
    border-color: #222;
}
/* ====== Archive Header ====== */
.archive-header {
    margin-bottom: 2rem;
}

.archive-title {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.archive-description {
    margin: 0;
    font-size: 0.95rem;
    color: #777;
}

.post-single-content {
    margin-top: 1.5rem;
    font-size: 1.05rem;     /* sedikit lebih besar dari body */
    line-height: 1.9;       /* jarak baris artikel panjang */
}

.post-single-content p {
    margin-bottom: 1rem;
}

/* ====== 404 Page ====== */
.page-404 {
    text-align: center;
    padding: 4rem 1rem;
}

.page-404 h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.page-404 p {
    margin-bottom: 1rem;
}

/* ====== Search Form ====== */
.search-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-field {
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    min-width: 200px;
    font-size: 0.95rem;
}

.search-submit {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.search-submit:hover {
    background: #444;
    border-color: #444;
}

/* ====== Post Thumbnail ====== */
.post-card-thumb {
    display: block;
    margin-bottom: 0.8rem;
}

.post-card-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ====== Single Post Thumbnail ====== */
.post-single-thumb {
    margin-bottom: 1.5rem;
}

.post-single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ====== Post Taxonomy ====== */
.post-tax {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-tax-item {
    margin-top: 0.3rem;
}

.post-tax-label {
    font-weight: 600;
    margin-right: 0.4rem;
    color: #555;
}

.post-tax-links a {
    text-decoration: none;
    color: #0070f3;
}

.post-tax-links a:hover {
    text-decoration: underline;
}

/* ====== Post Navigation ====== */
.post-nav {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-nav a {
    text-decoration: none;
    color: #222;
    font-size: 0.95rem;
}

.post-nav a:hover {
    text-decoration: underline;
}

.post-nav-prev,
.post-nav-next {
    flex: 1;
}

.post-nav-next {
    text-align: right;
}

/* ====== Comments ====== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.comment-list li {
    margin-bottom: 1.5rem;
}

.comment-body {
    font-size: 0.95rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.comment-author {
    font-weight: 600;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.comment-form input[type="submit"] {
    background: #222;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background: #444;
}

/* ====== Footer Widget ====== */
.site-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #666;
}

.footer-widgets {
    margin-bottom: 2rem;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.footer-credit {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ====== Home Search ====== */
.home-search {
    margin-bottom: 2rem;
}

.home-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.home-search .search-field {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.home-search .search-submit {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #222;
    background: #222;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.home-search .search-submit:hover {
    background: #444;
    border-color: #444;
}

/* ====== Header Menu Strip ====== */
.header-nav {
    background: #f0f4ff;        /* warna strip */
    padding: 0.4rem 0.8rem;
    border-radius: 999px;       /* biar kapsul */
    display: inline-block;      /* strip pas sepanjang menu */
}

/* ====== Header Menu Capsule ====== */
.header-nav-wrap {
    background: #f0f4ff;
    padding: 0.6rem 1.4rem;   /* tinggi kapsul */
    border-radius: 999px;     /* bikin kapsul */
    margin-top: 0.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* supaya kapsul rapi & sejajar konten */
.header-nav {
    max-width: 900px;         /* samakan dg konten */
    margin: 0 auto;
}

/* menu item */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.nav-menu li a:hover {
    background: #dbe4ff;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar .container {
    padding-top: 0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* ====== Responsive sidebar ====== */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}