/* ==========================================================================
   NEWS LISTING / ARCHIVE CSS (BRUTALIST ARCHIVE VERSION)
   ========================================================================== */

.archive-container {
    padding: 100px 5% 100px;
    position: relative;
    /* Memberi ruang ekstra agar absolute cards tidak menabrak footer */
    min-height: 3000px; 
    background-color: var(--bg);
    overflow: hidden;
}

/* --- HEADER AREA --- */
.archive-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 180px; /* Safety gap agar tidak tertabrak grid chaos */
    position: relative;
    z-index: 200;
}

.archive-title {
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    margin: 0;
    flex: 1;
    pointer-events: none; /* Mencegah judul menghalangi klik pada filter */
}

/* --- TOPICS SIDEBAR BOX (RED BLOCK) --- */
.topics-sidebar-box {
    background: var(--accent);
    padding: 30px;
    width: 320px;
    min-width: 300px;
    box-shadow: 12px 12px 0px #000;
    border: 3px solid #000;
    transform: rotate(1.5deg);
    position: sticky;
    top: 150px;
}

/* RESET SELECTOR NAV DARI STYLE.CSS */
.topics-nav {
    /* Mematikan paksa fixed position dari nav global di style.css */
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    mix-blend-mode: normal !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: auto !important;
    background: transparent !important;
}

.topic-item {
    text-decoration: none;
    color: #000;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 10px 15px;
    transition: 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    line-height: 1;
}

/* Hover & Active State */
.topic-item:hover, 
.topic-item.active {
    background: #000;
    color: var(--accent);
    transform: translateX(10px);
}

/* --- THE CHAOS GRID --- */
.chaos-grid {
    position: relative;
    width: 100%;
    z-index: 10;
}

.article-card {
    position: absolute;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 25px;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    color: #fff;
    display: block;
}

.article-card:hover {
    z-index: 500 !important;
    border-color: var(--accent);
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 20px 20px 0 var(--accent);
}

.article-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
    margin-bottom: 20px;
    transition: 0.5s ease;
}

.article-card:hover img { filter: grayscale(0); opacity: 1; }

.article-card h2 { font-size: 1.6rem; line-height: 1.1; margin-bottom: 12px; }
.article-card .date { font-family: monospace; color: var(--accent); margin-bottom: 10px; font-size: 0.8rem; display: block; }
.article-card p { font-size: 0.95rem; line-height: 1.4; opacity: 0.7; text-transform: none; }

/* Desktop Positioning */
.art-1 { width: 340px; top: 50px; left: 5%; transform: rotate(-3deg); }
.art-2 { width: 400px; top: 0; right: 5%; transform: rotate(2deg); }
.art-3 { width: 320px; top: 450px; left: 35%; transform: rotate(-2deg); border-top: 10px solid var(--accent); }
.art-4 { width: 440px; top: 750px; left: 2%; transform: rotate(3deg); }
.art-5 { width: 360px; top: 900px; right: 10%; transform: rotate(-4deg); background: var(--accent); }
.art-5 h2, .art-5 p, .art-5 .date { color: #000; }
.art-6 { width: 340px; top: 1200px; left: 20%; transform: rotate(2deg); }
.art-7 { width: 500px; top: 1450px; right: 15%; transform: rotate(-2deg); }
.art-8 { width: 380px; top: 1800px; left: 10%; transform: rotate(4deg); }

/* --- PAGINATION (TORN PAPER) --- */
.torn-paper-pagination {
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    z-index: 150;
    padding-bottom: 150px;
}

.paper-inner {
    background: #fff;
    color: #000;
    padding: 40px 80px;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 92%, 
        97% 100%, 90% 94%, 80% 100%, 72% 92%, 62% 100%, 
        50% 93%, 40% 100%, 30% 92%, 18% 100%, 8% 95%, 0% 100%
    );
    display: flex;
    gap: 50px;
    align-items: center;
    font-weight: 900;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.1);
}

.paper-inner a {
    color: #000;
    text-decoration: none;
    border-bottom: 4px solid #000;
    font-size: 1.2rem;
    transition: 0.2s;
}

.paper-inner a:hover { color: var(--accent); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .archive-header-wrapper { flex-direction: column; align-items: stretch; margin-bottom: 80px; }
    .topics-sidebar-box { width: 100%; margin-top: 20px; transform: none; position: relative; top: 0; }
    .archive-container { min-height: auto; }
    .chaos-grid { display: flex; flex-direction: column; gap: 40px; margin-top: 50px; }
    .article-card { position: relative !important; width: 100% !important; top: auto !important; left: auto !important; right: auto !important; transform: none !important; }
    .torn-paper-pagination { margin-top: 80px; }
}