/* ============================================================
   Google Reviews Carousel — Front-end Styles
   5 Themes: modern | dark | minimal | luxury | vibrant
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
.grc-wrapper *,
.grc-wrapper *::before,
.grc-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.grc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.grc-notice {
    padding: 1rem;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.grc-demo-notice {
    background: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 6px;
    padding: .5rem 1rem;
    font-size: 12px;
    color: #856404;
    margin-bottom: 1rem;
    text-align: center;
}

/* ── Layout ────────────────────────────────────────────────────────────────── */
.grc-inner {
    display: flex;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,.10);
    min-height: 480px;
}

/* ── Left Panel ────────────────────────────────────────────────────────────── */
.grc-place-panel {
    flex: 0 0 280px;
    max-width: 280px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.grc-place-header {
    display: flex;
    align-items: center;
}

.grc-google-badge {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .7;
}

.grc-google-icon { width: 16px; height: 16px; }

.grc-place-name {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.grc-place-address,
.grc-place-phone,
.grc-place-website {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    font-size: 13px;
    opacity: .8;
}

.grc-place-website a { text-decoration: none; }
.grc-place-website a:hover { text-decoration: underline; }

.grc-icon { flex-shrink: 0; font-size: 13px; margin-top: 1px; }

/* Rating block */
.grc-rating-block { margin-top: .5rem; }

.grc-rating-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.grc-rating-stars {
    display: flex;
    gap: 2px;
    font-size: 1.1rem;
    margin: .3rem 0;
}

.grc-rating-count { font-size: 12px; opacity: .7; }

/* Rating bars */
.grc-rating-bars { display: flex; flex-direction: column; gap: 4px; margin-top: .5rem; }

.grc-bar-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 11px;
}

.grc-bar-label { width: 22px; text-align: right; opacity: .7; flex-shrink: 0; }

.grc-bar-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,.12);
    overflow: hidden;
}

.grc-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .6s ease;
}

.grc-bar-count { width: 16px; font-size: 10px; opacity: .6; flex-shrink: 0; }

/* Write review button */
.grc-write-review-btn {
    display: inline-block;
    margin-top: .5rem;
    padding: .5rem 1rem;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid currentColor;
    transition: all .2s;
}
.grc-write-review-btn:hover { opacity: .8; transform: translateY(-1px); }

/* Hours */
.grc-hours-block { margin-top: .5rem; }
.grc-hours-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .6; margin-bottom: .4rem; }
.grc-hours-row { display: flex; justify-content: space-between; font-size: 11px; padding: 2px 0; }
.grc-hours-day { opacity: .7; }
.grc-hours-time { font-weight: 500; }

/* ── Right Carousel Panel ──────────────────────────────────────────────────── */
.grc-carousel-panel {
    flex: 1;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.grc-carousel {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
}

.grc-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    height: 100%;
    align-items: stretch;
}

/* ── Review Card ────────────────────────────────────────────────────────────── */
.grc-review-card {
    flex: 0 0 calc(33.333% - .68rem);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.25rem;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}

.grc-review-card:hover { transform: translateY(-3px); }

.grc-card-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    position: relative;
}

.grc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.grc-avatar img { width: 100%; height: 100%; object-fit: cover; }

.grc-reviewer-info { flex: 1; min-width: 0; }
.grc-reviewer-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grc-review-date   { font-size: 11px; opacity: .55; }

.grc-card-google { flex-shrink: 0; }

.grc-review-stars { display: flex; gap: 1px; font-size: 13px; }

.grc-review-text {
    font-size: 13px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stars color */
.grc-star--full  { color: #FBBC05; }
.grc-star--half  { color: #FBBC05; }
.grc-star--empty { color: #ccc; }

/* ── Navigation Buttons ────────────────────────────────────────────────────── */
.grc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all .2s;
    line-height: 1;
}

.grc-nav--prev { left: -8px; }
.grc-nav--next { right: -8px; }

.grc-nav:hover { transform: translateY(-50%) scale(1.1); }
.grc-nav:disabled { opacity: .3; cursor: not-allowed; }

/* ── Dots ───────────────────────────────────────────────────────────────────── */
.grc-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
}

.grc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .25s;
    opacity: .4;
}

.grc-dot.is-active { opacity: 1; width: 22px; border-radius: 4px; }

/* ════════════════════════════════════════════════════════════════
   THEME 1 — MODERN (clean white)
   ════════════════════════════════════════════════════════════════ */
.grc-style--modern .grc-place-panel {
    background: #f0f4ff;
    border-right: 1px solid #e0e7ff;
}
.grc-style--modern .grc-carousel-panel { background: #fff; }
.grc-style--modern .grc-place-name     { color: #1a1a2e; }
.grc-style--modern .grc-rating-number  { color: #4f46e5; }
.grc-style--modern .grc-bar-fill       { background: #4f46e5; }
.grc-style--modern .grc-write-review-btn { color: #4f46e5; border-color: #4f46e5; }
.grc-style--modern .grc-write-review-btn:hover { background: #4f46e5; color: #fff; }
.grc-style--modern .grc-review-card {
    background: #f8faff;
    border: 1px solid #e8edff;
    box-shadow: 0 2px 8px rgba(79,70,229,.06);
}
.grc-style--modern .grc-review-card:hover { box-shadow: 0 6px 20px rgba(79,70,229,.12); }
.grc-style--modern .grc-nav { background: #fff; color: #4f46e5; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.grc-style--modern .grc-dot { background: #4f46e5; }
.grc-style--modern .grc-place-website a { color: #4f46e5; }

/* ════════════════════════════════════════════════════════════════
   THEME 2 — DARK (elegant dark mode)
   ════════════════════════════════════════════════════════════════ */
.grc-style--dark .grc-inner { box-shadow: 0 4px 30px rgba(0,0,0,.4); }
.grc-style--dark .grc-place-panel {
    background: #0f172a;
    color: #e2e8f0;
    border-right: 1px solid #1e293b;
}
.grc-style--dark .grc-carousel-panel { background: #1e293b; color: #e2e8f0; }
.grc-style--dark .grc-place-name     { color: #f8fafc; }
.grc-style--dark .grc-rating-number  { color: #38bdf8; }
.grc-style--dark .grc-bar-track      { background: rgba(255,255,255,.1); }
.grc-style--dark .grc-bar-fill       { background: #38bdf8; }
.grc-style--dark .grc-write-review-btn { color: #38bdf8; border-color: #38bdf8; }
.grc-style--dark .grc-write-review-btn:hover { background: #38bdf8; color: #0f172a; }
.grc-style--dark .grc-review-card {
    background: #0f172a;
    border: 1px solid #334155;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    color: #e2e8f0;
}
.grc-style--dark .grc-review-card:hover { box-shadow: 0 6px 20px rgba(56,189,248,.15); border-color: #38bdf8; }
.grc-style--dark .grc-star--empty { color: #334155; }
.grc-style--dark .grc-nav { background: #0f172a; color: #38bdf8; border: 1px solid #334155; }
.grc-style--dark .grc-dot { background: #38bdf8; }
.grc-style--dark .grc-place-website a { color: #38bdf8; }
.grc-style--dark .grc-bar-row        { color: #94a3b8; }
.grc-style--dark .grc-review-date    { color: #64748b; }
.grc-style--dark .grc-google-badge   { color: #94a3b8; }

/* ════════════════════════════════════════════════════════════════
   THEME 3 — MINIMAL (typography-first, editorial)
   ════════════════════════════════════════════════════════════════ */
.grc-style--minimal .grc-inner { box-shadow: none; border: 2px solid #111; border-radius: 0; }
.grc-style--minimal .grc-place-panel {
    background: #111;
    color: #fafafa;
    border-right: 2px solid #111;
    font-family: 'Georgia', serif;
}
.grc-style--minimal .grc-carousel-panel { background: #fafafa; }
.grc-style--minimal .grc-place-name     { font-size: 1.5rem; font-family: 'Georgia', serif; letter-spacing: -.02em; }
.grc-style--minimal .grc-rating-number  { color: #fafafa; font-family: 'Georgia', serif; }
.grc-style--minimal .grc-bar-track      { background: rgba(255,255,255,.2); }
.grc-style--minimal .grc-bar-fill       { background: #fff; }
.grc-style--minimal .grc-write-review-btn { color: #fafafa; border-color: #fafafa; }
.grc-style--minimal .grc-write-review-btn:hover { background: #fafafa; color: #111; }
.grc-style--minimal .grc-place-website a { color: #ddd; }
.grc-style--minimal .grc-review-card {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 0;
}
.grc-style--minimal .grc-review-card:hover { background: #f0f0f0; box-shadow: none; }
.grc-style--minimal .grc-reviewer-name { font-family: 'Georgia', serif; }
.grc-style--minimal .grc-review-text { font-family: 'Georgia', serif; font-size: 13.5px; }
.grc-style--minimal .grc-nav { background: #111; color: #fff; border-radius: 0; }
.grc-style--minimal .grc-dot { background: #111; border-radius: 0; }
.grc-style--minimal .grc-dot.is-active { border-radius: 0; }
.grc-style--minimal .grc-star--full,
.grc-style--minimal .grc-star--half { color: #111; }
.grc-style--minimal .grc-star--empty { color: #bbb; }
.grc-style--minimal .grc-rating-stars .grc-star--full,
.grc-style--minimal .grc-rating-stars .grc-star--half { color: #fafafa; }

/* ════════════════════════════════════════════════════════════════
   THEME 4 — LUXURY (gold accents, premium feel)
   ════════════════════════════════════════════════════════════════ */
.grc-style--luxury .grc-inner { box-shadow: 0 8px 40px rgba(0,0,0,.25); border-radius: 4px; }
.grc-style--luxury .grc-place-panel {
    background: linear-gradient(160deg, #1a1209 0%, #2d1f08 100%);
    color: #f5e6c8;
    border-right: 1px solid #8B6914;
}
.grc-style--luxury .grc-carousel-panel { background: #faf7f0; }
.grc-style--luxury .grc-place-name     { color: #f5e6c8; letter-spacing: -.01em; }
.grc-style--luxury .grc-rating-number  { color: #D4AF37; font-size: 3.5rem; }
.grc-style--luxury .grc-bar-track      { background: rgba(255,255,255,.12); }
.grc-style--luxury .grc-bar-fill       { background: linear-gradient(90deg, #D4AF37, #F7D060); }
.grc-style--luxury .grc-write-review-btn { color: #D4AF37; border-color: #D4AF37; }
.grc-style--luxury .grc-write-review-btn:hover { background: #D4AF37; color: #1a1209; }
.grc-style--luxury .grc-place-website a { color: #D4AF37; }
.grc-style--luxury .grc-review-card {
    background: #fff;
    border: 1px solid #e8dfc8;
    border-top: 3px solid #D4AF37;
    box-shadow: 0 2px 12px rgba(212,175,55,.08);
    border-radius: 4px;
}
.grc-style--luxury .grc-review-card:hover { box-shadow: 0 8px 24px rgba(212,175,55,.18); }
.grc-style--luxury .grc-star--full,
.grc-style--luxury .grc-star--half { color: #D4AF37; }
.grc-style--luxury .grc-nav { background: #D4AF37; color: #1a1209; border-radius: 2px; }
.grc-style--luxury .grc-dot { background: #D4AF37; }
.grc-style--luxury .grc-rating-stars .grc-star--full,
.grc-style--luxury .grc-rating-stars .grc-star--half { color: #D4AF37; }
.grc-style--luxury .grc-rating-stars .grc-star--empty { color: rgba(255,255,255,.2); }
.grc-style--luxury .grc-bar-row { color: #c9b278; }
.grc-style--luxury .grc-review-date { color: #9c8a6a; }
.grc-style--luxury .grc-google-badge { color: #c9b278; }
.grc-style--luxury .grc-hours-title { color: #c9b278; }

/* ════════════════════════════════════════════════════════════════
   THEME 5 — VIBRANT (bold gradient cards)
   ════════════════════════════════════════════════════════════════ */
.grc-style--vibrant .grc-place-panel {
    background: linear-gradient(145deg, #7c3aed 0%, #db2777 100%);
    color: #fff;
    border-right: none;
}
.grc-style--vibrant .grc-carousel-panel { background: #fdf4ff; }
.grc-style--vibrant .grc-place-name     { color: #fff; }
.grc-style--vibrant .grc-rating-number  { color: #fff; }
.grc-style--vibrant .grc-bar-track      { background: rgba(255,255,255,.25); }
.grc-style--vibrant .grc-bar-fill       { background: #fff; }
.grc-style--vibrant .grc-write-review-btn { color: #fff; border-color: rgba(255,255,255,.6); }
.grc-style--vibrant .grc-write-review-btn:hover { background: rgba(255,255,255,.2); }
.grc-style--vibrant .grc-place-website a { color: #e0b8ff; }
.grc-style--vibrant .grc-review-card:nth-child(3n+1) { background: linear-gradient(135deg,#4f46e5,#7c3aed); color:#fff; }
.grc-style--vibrant .grc-review-card:nth-child(3n+2) { background: linear-gradient(135deg,#db2777,#f59e0b); color:#fff; }
.grc-style--vibrant .grc-review-card:nth-child(3n+3) { background: linear-gradient(135deg,#0891b2,#059669); color:#fff; }
.grc-style--vibrant .grc-review-card { border: none; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.grc-style--vibrant .grc-review-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.grc-style--vibrant .grc-review-text,
.grc-style--vibrant .grc-reviewer-name,
.grc-style--vibrant .grc-review-date { color: rgba(255,255,255,.95); }
.grc-style--vibrant .grc-review-date { color: rgba(255,255,255,.7); }
.grc-style--vibrant .grc-star--full,
.grc-style--vibrant .grc-star--half { color: #FDE68A; }
.grc-style--vibrant .grc-star--empty { color: rgba(255,255,255,.3); }
.grc-style--vibrant .grc-rating-stars .grc-star--empty { color: rgba(255,255,255,.25); }
.grc-style--vibrant .grc-nav { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; border: none; }
.grc-style--vibrant .grc-dot { background: linear-gradient(135deg, #7c3aed, #db2777); }
.grc-style--vibrant .grc-bar-row { color: rgba(255,255,255,.85); }
.grc-style--vibrant .grc-google-badge { color: rgba(255,255,255,.8); }
.grc-style--vibrant .grc-hours-title { color: rgba(255,255,255,.65); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media ( max-width: 768px ) {
    .grc-inner { flex-direction: column; }
    .grc-place-panel { flex: none; max-width: 100%; border-right: none; border-bottom: 1px solid rgba(0,0,0,.1); }
    .grc-style--dark .grc-place-panel { border-bottom: 1px solid #1e293b; }
    .grc-style--luxury .grc-place-panel { border-bottom: 1px solid #8B6914; }
    .grc-review-card { flex: 0 0 calc(50% - .5rem); }
    .grc-carousel { min-height: 280px; }
}

@media ( max-width: 520px ) {
    .grc-review-card { flex: 0 0 calc(100% - 0px); }
    .grc-carousel-panel { padding: 1.5rem 1rem 1rem; }
}
