/* =========================================================
   Stratos Google Reviews – frontend styles
   ========================================================= */

/* ------ Layout: grid -------------------------------------- */
.sgr-reviews.sgr-layout--grid {
    display: grid;
    gap: 16px;
}
.sgr-layout--grid.sgr-cols--1 { grid-template-columns: 1fr; }
.sgr-layout--grid.sgr-cols--2 { grid-template-columns: repeat(2, 1fr); }
.sgr-layout--grid.sgr-cols--3 { grid-template-columns: repeat(3, 1fr); }
.sgr-layout--grid.sgr-cols--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .sgr-layout--grid.sgr-cols--4,
    .sgr-layout--grid.sgr-cols--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .sgr-layout--grid.sgr-cols--4,
    .sgr-layout--grid.sgr-cols--3,
    .sgr-layout--grid.sgr-cols--2 { grid-template-columns: 1fr; }
}

/* Grid cards fill their row height */
.sgr-layout--grid .sgr-card {
    height: 100%;
}

/* ------ Layout: slider ------------------------------------ */
.sgr-reviews.sgr-layout--slider {
    position: relative;
    overflow: hidden;
}
.sgr-slider-track {
    display: flex;
    transition: transform 0.35s ease;
    cursor: grab;
    user-select: none;
}
.sgr-slider-track:active {
    cursor: grabbing;
}
.sgr-slide {
    flex: 0 0 100%;
    padding: 0 4px;
    box-sizing: border-box;
    display: flex;
}
.sgr-slide .sgr-card {
    flex: 1;
}
@media (min-width: 601px)  { .sgr-slide { flex: 0 0 50%; } }
@media (min-width: 901px)  { .sgr-slide { flex: 0 0 33.333%; } }

.sgr-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

/* Left: brand block */
.sgr-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 8px;
}
.sgr-google-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.sgr-header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sgr-header-label {
    font-size: 13px;
    font-weight: 600;
    color: #202124;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    line-height: 1;
}
.sgr-header-score {
    display: flex;
    align-items: center;
    gap: 5px;
}
.sgr-header-avg {
    font-size: 13px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}
.sgr-header-stars {
    display: flex;
    gap: 1px;
}
.sgr-header-star {
    font-size: 13px;
    line-height: 1;
    background: linear-gradient(to right, #f5a623 var(--fill), #dadce0 var(--fill));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sgr-header-count {
    font-size: 12px;
    color: #70757a;
    line-height: 1;
}

/* Action button */
.sgr-header-action {
    margin-left: auto;
    flex-shrink: 0;
}
.sgr-header-action .btn-stratos {
    padding: 6px 14px;
    font-size: 14px;
}

/* Right: arrows */
.sgr-header-arrows {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.sgr-prev,
.sgr-next {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.15s;
}
.sgr-prev:hover,
.sgr-next:hover { box-shadow: 0 1px 6px rgba(0,0,0,.15); }

/* ------ Card ---------------------------------------------- */
.sgr-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #202124;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.sgr-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.sgr-card--linked {
    cursor: pointer;
}

/* Header */
.sgr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.sgr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    user-select: none;
}
img.sgr-avatar {
    object-fit: cover;
    display: block;
}
.sgr-author-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    line-height: 1.3;
}
.sgr-reviewer-info {
    font-size: 12px;
    color: #70757a;
    margin-top: 2px;
}

/* Stars + date */
.sgr-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sgr-stars {
    display: flex;
    gap: 1px;
    line-height: 1;
}
.sgr-star {
    font-size: 15px;
}
.sgr-star--filled { color: #f5a623; }
.sgr-star--empty  { color: #dadce0; }

.sgr-date {
    font-size: 12px;
    color: #70757a;
}

/* Review text */
.sgr-text {
    flex: 1;
    color: #3c4043;
    font-size: 14px;
}
.sgr-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    color: #1a73e8;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
}
.sgr-toggle:hover { text-decoration: underline; }

/* Badge */
.sgr-google-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f3f4;
}
.sgr-google-badge span {
    font-size: 11px;
    color: #70757a;
    letter-spacing: .02em;
}

/* Empty state */
.sgr-empty {
    color: #70757a;
    font-style: italic;
}