/* ==========================================================================
   Archive Template Styles
   ========================================================================== */

/* Archive Header */
.archive-header-wrapper {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2a5e 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.archive-header-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(253, 95, 23, 0.1);
    border-radius: 50%;
}

.archive-header-wrapper .page-header {
    position: relative;
    z-index: 1;
    text-align: center;
}

.archive-header-wrapper .page-title {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.archive-header-wrapper .archive-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Archive Content */
.archive-content-wrapper {
    padding: 80px 0;
    background: var(--background-light);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Post Card */
.post-card {
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-card .post-category {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.post-card .post-category a {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card .post-category a:hover {
    background: var(--secondary-color);
}

.post-card .post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card .entry-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-card .entry-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card .entry-title a:hover {
    color: var(--primary-color);
}

.post-card .entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-card .entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-card .entry-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--primary-color);
}

.post-card .entry-excerpt {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-card .read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.post-card .read-more:hover {
    gap: 10px;
}

.post-card .read-more::after {
    content: '→';
    font-size: 16px;
}

/* Pagination */
.pagination {
    margin-top: 60px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nav-links .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.nav-links .page-numbers.dots:hover {
    background: transparent;
    color: var(--secondary-color);
}

.nav-links .prev,
.nav-links .next {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

.no-results h1 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.no-results p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .archive-header-wrapper {
        padding: 60px 0 40px;
    }

    .archive-header-wrapper .page-title {
        font-size: 36px;
    }

    .archive-content-wrapper {
        padding: 60px 0;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .archive-header-wrapper {
        padding: 40px 0 30px;
    }

    .archive-header-wrapper .page-title {
        font-size: 28px;
    }

    .archive-content-wrapper {
        padding: 40px 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card .post-content {
        padding: 20px;
    }

    .post-card .entry-title {
        font-size: 18px;
    }

    .no-results {
        padding: 50px 20px;
    }

    .no-results h1 {
        font-size: 28px;
    }
}
