/**
 * Unified Pagination Styles
 * Used across all archive templates (Article, Team, Event, Author)
 */

/* Pagination Container */
.waen-pagination {
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.waen-pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Pagination Links */
.waen-pagination a,
.waen-pagination .page-numbers {
    padding: 10px 16px;
    background: transparent;
    color: var(--waen-text-color);
    text-decoration: none;
    border-radius: 0;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Pagination Spans (current page, dots) */
.waen-pagination span:not(.nav-text):not(.dashicons),
.waen-pagination .page-numbers.dots {
    padding: 10px 16px;
    background: transparent;
    color: var(--waen-text-color);
    text-decoration: none;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Hover State */
.waen-pagination a:hover,
.waen-pagination .page-numbers:hover {
    background: var(--waen-primary-color);
    color: #fff;
    border-color: var(--waen-primary-color);
}

/* Hover State for Icons inside links */
.waen-pagination a:hover .dashicons,
.waen-pagination a:hover i,
.waen-pagination a:hover span.dashicons,
.waen-pagination .page-numbers:hover .dashicons,
.waen-pagination .page-numbers:hover i {
    color: #fff;
}

/* Current Page */
.waen-pagination .current,
.waen-pagination .page-numbers.current {
    background-color: var(--waen-primary-color) !important;
    color: #fff !important;
    border-color: var(--waen-primary-color) !important;
}

/* Current Page Icons */
.waen-pagination .current .dashicons,
.waen-pagination .current i,
.waen-pagination .current span.dashicons,
.waen-pagination .page-numbers.current .dashicons,
.waen-pagination .page-numbers.current i {
    color: #fff;
}

/* Dots */
.waen-pagination .dots,
.waen-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* Icons - Support both <i> and <span> tags */
.waen-pagination .dashicons,
.waen-pagination i.dashicons,
.waen-pagination span.dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.waen-pagination .nav-text {
    padding: 0;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .waen-pagination a,
    .waen-pagination span,
    .waen-pagination .page-numbers {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .waen-pagination .prev,
    .waen-pagination .next,
    .waen-pagination .page-numbers.prev,
    .waen-pagination .page-numbers.next {
        width: 40px;
        height: 40px;
    }
    
    .waen-pagination .nav-text {
        display: none;
    }
    
    .waen-pagination .dashicons {
        display: flex;
        justify-content: center;
    }
}
