/* ==========================================================================
   Alam Personal — Blog Archive
   ========================================================================== */

.alam-archive-page { background: #fafafa; }

/* ----------------------------------------------------------
   HEADER ARCHIVE
   ---------------------------------------------------------- */
.alam-archive-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e4e7;
    padding: 56px 24px 40px;
}

.alam-archive-header__inner {
    max-width: 760px;
    margin: 0 auto;
}

.alam-archive-header .alam-cat-tag {
    margin-bottom: 1rem;
}

.alam-archive-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #18181b;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
}

.alam-archive-desc {
    font-size: .975rem;
    color: #71717a;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   LAYOUT
   ---------------------------------------------------------- */
.alam-archive-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* ----------------------------------------------------------
   POST LIST
   ---------------------------------------------------------- */
.alam-post-list { display: flex; flex-direction: column; gap: 0; }

.alam-post-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e4e4e7;
    text-decoration: none;
    transition: all .2s;
    align-items: start;
}

.alam-post-item:first-child { padding-top: 0; }
.alam-post-item:last-child  { border-bottom: none; }

.alam-post-item:hover .alam-post-item__title {
    color: #6366f1;
}

.alam-post-item__thumb {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f5;
    flex-shrink: 0;
}

.alam-post-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.alam-post-item:hover .alam-post-item__thumb img {
    transform: scale(1.05);
}

.alam-post-item__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #a1a1aa;
}

.alam-post-item__body { display: flex; flex-direction: column; gap: 6px; }

.alam-post-item__cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6366f1;
}

.alam-post-item__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #18181b;
    line-height: 1.35;
    letter-spacing: -.02em;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alam-post-item__excerpt {
    font-size: .875rem;
    color: #71717a;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alam-post-item__meta {
    font-size: .78rem;
    color: #a1a1aa;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
}

/* ----------------------------------------------------------
   SIDEBAR
   ---------------------------------------------------------- */
.alam-sidebar { position: sticky; top: 88px; }

.alam-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.alam-sidebar-widget:last-child { margin-bottom: 0; }

.alam-widget-title {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 1rem;
}

/* Kategori di sidebar */
.alam-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alam-cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f4f4f5;
    font-size: .875rem;
}

.alam-cat-list li:last-child { border-bottom: none; }

.alam-cat-list a {
    color: #27272a;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}

.alam-cat-list a:hover { color: #6366f1; }

.alam-cat-list .count {
    background: #f4f4f5;
    color: #71717a;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

/* ----------------------------------------------------------
   PAGINATION
   ---------------------------------------------------------- */
.alam-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e4e4e7;
}

.alam-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 600;
    color: #71717a;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    text-decoration: none;
    transition: all .2s;
}

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

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

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .alam-archive-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .alam-sidebar { position: static; }
}

@media (max-width: 600px) {
    .alam-archive-header { padding: 40px 16px 28px; }
    .alam-archive-body   { padding: 28px 16px 60px; }
    .alam-post-item      { grid-template-columns: 1fr; }
    .alam-post-item__thumb { aspect-ratio: 16/9; }
}
