/* ============================================================
   Off Grid Stories Reviews — reviews.css v2
   Clean, structured, world-class presentation
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lato:wght@400;700;900&display=swap');

/* ============================================================
   SUMMARY BLOCK
   ============================================================ */

.ogstories-rv-summary {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* Left: big score */
.ogstories-rv-summary-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 40px;
  background: #0a0a0a;
  min-width: 160px;
  flex-shrink: 0;
  gap: 8px;
}

.ogstories-rv-big-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.ogstories-rv-summary-stars {
  display: flex;
  gap: 3px;
}
.ogstories-rv-summary-stars .ogstories-rv-star       { font-size: 18px; }
.ogstories-rv-summary-stars .ogstories-rv-star.full  { color: #f5a623; }
.ogstories-rv-summary-stars .ogstories-rv-star.half  { color: #f5a623; opacity: .5; }
.ogstories-rv-summary-stars .ogstories-rv-star.empty { color: #444; }

.ogstories-rv-summary-count {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}

/* Right: bars */
.ogstories-rv-summary-bars {
  flex: 1;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ogstories-rv-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ogstories-rv-bar-label {
  width: 72px;
  font-size: 12px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: #666;
  text-align: right;
  flex-shrink: 0;
  letter-spacing: .02em;
}

.ogstories-rv-bar-track {
  flex: 1;
  height: 8px;
  background: #f0f0ec;
  border-radius: 999px;
  overflow: hidden;
}

.ogstories-rv-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #e8950f);
  border-radius: 999px;
  transition: width .5s ease;
  min-width: 0;
}

.ogstories-rv-bar-pct {
  width: 36px;
  font-size: 11px;
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  color: #aaa;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   REVIEW CARDS LIST
   ============================================================ */

.ogstories-rv-wrap {
  font-family: 'Lato', system-ui, sans-serif;
}

.ogstories-rv-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.ogstories-rv-card {
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.ogstories-rv-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.ogstories-rv-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ogstories-rv-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}

.ogstories-rv-card-name {
  font-weight: 900;
  font-size: 15px;
  color: #0a0a0a;
  line-height: 1.2;
}

.ogstories-rv-card-date {
  font-size: 11px;
  color: #bbb;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ogstories-rv-card-stars {
  margin-left: auto;
  color: #f5a623;
  font-size: 16px;
  letter-spacing: .05em;
  flex-shrink: 0;
}

.ogstories-rv-card-text {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.ogstories-rv-empty {
  text-align: center;
  padding: 48px 24px;
  color: #bbb;
  font-style: italic;
  font-size: 15px;
  background: #fafaf8;
  border: 1px dashed #e0e0dc;
  border-radius: 12px;
}

/* ============================================================
   WRITE A REVIEW FORM
   ============================================================ */

.ogstories-rv-form-wrap {
  background: #fafaf8;
  border: 1px solid #e8e8e4;
  border-radius: 14px;
  overflow: hidden;
}

.ogstories-rv-form-header {
  background: #0a0a0a;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ogstories-rv-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.ogstories-rv-form-subtitle {
  font-size: 12px;
  color: #888;
  font-family: 'Lato', sans-serif;
}

.ogstories-rv-form-inner {
  padding: 28px 32px 32px;
}

.ogstories-rv-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ogstories-rv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ogstories-rv-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ogstories-rv-group label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #999;
  font-family: 'Lato', sans-serif;
}

.ogstories-rv-group input,
.ogstories-rv-group textarea {
  background: #fff;
  border: 1px solid #ddddd8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: #111;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  -webkit-appearance: none;
}

.ogstories-rv-group input:focus,
.ogstories-rv-group textarea:focus {
  outline: none;
  border-color: #228B22;
  box-shadow: 0 0 0 3px rgba(34,139,34,.1);
}

.ogstories-rv-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Star rating picker */
.ogstories-rv-star-pick {
  display: flex;
  gap: 6px;
  padding: 4px 0;
}

.ogstories-rv-star-pick span {
  font-size: 32px;
  color: #e0e0dc;
  transition: color .12s, transform .12s;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.ogstories-rv-star-pick span.lit   { color: #f5a623; }
.ogstories-rv-star-pick span:hover { transform: scale(1.2); }

/* Submit row */
.ogstories-rv-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.ogstories-rv-btn {
  background: #228B22;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(34,139,34,.25);
  white-space: nowrap;
}
.ogstories-rv-btn:hover    { background: #1a6e1a; box-shadow: 0 6px 20px rgba(34,139,34,.35); }
.ogstories-rv-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.ogstories-rv-submit-note {
  font-size: 12px;
  color: #bbb;
  font-family: 'Lato', sans-serif;
  font-style: italic;
}

/* Message */
.ogstories-rv-msg {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
  display: none;
  line-height: 1.5;
}
.ogstories-rv-msg.success { background: #d4edda; color: #1e4d2b; border: 1px solid #b2dfba; display: block; }
.ogstories-rv-msg.error   { background: #fde8e8; color: #7a1e1e; border: 1px solid #f5b8b8; display: block; }

/* Hint */
.ogstories-rv-hint {
  font-size: 11px;
  color: #bbb;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .ogstories-rv-summary        { flex-direction: column; }
  .ogstories-rv-summary-score  { flex-direction: row; padding: 20px 24px; gap: 16px; min-width: 0; }
  .ogstories-rv-big-num        { font-size: 48px; }
  .ogstories-rv-summary-bars   { padding: 20px 24px; }
  .ogstories-rv-row            { grid-template-columns: 1fr; }
  .ogstories-rv-form-header    { padding: 18px 20px; }
  .ogstories-rv-form-inner     { padding: 20px; }
  .ogstories-rv-card           { padding: 18px 20px; }
  .ogstories-rv-submit-row     { flex-direction: column; align-items: flex-start; }
  .ogstories-rv-btn            { width: 100%; text-align: center; }
}
