/* ApplyRight Reviews.io Carousel - Isolated Styles */
/* All styles scoped with .arreviews- prefix to prevent conflicts */

:root {
    --arreviews-primary: #1D2F50;
    --arreviews-star: #FFB800;
    --arreviews-text: #333;
    --arreviews-text-light: #666;
    --arreviews-bg: #fff;
    --arreviews-border: #e5e7eb;
    --arreviews-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.arreviews-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
    box-sizing: border-box;
}

.arreviews-container *,
.arreviews-container *::before,
.arreviews-container *::after {
    box-sizing: border-box;
}

/* Header Section */
.arreviews-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--arreviews-bg);
    border-radius: 16px;
    box-shadow: var(--arreviews-shadow);
}

.arreviews-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.arreviews-logo {
    width: 60px;
    height: 60px;
    background: var(--arreviews-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.arreviews-company-name {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--arreviews-text);
}

.arreviews-rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.arreviews-rating-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--arreviews-text);
}

.arreviews-stars-container {
    display: flex;
    gap: 2px;
}

.arreviews-star {
    fill: var(--arreviews-star);
}

.arreviews-star-empty {
    fill: #ddd;
}

.arreviews-review-count {
    font-size: 14px;
    color: var(--arreviews-text-light);
    padding-left: 10px;
    border-left: 1px solid var(--arreviews-border);
}

/* Percentage Bars */
.arreviews-header-right {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.arreviews-percentage-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.arreviews-percentage-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arreviews-percentage-label {
    width: 50px;
    font-size: 13px;
    color: var(--arreviews-text-light);
    text-align: right;
}

.arreviews-percentage-bar-container {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.arreviews-percentage-bar {
    height: 100%;
    background: var(--arreviews-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.arreviews-percentage-value {
    width: 45px;
    font-size: 13px;
    color: var(--arreviews-text-light);
    text-align: left;
}

/* Carousel */
.arreviews-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.arreviews-carousel-viewport {
    overflow: hidden;
    flex: 1;
    border-radius: 12px;
    padding: 20px;
}

.arreviews-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

/* Navigation Buttons */
.arreviews-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 2px solid var(--arreviews-primary);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--arreviews-primary);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 8px rgba(29, 47, 80, 0.1);
}

.arreviews-nav svg {
    stroke: var(--arreviews-primary);
    transition: stroke 0.3s ease;
}

.arreviews-nav:hover,
.arreviews-nav:focus,
.arreviews-nav:active {
    background: var(--arreviews-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(29, 47, 80, 0.2);
}

.arreviews-nav:hover svg,
.arreviews-nav:focus svg,
.arreviews-nav:active svg {
    stroke: white;
}

.arreviews-nav:focus-visible {
    outline: 2px solid var(--arreviews-primary);
    outline-offset: 2px;
}

.arreviews-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #d1d5db;
}

.arreviews-nav:disabled svg {
    stroke: #d1d5db;
}

.arreviews-nav:disabled:hover,
.arreviews-nav:disabled:focus,
.arreviews-nav:disabled:active {
    background: white;
    color: #d1d5db;
    transform: none;
}

.arreviews-nav:disabled:hover svg,
.arreviews-nav:disabled:focus svg,
.arreviews-nav:disabled:active svg {
    stroke: #d1d5db;
}

/* Review Cards */
.arreviews-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    background: var(--arreviews-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--arreviews-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.arreviews-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.arreviews-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.arreviews-reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--arreviews-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
    padding: 8px;
}

.arreviews-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    shape-rendering: geometricPrecision;
}

.arreviews-reviewer-info {
    flex: 1;
}

.arreviews-reviewer-name {
    display: block;
    font-weight: 600;
    color: var(--arreviews-text);
    font-size: 15px;
}

.arreviews-review-date {
    display: block;
    font-size: 13px;
    color: var(--arreviews-text-light);
    margin-top: 2px;
}

.arreviews-verified-badge {
    width: 28px;
    height: 28px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.arreviews-card-rating {
    margin-bottom: 12px;
}

.arreviews-review-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--arreviews-text);
    line-height: 1.4;
}

.arreviews-review-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--arreviews-text-light);
}

/* Dots/Bullets Navigation */
.arreviews-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.arreviews-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.arreviews-dot:hover,
.arreviews-dot:focus {
    background: #9ca3af;
    transform: scale(1.2);
}

.arreviews-dot.active {
    background: var(--arreviews-primary);
    width: 32px;
    border-radius: 6px;
}

.arreviews-dot:focus-visible {
    outline: 2px solid var(--arreviews-primary);
    outline-offset: 2px;
}

/* Navigation Controls Container */
.arreviews-nav-controls {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 0;
    margin-bottom: 24px;
    width: 100%;
}

/* All Reviews Button */
.arreviews-all-reviews-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--arreviews-primary);
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(29, 47, 80, 0.15);
}

.arreviews-all-reviews-btn:hover {
    background: #152238;
    color: white !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(29, 47, 80, 0.25);
}

/* Attribution */
.arreviews-attribution {
    text-align: center;
    margin: 24px auto 0;
    padding: 0 0px;
    font-size: 13px;
    color: var(--arreviews-text-light);
    display: block;
    width: 100%;
}

.arreviews-attribution span {
    display: inline;
    margin-right: 4px;
}

.arreviews-attribution a {
    color: var(--arreviews-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline;
}

.arreviews-attribution a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Error/Empty States */
.arreviews-error,
.arreviews-empty {
    text-align: center;
    padding: 40px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
}

.arreviews-empty {
    background: #f9fafb;
    border-color: var(--arreviews-border);
    color: var(--arreviews-text-light);
}

/* Responsive Design */

/* Hide arrows on desktop, show bullets */
@media (min-width: 769px) {
    .arreviews-nav {
        display: none !important;
    }

    .arreviews-dots {
        display: flex !important;
    }
}

@media (max-width: 1024px) {
    .arreviews-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    /* Show arrows on mobile, hide bullets */
    .arreviews-nav {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
    }

    .arreviews-dots {
        display: none !important;
        margin-bottom: 0;
    }

    .arreviews-nav-controls {
        margin-top: 28px;
        gap: 16px;
    }

    .arreviews-header {
        flex-direction: column;
        align-items: stretch;
    }

    .arreviews-header-right {
        max-width: none;
    }

    .arreviews-carousel-wrapper {
        gap: 10px;
    }

    .arreviews-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .arreviews-all-reviews-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .arreviews-container {
        padding: 20px 15px;
    }

    .arreviews-header {
        padding: 20px;
    }

    .arreviews-header-left {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .arreviews-rating-number {
        font-size: 28px;
    }

    .arreviews-company-name {
        font-size: 20px;
    }

    /* Smaller arrows on extra small screens */
    .arreviews-nav {
        display: inline-flex !important;
        width: 40px;
        height: 40px;
    }

    .arreviews-all-reviews-btn {
        padding: 11px 28px;
        font-size: 13px;
    }

    .arreviews-card {
        padding: 20px;
    }
}

/* ============================================
   Force LTR (Left-to-Right) in All Languages
   ============================================ */

/* Force LTR direction for the entire carousel container */
.arreviews-container {
    direction: ltr !important;
}

/* Ensure all child elements respect LTR */
.arreviews-container * {
    direction: ltr;
    text-align: left;
}

/* Stars always left-to-right */
.arreviews-stars-container {
    direction: ltr;
}

/* Review content alignment */
.arreviews-review-content,
.arreviews-review-title,
.arreviews-reviewer-name {
    text-align: left;
    direction: ltr;
}
