/**
 * NextGEN Artwork Connector - Pagination Styles
 * 
 * Professional pagination design with modern UI
 */

.nggac-gallery-pagination {
    margin: 40px 0;
    padding: 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.nggac-pagination-info {
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nggac-pagination-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nggac-page-prev,
.nggac-page-next,
.nggac-page-link {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    line-height: 1;
}

.nggac-page-prev,
.nggac-page-next {
    font-weight: 600;
    padding: 0 20px;
}

.nggac-page-prev:hover,
.nggac-page-next:hover,
.nggac-page-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nggac-page-prev:active,
.nggac-page-next:active,
.nggac-page-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nggac-page-prev.disabled,
.nggac-page-next.disabled,
.nggac-page-prev:disabled,
.nggac-page-next:disabled {
    background: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #e9ecef;
    box-shadow: none;
}

.nggac-page-prev.disabled:hover,
.nggac-page-next.disabled:hover,
.nggac-page-prev:disabled:hover,
.nggac-page-next:disabled:hover {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
    transform: none;
    box-shadow: none;
}

.nggac-page-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nggac-page-current {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 2px solid #2563eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    line-height: 1;
}

.nggac-page-dots {
    padding: 0 8px;
    color: #adb5bd;
    font-size: 16px;
    font-weight: 600;
    height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Hover effect for non-disabled buttons */
.nggac-page-prev:not(:disabled):not(.disabled),
.nggac-page-next:not(:disabled):not(.disabled),
.nggac-page-link {
    position: relative;
    overflow: hidden;
}

.nggac-page-prev:not(:disabled):not(.disabled)::before,
.nggac-page-next:not(:disabled):not(.disabled)::before,
.nggac-page-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nggac-page-prev:not(:disabled):not(.disabled):hover::before,
.nggac-page-next:not(:disabled):not(.disabled):hover::before,
.nggac-page-link:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nggac-gallery-pagination {
        margin: 30px 0;
    }
    
    .nggac-pagination-info {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .nggac-page-prev,
    .nggac-page-next,
    .nggac-page-link,
    .nggac-page-current {
        min-width: 40px;
        height: 40px;
        padding: 0 14px;
        font-size: 14px;
        border-radius: 6px;
    }
    
    .nggac-page-prev,
    .nggac-page-next {
        padding: 0 16px;
    }
    
    .nggac-pagination-links {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .nggac-gallery-pagination {
        margin: 25px 0;
    }
    
    .nggac-pagination-info {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .nggac-page-prev,
    .nggac-page-next,
    .nggac-page-link,
    .nggac-page-current {
        min-width: 36px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .nggac-page-prev,
    .nggac-page-next {
        padding: 0 14px;
    }
    
    .nggac-pagination-links {
        gap: 4px;
    }
    
    .nggac-page-dots {
        padding: 0 6px;
    }
}

/* Focus styles for accessibility */
.nggac-page-prev:focus,
.nggac-page-next:focus,
.nggac-page-link:focus {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .nggac-pagination-info {
        color: #cbd5e0;
    }
    
    .nggac-page-prev,
    .nggac-page-next,
    .nggac-page-link {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .nggac-page-prev:hover,
    .nggac-page-next:hover,
    .nggac-page-link:hover {
        background: #3b82f6;
        border-color: #3b82f6;
    }
    
    .nggac-page-prev.disabled,
    .nggac-page-next.disabled,
    .nggac-page-prev:disabled,
    .nggac-page-next:disabled {
        background: #1a202c;
        color: #4a5568;
        border-color: #2d3748;
    }
}
