/**
 * Archive Page — Pure CSS
 */

/* ── Page wrapper ── */
.sh-archive {
    min-height: 100vh;
    background: var(--pi-bg, #f9fafb);
    padding-bottom: 5rem;
    overflow-x: hidden;
}

/* ── Hero Section ── */
.sh-archive__hero {
    padding: 5rem 1rem 6rem;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.sh-archive__hero-inner {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
}

.sh-archive__badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

.sh-archive__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .sh-archive__title {
        font-size: 3rem;
    }
}

.sh-archive__desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-weight: 500;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
    .sh-archive__desc {
        font-size: 1.25rem;
    }
}

.sh-archive__count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ── Content Grid ── */
.sh-archive__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 0;
    position: relative;
    z-index: 20;
}

.sh-archive__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .sh-archive__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .sh-archive__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ── Pagination icon ── */
.sh-archive__page-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Empty State ── */
.sh-archive__empty {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--pi-bg-card, #ffffff);
    border-radius: 1.5rem;
    border: 1px solid var(--pi-border-light, #f1f5f9);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sh-archive__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: var(--pi-bg-alt, #f3f4f6);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.sh-archive__empty-svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--pi-text-muted, #64748b);
}

.sh-archive__empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pi-text, #1e293b);
    margin: 0 0 0.5rem;
}

.sh-archive__empty-desc {
    color: var(--pi-text-3, #94a3b8);
    margin: 0 0 1.5rem;
}

.sh-archive__empty-btn {
    display: inline-block;
    background: var(--pi-primary, #007d3d);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--pi-radius, 0.75rem);
    text-decoration: none;
    transition: background-color 0.2s;
}

.sh-archive__empty-btn:hover {
    background: var(--pi-secondary, #ffb703);
}

/* ── Dark Mode ── */
.dark .sh-archive {
    background: var(--pi-bg, #0f172a);
}

.dark .sh-archive__empty {
    background: var(--pi-bg-card, #1e293b);
    border-color: var(--pi-border, #334155);
}

.dark .sh-archive__empty-icon {
    background: var(--pi-bg-elevated, #334155);
}

.dark .sh-archive__empty-title {
    color: var(--pi-text, #f1f5f9);
}
