/* Academia Google Reviews v2 — Cards estilo Google */

.agr-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 2rem 0;
    color: #1a1a1a;
}

.agr-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-align: center;
}

/* ── Carrossel ── */
.agr-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agr-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 8px;
    flex: 1;
}

.agr-carousel::-webkit-scrollbar { display: none; }

/* ── Card individual ── */
.agr-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    min-width: 260px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.agr-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.agr-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #4285F4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agr-avatar img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.agr-avatar span {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.agr-card-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.agr-author {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.agr-date {
    font-size: 0.75rem;
    color: #999;
}

.agr-google-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* ── Estrelas ── */
.agr-card-stars { display: flex; gap: 1px; }
.agr-star { font-size: 1rem; line-height: 1; }
.agr-star.full  { color: #FBBC05; }
.agr-star.half  { color: #FBBC05; opacity: 0.55; }
.agr-star.empty { color: #e0e0e0; }

/* ── Texto do review ── */
.agr-card-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
    flex: 1;
}

.agr-read-more {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.82rem;
    color: #1a73e8;
    cursor: pointer;
    text-align: left;
}

.agr-read-more:hover { text-decoration: underline; }

/* ── Botões de navegação ── */
.agr-nav {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 36px; height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: background 0.15s, box-shadow 0.15s;
    padding: 0;
}

.agr-nav:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Rodapé com nota geral ── */
.agr-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.85rem;
}

.agr-overall-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.agr-footer-stars { display: flex; gap: 1px; }
.agr-footer-stars .agr-star { font-size: 0.95rem; }

.agr-total { color: #666; }

.agr-footer-logo {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
}

/* ── Responsivo ── */
@media (max-width: 500px) {
    .agr-card { min-width: 220px; }
    .agr-nav  { width: 30px; height: 30px; font-size: 1.1rem; }
}
