/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    margin: 60px 0 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Pagination Buttons (Prev/Next) */
.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
}

/* Page Numbers Container */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Individual Page Numbers */
.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    cursor: default;
}

/* Ellipsis */
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Page Info */
.pagination-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   LIGHT MODE
   ============================================ */

[data-theme="light"] .pagination {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pagination-btn {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(138, 43, 226, 0.08));
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--dark-text);
}

[data-theme="light"] .pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(138, 43, 226, 0.15));
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

[data-theme="light"] .pagination-number {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--dark-text);
}

[data-theme="light"] .pagination-number:hover {
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-cyan);
}

[data-theme="light"] .pagination-number.active {
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .pagination-container {
        gap: 10px;
    }
    
    .pagination-btn span {
        display: none; /* Hide text on mobile */
    }
    
    .pagination-btn {
        padding: 12px;
        min-width: 44px;
        justify-content: center;
    }
    
    .pagination-number {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Show fewer page numbers on mobile */
    .pagination-numbers {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .pagination {
        margin: 40px 0 30px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

