/* ==========================================================================
   Alam Personal — Blog Archive (/blog)
   Daftar post, SEO friendly, clean
   ========================================================================== */

.alam-blog-archive {
    background: #ffffff;
    min-height: calc(100vh - 64px);
}

.alam-blog-archive__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 100px;
}

/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */
.alam-blog-archive__header {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f4f4f5;
}

.alam-blog-archive__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -.04em;
    margin-bottom: .4rem;
}

.alam-blog-archive__desc {
    font-size: .9rem;
    color: #71717a;
    line-height: 1.65;
    margin: 0;
}

/* ----------------------------------------------------------
   POST LIST
   ---------------------------------------------------------- */
.alam-post-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 48px !important;
}

.alam-post-list li {
    list-style: none !important;
}

/* ----------------------------------------------------------
   FILTER KATEGORI
   ---------------------------------------------------------- */
.alam-blog-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f4f4f5;
}

.alam-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    color: #71717a;
    background: #f4f4f5;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all .15s;
}

.alam-filter-btn:hover {
    color: #18181b;
    background: #e4e4e7;
}

.alam-filter-btn.active {
    background: #18181b;
    color: #ffffff;
    border-color: #18181b;
}

.alam-filter-count {
    font-size: .7rem;
    opacity: .6;
    font-weight: 500;
}

/* ----------------------------------------------------------
   DAFTAR POST
   ---------------------------------------------------------- */
.alam-blog-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px;
}

.alam-blog-row {
    border-bottom: 1px solid #f4f4f5;
}

.alam-blog-row:first-child {
    border-top: 1px solid #f4f4f5;
}

.alam-blog-row__link {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 20px 0;
    text-decoration: none;
    transition: all .15s;
}

.alam-blog-row__link:hover .alam-blog-row__title {
    color: #6366f1;
}

.alam-blog-row__main {
    flex: 1;
    min-width: 0;
}

.alam-blog-row__cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: .35rem;
}

.alam-blog-row__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #18181b;
    line-height: 1.4;
    letter-spacing: -.02em;
    margin-bottom: .35rem;
    transition: color .15s;
}

.alam-blog-row__excerpt {
    font-size: .845rem;
    color: #71717a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alam-blog-row__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
    padding-top: 2px;
}

.alam-blog-row__date {
    font-size: .78rem;
    color: #a1a1aa;
    font-weight: 500;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.alam-blog-row__read {
    font-size: .72rem;
    color: #d4d4d8;
    font-weight: 500;
}

/* ----------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------- */
.alam-blog-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid #f4f4f5;
}

.alam-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: #71717a;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    text-decoration: none;
    transition: all .15s;
}

.alam-blog-pagination .page-numbers:hover,
.alam-blog-pagination .page-numbers.current {
    background: #18181b;
    border-color: #18181b;
    color: #ffffff;
}

.alam-blog-pagination .page-numbers.prev,
.alam-blog-pagination .page-numbers.next {
    padding: 0 16px;
    font-size: .82rem;
}

/* Empty */
.alam-blog-empty {
    font-size: .9rem;
    color: #a1a1aa;
    font-style: italic;
    padding: 40px 0;
    text-align: center;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 600px) {
    .alam-blog-archive__inner { padding: 40px 16px 72px; }
    .alam-blog-archive__title { font-size: 1.6rem; }

    .alam-blog-row__link {
        flex-direction: column;
        gap: 8px;
    }

    .alam-blog-row__meta {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
}

/* ----------------------------------------------------------
   BOOKSHELF ARCHIVE
   ---------------------------------------------------------- */
.alam-bookshelf-archive {
    background: #ffffff;
    min-height: calc(100vh - 64px);
}

.alam-bookshelf-archive__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 100px;
}

.alam-bookshelf-archive__header {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #f4f4f5;
}

.alam-bookshelf-archive__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -.04em;
    margin-bottom: .4rem;
}

.alam-bookshelf-archive__desc {
    font-size: .9rem;
    color: #71717a;
    line-height: 1.65;
    margin: 0;
}

/* ----------------------------------------------------------
   BUKU LIST — cover + detail
   ---------------------------------------------------------- */
.alam-buku-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alam-buku-list__item {
    border-bottom: 1px solid #f4f4f5;
}

.alam-buku-list__item:first-child {
    border-top: 1px solid #f4f4f5;
}

.alam-buku-list__link {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    text-decoration: none;
    transition: background .15s;
}

.alam-buku-list__link:hover .alam-buku-list__title {
    color: #6366f1;
}

/* Cover */
.alam-buku-list__cover {
    width: 64px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    background: #f4f4f5;
    aspect-ratio: 2/3;
}

.alam-buku-list__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.alam-buku-list__link:hover .alam-buku-list__cover img {
    transform: scale(1.04);
}

.alam-buku-list__cover-empty {
    width: 100%;
    height: 100%;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Detail */
.alam-buku-list__detail {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.alam-buku-list__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -.02em;
    line-height: 1.35;
    margin: 0;
    transition: color .15s;
}

.alam-buku-list__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alam-buku-list__meta-item {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: .82rem;
}

.alam-buku-list__meta-label {
    color: #a1a1aa;
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    flex-shrink: 0;
    width: 72px;
    margin-right: 4px;
}

.alam-buku-list__meta-val {
    color: #52525b;
    font-weight: 500;
}

.alam-buku-list__bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.alam-buku-list__rating {
    font-size: .85rem;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 480px) {
    .alam-buku-list__cover { width: 52px; }
    .alam-buku-list__meta-label { width: 56px; }
}

/* ----------------------------------------------------------
   CATEGORY ARCHIVE HEADER
   ---------------------------------------------------------- */
.alam-cat-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: .5rem;
}
