/* ============================================================
   Google Reviews For WP — Public Base Styles
   ============================================================ */

:root {
  --grwp-star-color:   #FBBC05;
  --grwp-text:         #1a1a2e;
  --grwp-text-light:   #6b7280;
  --grwp-border:       #e5e7eb;
  --grwp-radius:       12px;
  --grwp-card-shadow:  0 2px 12px rgba(0,0,0,.07);
  --grwp-transition:   .25s ease;
}

.grwp-widget * { box-sizing: border-box; }
.grwp-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  color: var(--grwp-text);
}

/* ============================================================
   REVIEW CARD
   ============================================================ */
.grwp-review-card {
  background: #fff;
  border: 1px solid var(--grwp-border);
  border-radius: var(--grwp-radius);
  padding: 20px;
  box-shadow: var(--grwp-card-shadow);
  transition: transform var(--grwp-transition), box-shadow var(--grwp-transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.grwp-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.11);
}

/* ---- Review Header ---- */
.grwp-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.grwp-reviewer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.grwp-reviewer-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.grwp-reviewer-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grwp-reviewer-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--grwp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grwp-review-time {
  font-size: 12px;
  color: var(--grwp-text-light);
}
.grwp-google-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Stars ---- */
.grwp-review-stars {
  display: flex;
  gap: 3px;
  align-items: center;
}
.grwp-star {
  color: #d1d5db;
  font-size: 15px;
  line-height: 1;
}
.grwp-star.filled { color: var(--grwp-star-color); }

.grwp-verified-badge {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: help;
  outline: none;
}
.grwp-verified-badge::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--grwp-transition);
  z-index: 5;
}
.grwp-verified-badge::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #111111 transparent transparent transparent;
  opacity: 0;
  transition: opacity var(--grwp-transition);
}
.grwp-verified-badge:hover::before,
.grwp-verified-badge:hover::after,
.grwp-verified-badge:focus-visible::before,
.grwp-verified-badge:focus-visible::after {
  opacity: 1;
}

.grwp-leave-review-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 10px !important;
  border: 1px solid #c7d2fe !important;
  padding: 9px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  text-decoration: none !important;
  background: #fff !important;
  transition: all .2s ease !important;
}
.grwp-leave-review-btn:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99,102,241,.2);
  transform: translateY(-1px);
}

/* ---- Review Text ---- */
.grwp-review-text {
  font-size: 14px;
  color: var(--grwp-text-light);
  margin: 0;
  line-height: 1.65;
  height: 93px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.grwp-review-text::-webkit-scrollbar {
  display: none;
}
.grwp-review-text.grwp-no-text { font-style: italic; height: auto; overflow: visible; }

/* ============================================================
   STYLE VARIANTS
   ============================================================ */

/* Light (default) */
.grwp-style-light .grwp-review-card {
  background: #fff;
  color: var(--grwp-text);
}

/* Dark */
.grwp-style-dark {
  background: #1a1a2e;
  padding: 20px;
  border-radius: 16px;
}
.grwp-style-dark .grwp-review-card {
  background: #252540;
  border-color: #35355a;
  color: #e0e0f0;
}
.grwp-style-dark .grwp-reviewer-name { color: #fff; }
.grwp-style-dark .grwp-review-text   { color: #a0a0c0; }
.grwp-style-dark .grwp-review-time   { color: #7070a0; }

/* Minimal */
.grwp-style-minimal .grwp-review-card {
  background: #f8f9fa;
  border: none;
  box-shadow: none;
}

/* Card */
.grwp-style-card .grwp-review-card {
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border-radius: 16px;
}

/* Bubble */
.grwp-style-bubble .grwp-review-card {
  background: #eef4fd;
  border: none;
  border-radius: 20px 20px 20px 4px;
  box-shadow: none;
}

/* ============================================================
   POWERED BY
   ============================================================ */
.grwp-powered-by {
  text-align: center !important;
  padding: 10px 0 0 !important;
  font-size: 11px !important;
  font-style: italic !important;
  line-height: 1.4 !important;
}
.grwp-powered-by--right {
  text-align: right !important;
}
.grwp-powered-by em {
  font-style: italic !important;
}
.grwp-powered-by .grwp-powered-text {
  color: #1f2937 !important;
}
.grwp-powered-by .grwp-brand-link {
  background: linear-gradient(135deg, #7c3aed, #a855f7, #c084fc) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: opacity .2s ease !important;
}
.grwp-powered-by .grwp-brand-link:hover {
  opacity: .8 !important;
}
