/**
 * Stylesheet untuk Halaman Arsip (Kategori, Tag, Pencarian)
 *
 * DAFTAR ISI:
 * 1. STRUKTUR DASAR HALAMAN ARSIP
 * 2. DAFTAR HASIL PENCARIAN / POSTINGAN
 * 3. KASUS TIDAK ADA HASIL (NO RESULTS)
 * 4. GAYA KONTEN UMUM (FALLBACK)
 * 5. GAYA RESPONSIVE (MEDIA QUERIES)
 */

/* ==========================================
   1. STRUKTUR DASAR HALAMAN ARSIP
   ========================================== */

.archive-description {
    line-height: 1.4rem;
    font-size: 15.2px;
    color: var(--color-secondary);
}

.page-title { /* Untuk judul seperti "Kategori: Berita" */
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

/* ==========================================
   2. DAFTAR HASIL PENCARIAN / POSTINGAN
   ========================================== */

.search-results-list {
	margin-top: 1rem;
	border-top: 1px solid var(--color-border);
}

.search-result-item {
	border-bottom: 1px solid var(--color-border);
	padding: 1.5rem 0;
}

.search-results-list .search-result-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.search-item-wrapper {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.search-item-thumbnail {
	flex-shrink: 0;
	width: 130px;
	height: 130px;
}

.search-item-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
}

.search-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-item-thumbnail .no-thumbnail {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b0b0b0;
}

.search-item-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.search-item-category a {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: .5rem;
}

.search-item-title {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	line-height: 1.4;
	margin: 0 0 .5rem 0;
}

.search-item-title a {
	color: #1a202c;
	text-decoration: none;
	transition: color .2s;
}

.search-item-title a:hover {
	color: var(--color-primary);
}

.search-item-meta {
	font-size: .8rem;
	color: var(--color-secondary);
	margin-bottom: .75rem;
}

.search-item-excerpt {
	display: -webkit-box;
	font-size: .9rem;
	line-height: 1.6;
	color: var(--color-secondary);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.search-item-excerpt p {
	margin: 0;
}

/* ==========================================
   3. KASUS TIDAK ADA HASIL (NO RESULTS)
   ========================================== */

.no-results.not-found {
	text-align: center;
	max-width: 650px;
	margin: 4rem auto;
	padding: 3rem 2rem;
	background: #f9f9f9;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
}

.no-results .page-header {
    margin-bottom: 1.5rem;
}

.no-results .page-title {
	font-size: 2.8rem;
	color: #333;
	margin: 0;
	line-height: 1.2;
}

.no-results .page-content p {
	font-size: 1.1rem;
	color: var(--color-secondary);
	line-height: 1.6;
	margin-top: 0;
	margin-bottom: 2.5rem;
}

.no-results .search-form {
	display: flex;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
	border-radius: 50px;
	border: 1px solid #ccc;
	overflow: hidden;
}

.no-results .search-form label {
    width: 100%;
    display: flex;
}

.no-results .search-field {
	flex-grow: 1;
	border: none;
	padding: .8rem 1.2rem;
	font-size: 1rem;
	color: #333;
	background: #fff;
	min-width: 0;
}

.no-results .search-field:focus {
	outline: none;
	box-shadow: none;
}

.no-results .search-submit {
	border: none;
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
	padding: 0 1.8rem;
	cursor: pointer;
	transition: background .2s;
}

.no-results .search-submit:hover {
    background: var(--color-primary-dark);
}


/* ==========================================
   4. GAYA KONTEN UMUM (FALLBACK)
   ========================================== */
/* Catatan: Sebagian besar gaya ini seharusnya ada di global.css atau 
   single-post.css, tetapi disertakan di sini sebagai fallback
   jika deskripsi arsip atau excerpt merender HTML kompleks. */

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #111;
}
.post-content p { margin-bottom: 1.25em; }
.post-content a { color: var(--color-link); }
.post-content a:hover { color: var(--color-link-hover); text-decoration: underline; }
.post-content strong, .post-content b { font-weight: 700; }
.post-content em, .post-content i { font-style: italic; }
.post-content ul, .post-content ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.post-content li { margin-bottom: 0.5em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote {
    margin: 1.5em 0;
    padding: 1em;
    border-left: 4px solid var(--color-primary);
    background-color: #f7f7f7;
    color: #555;
    font-style: italic;
    border-radius: 5px;
}
.post-content img, .post-content video, .post-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
}

/* ==========================================
   5. PAGINASI
   ========================================== */
/* --- Paginasi Angka --- */
.pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.navigation .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2.5rem;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    width: 2.3em;
    height: 2.3em;
    min-width: 38px;
    min-height: 38px;
    font-size: 1.08rem;
}
.page-numbers:not(.dots):not(.current):hover {
    border-color: var(--color-primary);
    background: #f0f8ff;
    transform: translateY(-2px) scale(1.07);
    box-shadow: 0 2px 6px rgba(26, 86, 219, 0.08);
}
.page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    cursor: default;
}
.page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}

/* --- Paginasi Next/Page Artikel --- */
.post-pagination {
  display : flex;
  align-items : center;
  justify-content : space-between;
  flex-wrap : nowrap;
  gap : 15px;
  padding : 12px 16px;
  margin : 30px 0;
  border : 1px solid var(--color-border);
  border-radius : 12px;
  background-color : #f8f9fa;
}
.pagination-group-left {
  display : flex;
  align-items : center;
  gap : 12px;
}
.pagination-label {
  font-size : 16px;
  font-weight : 600;
  color : #333;
}
.pagination-numbers {
  display : flex;
  align-items : center;
  gap : 8px;
}
.page-number {
  display : flex;
  align-items : center;
  justify-content : center;
  width : 38px;
  height : 38px;
  border-radius : 50%;
  text-decoration : none;
  font-weight : 600;
  transition : all 0.2s;
  border : 1px solid var(--color-primary-light);
  color : var(--color-primary-light);
  background-color : transparent;
}
  .page-number : hover {
  background-color : #dbeafe;
}
.page-number.current {
  background-color : var(--color-primary-light);
  color : #fff;
  border-color : var(--color-primary-light);
}
.show-all-button {
  text-decoration : none;
  padding : 8px 20px;
  border : 1px solid #adb5bd;
  color : #495057;
  border-radius : 9999px;
  font-weight : 600;
  font-size : 14px;
  background-color : #fff;
  transition : all 0.2s;
}
  .show-all-button : hover {
  background-color : #f1f3f5;
  border-color : #868e96;
}

/* --- Tampilan Mobile Sangat Kecil (<= 480px) --- */
@media (max-width: 480px) {
    .pagination-group-left {
        flex-grow: 1;
    }
    .pagination-group-right {
        flex-basis: 100%;
        text-align: right;
    }
    .page-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .show-all-button {
        padding: 7px 17px;
    }
}

/* ==========================================
   6. GAYA RESPONSIVE (MEDIA QUERIES)
   ========================================== */

@media (max-width: 768px) {
    div#content {
        margin-top: -5px;
    }
	.search-item-wrapper {
        gap: 1rem;
    }
	.search-item-thumbnail {
        width: 110px;
        height: 110px;
    }
	.search-item-title {
		font-size: .9rem;
		line-height: 1.4;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.search-item-meta {
        font-size: .7rem;
    }
	.search-item-excerpt {
        display: none;
    }
	.page-title {
		font-size: 1.25rem;
	}
	.search-result-item {
        padding: 0.5rem 0;
    }
	.no-results.not-found {
		margin: 2rem 1rem;
		padding: 2rem 1.5rem;
	}
	.no-results .page-title {
        font-size: 1.45rem;
    }
	.no-results .page-content p {
        font-size: 1rem;
        line-height: 1.4rem;
    }
	.no-results .search-form {
        max-width: 100%;
    }
	.no-results .search-field {
        font-size: .9rem;
        padding: .7rem 1rem;
    }
	.no-results .search-submit {
        font-size: .9rem;
        padding: .7rem 1.2rem;
    }
    .site-main {
        margin-top: 15px;
    }
}