/* ============================================================
   Dyagnus Google Reviews – Frontend CSS
   Design idêntico ao Trustindex / imagem de referência
   ============================================================ */

/* --- Wrapper principal --- */
.dgr-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 24px 0;
    position: relative;
    overflow: hidden;
}

/* --- Bloco resumo (EXCELENTE) --- */
.dgr-summary {
    flex: 0 0 180px;
    min-width: 160px;
    text-align: center;
    padding-right: 16px;
}

.dgr-summary__label {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dgr-summary__stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 6px;
}

.dgr-summary__stars .dgr-star {
    font-size: 26px;
    color: #d0d0d0;
}

.dgr-summary__stars .dgr-star--full {
    color: #f5a623;
}

.dgr-summary__count {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

.dgr-summary__count strong {
    color: #222;
}

.dgr-summary__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.dgr-summary__google span {
    font-size: 18px;
    font-weight: 700;
    color: #444;
    letter-spacing: -0.3px;
}

/* --- Google icon --- */
.dgr-google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dgr-google-icon--sm {
    width: 18px;
    height: 18px;
    margin-left: auto;
}

/* --- Track wrapper (carousel area) --- */
.dgr-track-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.dgr-track {
    display: flex;
    gap: 16px;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* --- Card individual --- */
.dgr-card {
    background: #f7f7f8;
    border-radius: 12px;
    padding: 18px 20px;
    flex: 0 0 calc(33.333% - 12px);
    min-width: 220px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.2s ease;
}

.dgr-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Card header: avatar + nome + tempo + google icon */
.dgr-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Avatar circular com inicial */
.dgr-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.dgr-card__meta {
    flex: 1;
    min-width: 0;
}

.dgr-card__name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dgr-card__time {
    font-size: 11px;
    color: #888;
    margin-top: 1px;
}

/* Stars row inside card */
.dgr-card__stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dgr-card__stars .dgr-star {
    font-size: 18px;
    color: #d0d0d0;
}

.dgr-card__stars .dgr-star--full {
    color: #f5a623;
}

/* Verified check icon */
.dgr-verified {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

/* Review text */
.dgr-card__text {
    font-size: 13px;
    line-height: 1.55;
    color: #333;
    flex: 1;
}

.dgr-read-more {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    font-style: italic;
    cursor: pointer;
}

.dgr-read-more:hover {
    color: #555;
    text-decoration: underline;
}

/* --- Navigation arrows --- */
.dgr-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1;
    color: #444;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dgr-nav:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.dgr-nav--prev {
    left: 0;
}

.dgr-nav--next {
    right: 0;
}

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

/* --- Error block (admin only) --- */
.dgr-error {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #664d03;
}

.dgr-error a {
    margin-left: 8px;
    color: #0d6efd;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .dgr-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .dgr-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .dgr-summary {
        flex: none;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 16px;
    }

    .dgr-card {
        flex: 0 0 calc(100% - 8px);
    }

    .dgr-nav--prev { left: 4px; }
    .dgr-nav--next { right: 4px; }
}
