/* ============================================================
   Artisan Google Reviews – Carousel Styles
   ============================================================ */

/* ── Wrapper ── */
.agr-wrapper {
    max-width: 960px;
    margin: 40px auto;
    font-family: inherit;
}

.agr-section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* ── Overall Rating Banner ── */
.agr-overall {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 16px 24px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 28px;
    border: 1px solid #e8e8e8;
}

.agr-overall__score {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.agr-overall__count {
    font-size: 0.875rem;
    color: #666;
}

.agr-overall__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4285F4;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.agr-overall__link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* ── Stars ── */
.agr-stars {
    display: inline-flex;
    gap: 2px;
    color: #f4a823;
}

.agr-star {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.agr-star--empty {
    color: #ddd;
    fill: currentColor;
}

/* ── Carousel Container ── */
.agr-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 52px; /* space for dots */
    user-select: none;
}

/* ── Track ── */
.agr-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* ── Slide ── */
.agr-slide {
    min-width: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
}

/* Desktop: show 2 slides side by side */
@media (min-width: 640px) {
    .agr-slide {
        min-width: 50%;
    }
}

@media (min-width: 900px) {
    .agr-slide {
        min-width: 33.333%;
    }
}

/* ── Card ── */
.agr-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px 20px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s;
}

.agr-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
}

.agr-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.agr-card__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.agr-card__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4285F4;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.agr-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.agr-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.agr-card__time {
    font-size: 0.78rem;
    color: #999;
}

.agr-card__google-icon {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.85;
}

.agr-card__text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* Read more button */
.agr-read-more {
    background: none;
    border: none;
    color: #4285F4;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    margin-left: 4px;
    text-decoration: underline;
}

.agr-read-more:hover {
    color: #2a6dd9;
}

/* ── Navigation Arrows ── */
.agr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 26px));
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: background 0.2s, box-shadow 0.2s;
    z-index: 10;
    color: #333;
}

.agr-nav:hover {
    background: #f0f0f0;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.agr-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

.agr-nav--prev { left: 0; }
.agr-nav--next { right: 0; }

/* ── Dots ── */
.agr-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    align-items: center;
}

.agr-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.agr-dot--active {
    background: #4285F4;
    transform: scale(1.3);
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .agr-track { transition: none; }
    .agr-card  { transition: none; }
}
