/* =============================================
   Google Reviews — Frontend CSS
   Cinnamon Creative · cinnamoncreative.co
   ============================================= */

:root {
    --gr-accent: #F5A623;
    --gr-text:   #1e2329;
    --gr-muted:  #888;
    --gr-bg:     #fff;
    --gr-border: #f0f0f0;
    --gr-shadow: 0 2px 8px rgba(0,0,0,.08);
    --gr-radius: 12px;
}

/* ── Theme ── */
.gr-theme-dark {
    --gr-text:   #f0f2f5;
    --gr-muted:  #9aa0ab;
    --gr-bg:     #1e2329;
    --gr-border: #2c323a;
    --gr-shadow: 0 2px 12px rgba(0,0,0,.3);
}
@media (prefers-color-scheme: dark) {
    .gr-theme-auto {
        --gr-text:   #f0f2f5;
        --gr-muted:  #9aa0ab;
        --gr-bg:     #1e2329;
        --gr-border: #2c323a;
        --gr-shadow: 0 2px 12px rgba(0,0,0,.3);
    }
}

.gr-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.gr-no-reviews { color: var(--gr-muted); font-size: 14px; }
.gr-section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--gr-text); }

/* ════════════════════════════════════════════
   CARD — shared across all layouts
   ════════════════════════════════════════════ */
.gr-card {
    background: var(--gr-bg);
    border-radius: var(--gr-radius);
    padding: 20px;
    box-shadow: var(--gr-shadow);
    border: 1px solid var(--gr-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .2s, transform .2s;
}
.gr-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); }

.gr-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gr-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gr-accent);
    display: flex; align-items: center; justify-content: center;
}
.gr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gr-avatar-initial { font-size: 18px; font-weight: 700; color: #fff; }
.gr-card-meta { flex: 1; min-width: 0; }
.gr-reviewer-name { display: block; font-size: 14px; font-weight: 600; color: var(--gr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-review-date   { display: block; font-size: 12px; color: var(--gr-muted); margin-top: 1px; }
.gr-card-logo { margin-left: auto; flex-shrink: 0; }

/* Stars */
.gr-stars { display: flex; }
.gr-stars-row { display: inline-flex; gap: 2px; }
.gr-star { width: 16px; height: 16px; }
.gr-stars-md .gr-star { width: 18px; height: 18px; }
.gr-stars-sm .gr-star { width: 13px; height: 13px; }
.gr-star-full  { color: var(--gr-accent); fill: currentColor; }
.gr-star-half  { color: var(--gr-accent); }
.gr-star-empty { color: #ddd; fill: currentColor; }
.gr-theme-dark .gr-star-empty { color: #444; }

/* Comment */
.gr-comment { font-size: 14px; color: var(--gr-text); line-height: 1.55; }
.gr-comment-text { margin: 0; }
.gr-read-more {
    background: none; border: none; padding: 0;
    color: var(--gr-accent); font-size: 13px; cursor: pointer;
    margin-top: 4px; display: inline-block;
}
.gr-read-more:hover { text-decoration: underline; }

/* Reply */
.gr-reply {
    background: var(--gr-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gr-muted);
}
.gr-reply-header { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 5px; color: var(--gr-text); font-size: 13px; }
.gr-reply-text { margin: 0; line-height: 1.5; }

/* Google logo SVG */
.gr-google-logo { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ════════════════════════════════════════════
   GRID LAYOUT
   ════════════════════════════════════════════ */
.gr-layout-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
.gr-layout-grid.gr-cols-1 { grid-template-columns: 1fr; }
.gr-layout-grid.gr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gr-layout-grid.gr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gr-layout-grid.gr-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ════════════════════════════════════════════
   LIST LAYOUT
   ════════════════════════════════════════════ */
.gr-layout-list { display: flex; flex-direction: column; gap: 12px; }
.gr-layout-list .gr-card { flex-direction: row; align-items: flex-start; padding: 16px 20px; gap: 16px; }
.gr-layout-list .gr-card > * { flex: none; }
.gr-layout-list .gr-card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gr-layout-list .gr-card-header { margin-bottom: 0; }

/* ════════════════════════════════════════════
   MASONRY LAYOUT
   ════════════════════════════════════════════ */
.gr-layout-masonry {
    columns: 3;
    column-gap: 20px;
}
.gr-layout-masonry.gr-cols-2 { columns: 2; }
.gr-layout-masonry.gr-cols-4 { columns: 4; }
.gr-layout-masonry .gr-card {
    break-inside: avoid;
    margin-bottom: 20px;
    display: block;
}
@media (max-width: 900px) { .gr-layout-masonry { columns: 2; } }
@media (max-width: 600px) { .gr-layout-masonry { columns: 1; } }

/* ════════════════════════════════════════════
   FEATURED LAYOUT
   ════════════════════════════════════════════ */
.gr-layout-featured .gr-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 36px;
    text-align: center;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #fafbff 100%);
}
.gr-layout-featured .gr-card-header { flex-direction: column; gap: 8px; }
.gr-layout-featured .gr-comment { font-size: 17px; font-style: italic; line-height: 1.6; }
.gr-layout-featured .gr-avatar { width: 60px; height: 60px; }
.gr-layout-featured .gr-avatar-initial { font-size: 24px; }
.gr-layout-featured .gr-stars { justify-content: center; }
.gr-theme-dark .gr-layout-featured .gr-card { background: linear-gradient(135deg, #1e2329, #252b34); }

/* ════════════════════════════════════════════
   SLIDER LAYOUT
   ════════════════════════════════════════════ */
.gr-layout-slider {
    position: relative;
    overflow: hidden;
    padding: 4px 0 44px;
}
.gr-slider-track {
    display: flex;
    gap: 20px;
    transition: transform .4s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.gr-layout-slider .gr-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 260px;
}
.gr-slider-prev,
.gr-slider-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gr-bg);
    border: 1.5px solid var(--gr-border);
    box-shadow: var(--gr-shadow);
    cursor: pointer;
    font-size: 22px; line-height: 1;
    color: var(--gr-text);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, transform .15s;
    z-index: 2;
    padding: 0; margin-top: -20px;
}
.gr-slider-prev { left: -8px; }
.gr-slider-next { right: -8px; }
.gr-slider-prev:hover,
.gr-slider-next:hover { background: var(--gr-accent); color: #fff; border-color: var(--gr-accent); }

.gr-slider-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
}
.gr-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gr-border); border: none; padding: 0; cursor: pointer;
    transition: background .2s, transform .2s;
}
.gr-dot.active { background: var(--gr-accent); transform: scale(1.3); }

@media (max-width: 900px) {
    .gr-layout-slider .gr-card { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
    .gr-layout-slider .gr-card { flex: 0 0 calc(100%); }
    .gr-slider-prev { left: 0; }
    .gr-slider-next { right: 0; }
}

/* ════════════════════════════════════════════
   BADGE
   ════════════════════════════════════════════ */
.gr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 40px;
    background: var(--gr-bg);
    box-shadow: var(--gr-shadow);
    border: 1px solid var(--gr-border);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.gr-badge-link { display: contents; text-decoration: none; }
.gr-badge-rating { font-size: 20px; font-weight: 700; color: var(--gr-text); line-height: 1; }
.gr-badge-count  { font-size: 13px; color: var(--gr-muted); }

.gr-badge-box {
    border-radius: 10px;
    flex-direction: column;
    padding: 16px 20px;
    text-align: center;
    gap: 4px;
}
.gr-badge-minimal { background: transparent; border: none; box-shadow: none; padding: 0; gap: 6px; }
.gr-badge-inline  { border-radius: 4px; padding: 4px 10px; gap: 5px; }

/* ════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════ */
.gr-theme-dark .gr-card  { border-color: var(--gr-border); }
.gr-theme-dark .gr-reply { background: #252b34; }
