/**
 * Modern Navigation for NFDS Reviews Carousel
 * Replaces dots with arrows and counter
 */

/* Navigation Wrapper */
.ars-navigation-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0;
}

/* Modern Navigation Container */
.ars-navigation-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid #d1d5db;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    width: auto;
    max-width: 280px;
}

/* Arrow Buttons */
.ars-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ars-nav-arrow:hover {
    background: #007cba;
    border-color: #007cba;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

.ars-nav-arrow:active {
    transform: scale(0.95);
}

.ars-nav-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f7fa;
    border-color: #e1e5eb;
}

.ars-nav-arrow:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ars-nav-arrow svg {
    width: 20px;
    height: 20px;
}

/* Review Counter */
.ars-review-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    user-select: none;
    white-space: nowrap;
    padding: 0 10px;
}

.ars-current-page {
    color: #007cba;
    font-weight: 700;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.ars-counter-separator {
    color: #8b95a7;
    font-weight: 400;
    font-size: 14px;
    margin: 0 3px;
}

.ars-total-pages {
    color: #2d3748;
    font-weight: 600;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.ars-counter-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    margin-right: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ars-navigation-modern {
        gap: 12px;
        padding: 8px 16px;
        margin-top: 20px;
    }

    .ars-nav-arrow {
        width: 32px;
        height: 32px;
    }

    .ars-nav-arrow svg {
        width: 16px;
        height: 16px;
    }

    .ars-review-counter {
        font-size: 12px;
        gap: 4px;
        padding: 0 5px;
    }

    .ars-current-range,
    .ars-total-reviews {
        font-size: 13px;
    }

    .ars-counter-separator,
    .ars-counter-label {
        font-size: 11px;
    }
}

/* Animation for counter update */
.ars-current-page {
    transition: all 0.3s ease;
}

.ars-current-page.updating {
    transform: scale(1.15);
    color: #0056b3;
}

/* Hide old dots navigation if still present */
.ars-dots {
    display: none !important;
}

/* Optional: Loading state */
.ars-navigation-modern.loading {
    pointer-events: none;
    opacity: 0.7;
}

.ars-navigation-modern.loading .ars-review-counter::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}