/* Pagination Enhancements - Style Global Cohérent */
/* Améliorations des styles de pagination alignés avec le style neumorphique global */

/* Container de pagination */
.np-pagination-wrapper {
    margin: var(--np-spacing-xl) 0;
    padding: var(--np-spacing-md) 0;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Navigation de pagination - Style cohérent avec les boutons globaux */
.np-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--np-spacing-sm);
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding: var(--np-spacing-md);
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    background: var(--np-card-bg);
    border-radius: var(--np-border-radius-lg);
    box-shadow: var(--np-shadow-light);
}

.np-pagination::-webkit-scrollbar {
    display: none;
}

/* Liens de pagination - Style cohérent avec .np-btn */
.np-pagination .np-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7289da;
    text-decoration: none;
    border-radius: 8px;
    background: #e0e5ec;
    box-shadow: 3px 3px 6px #caced6, -3px -3px 6px #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--np-font-family);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* Effet hover - Cohérent avec .np-btn:hover */
.np-pagination .np-page-link:hover {
    color: #5865f2;
    box-shadow: inset 2px 2px 4px #caced6, inset -2px -2px 4px #fff;
    transform: translateY(-1px);
}

/* Effet actif - Cohérent avec .np-btn:active */
.np-pagination .np-page-link:active {
    color: #4752c4;
    box-shadow: inset 3px 3px 6px #caced6, inset -3px -3px 6px #fff;
    transform: translateY(1px);
}

/* Page courante - Style spécial avec gradient */
.np-pagination .np-page-link.current {
    background: linear-gradient(135deg, var(--np-primary-color), var(--np-secondary-color));
    color: #fff;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2), inset -2px -2px 4px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.np-pagination .np-page-link.current:hover {
    color: #fff;
    box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3), inset -3px -3px 6px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.np-pagination .np-page-link.current:active {
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.4), inset -4px -4px 8px rgba(255, 255, 255, 0.05);
    transform: translateY(0);
}

/* Boutons précédent/suivant - Style cohérent */
.np-pagination .np-page-link.np-page-prev,
.np-pagination .np-page-link.np-page-next {
    min-width: 120px;
    font-weight: 500;
    position: relative;
}

.np-pagination .np-page-link.np-page-prev i,
.np-pagination .np-page-link.np-page-next i {
    font-size: 0.8rem;
    margin: 0 0.5rem;
    transition: transform 0.3s ease;
}

/* Animation des icônes */
.np-pagination .np-page-link.np-page-prev:hover i {
    transform: translateX(-3px);
}

.np-pagination .np-page-link.np-page-next:hover i {
    transform: translateX(3px);
}

/* Points de suspension */
.np-pagination .np-page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    min-width: 45px;
    color: var(--np-text-color);
    font-weight: 600;
    opacity: 0.6;
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    background: var(--np-card-bg);
    border-radius: 8px;
    box-shadow: var(--np-shadow-inset);
}

/* Effet de focus pour l'accessibilité */
.np-pagination .np-page-link:focus {
    outline: none;
    box-shadow: 3px 3px 6px #caced6, -3px -3px 6px #fff, 0 0 0 3px rgba(45, 76, 200, 0.3);
    transform: translateY(-1px);
}

/* État désactivé */
.np-pagination .np-page-link:disabled,
.np-pagination .np-page-link[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--np-shadow-inset);
}

.np-pagination .np-page-link:disabled:hover,
.np-pagination .np-page-link[aria-disabled="true"]:hover {
    transform: none;
    box-shadow: var(--np-shadow-inset);
    color: #7289da;
}

/* Responsive - Cohérent avec les autres éléments */
@media (max-width: 768px) {
    .np-pagination {
        gap: var(--np-spacing-xs);
        padding: var(--np-spacing-sm);
    }
    
    .np-pagination .np-page-link {
        font-size: 0.85rem;
        height: 40px;
        min-width: 40px;
        padding: 0.6rem 1.2rem;
    }
    
    .np-pagination .np-page-link.np-page-prev,
    .np-pagination .np-page-link.np-page-next {
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .np-pagination .np-page-dots {
        height: 40px;
        min-width: 40px;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .np-pagination {
        gap: 0.25rem;
    }
    
    .np-pagination .np-page-link {
        font-size: 0.8rem;
        height: 35px;
        min-width: 35px;
        padding: 0.5rem 1rem;
    }
    
    .np-pagination .np-page-link.np-page-prev,
    .np-pagination .np-page-link.np-page-next {
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    .np-pagination .np-page-dots {
        height: 35px;
        min-width: 35px;
        padding: 0.5rem 1rem;
    }
}

/* Animation d'entrée */
.np-pagination-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Harmonisation avec le style global */
.np-pagination {
    /* Utilise les mêmes variables que les boutons globaux */
    --np-button-bg: #e0e5ec;
    --np-button-shadow: 3px 3px 6px #caced6, -3px -3px 6px #fff;
    --np-button-shadow-inset: inset 2px 2px 4px #caced6, inset -2px -2px 4px #fff;
    --np-button-shadow-pressed: inset 3px 3px 6px #caced6, inset -3px -3px 6px #fff;
    --np-button-color: #7289da;
    --np-button-color-hover: #5865f2;
    --np-button-color-active: #4752c4;
}

/* Style cohérent avec les cartes du thème */
.np-pagination {
    background: var(--np-card-bg);
    border-radius: var(--np-border-radius-lg);
    box-shadow: var(--np-shadow-light);
    position: relative;
}

.np-pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    border-radius: var(--np-border-radius-lg);
    pointer-events: none;
    z-index: 1;
}

.np-pagination > * {
    position: relative;
    z-index: 2;
}

/* Effet de profondeur pour les liens */
.np-pagination .np-page-link {
    position: relative;
    z-index: 2;
}

.np-pagination .np-page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 8px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.np-pagination .np-page-link:hover::before {
    background: linear-gradient(135deg, 
        rgba(45, 76, 200, 0.1), 
        rgba(24, 99, 75, 0.1)
    );
}

/* Style spécial pour la page courante */
.np-pagination .np-page-link.current::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2), 
        rgba(255, 255, 255, 0.1)
    );
} 