/* =============================================
   WithAChoice  results.css
   ============================================= */

/* LAYOUT */
.r-main {
  min-height: calc(100vh - 70px);
  background: #f7f9fc;
  padding: 3rem 1rem 5rem;
}

.r-container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

/* Wider container for stretch/cheaper sections */
.r-options-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

/* LOADING */
.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 0;
  gap: 1.25rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #EEF5FC;
  border-top-color: #185FA5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1.0625rem;
  color: #6b7280;
  margin: 0;
}

/* ERROR */
.results-error {
  text-align: center;
  padding: 4rem 0;
}

.results-error h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #111827;
  margin: 0 0 0.5rem;
}

.results-error p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

/* HEADER */
.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-category-badge {
  display: inline-block;
  background: #EEF5FC;
  color: #185FA5;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.results-title {
  font-size: 2rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.results-sub {
  font-size: 1.0625rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* STANDOUT BANNER */
.standout-banner {
  background: #EEEDFE;
  border: 1px solid #AFA9EC;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #3C3489;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.standout-banner-icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* SECTIONS */
.r-section {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.625rem;
}

/* SECTION HEADINGS  bold and coloured */
.section-heading {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.375rem;
  line-height: 1.3;
}

.section-heading-stretch {
  color: #854F0B;
}

.section-heading-cheaper {
  color: #3B6D11;
}

.section-intro {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

/* PERFECT MATCH CARD */
.match-card {
  background: #ffffff;
  border: 2px solid #185FA5;
  border-radius: 14px;
  padding: 1.625rem;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.375rem;
}

.match-product-name {
  font-size: 1.375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 2px;
}

.match-product-model {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #6b7280;
  margin: 0;
}

.wac-badge {
  background: #EEF5FC;
  color: #0C447C;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.match-product-meta {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0 0 1rem;
}

.match-price {
  font-size: 2rem;
  font-weight: 600;
  color: #185FA5;
  margin: 0 0 1.25rem;
}

/* SUB-SCORE CIRCLES */
.score-circles {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.score-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 80px;
}

.score-circle-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.score-circle-dim {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.3;
}

.score-circle-band {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

/* CLAUDE SUMMARY */
.match-summary {
  font-size: 1rem;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 1.375rem;
  padding: 1rem 1.125rem;
  background: #f7f9fc;
  border-radius: 8px;
  border-left: 3px solid #185FA5;
}

.match-summary .grid-why-bullets li {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.65;
  padding-left: 1.25rem;
}

.match-summary .grid-why-bullets {
  gap: 10px;
}

.match-summary .grid-why-bullets li::before {
  color: #185FA5;
}

/* RETAILER BUTTONS */
.retailer-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
}

.retailer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.retailer-btn {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.retailer-btn:hover {
  border-color: #185FA5;
  background: #EEF5FC;
  color: #185FA5;
}

.retailer-btn .retailer-name {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  font-weight: 400;
  margin-top: 1px;
}

.retailer-btn:hover .retailer-name {
  color: #185FA5;
  opacity: 0.8;
}

/* GRID CARDS  shared */
.grid-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.grid-card-stretch {
  border-top: 3px solid #BA7517;
  border-radius: 0 0 12px 12px;
}

.grid-card-cheaper {
  border-top: 3px solid #3B6D11;
  border-radius: 0 0 12px 12px;
}

.grid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.grid-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.grid-card-price {
  font-size: 1rem;
  font-weight: 600;
  color: #185FA5;
  white-space: nowrap;
  flex-shrink: 0;
}

.grid-card-specs {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0 0 4px;
}

.grid-card-wac {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

.grid-card-why {
  background: #f7f9fc;
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  margin-bottom: 0.75rem;
  flex: 1;
}

/* BULLET POINTS IN GRID CARDS */
.grid-why-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grid-why-bullets li {
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}

.grid-why-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-weight: 700;
}

.grid-why-text {
  font-size: 0.8125rem;
  color: #374151;
  line-height: 1.5;
  margin: 0;
}

/* EMPTY STATES */
.no-stretch-msg,
.no-cheaper-msg {
  font-size: 1rem;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  line-height: 1.6;
}

/* START AGAIN */
.start-again {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.start-again p {
  font-size: 1rem;
  color: #9ca3af;
  margin: 0 0 0.75rem;
}

/* BUTTONS */
.primary-btn {
  display: inline-block;
  background: #185FA5;
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s;
}

.primary-btn:hover {
  background: #0C447C;
}

.secondary-btn {
  display: inline-block;
  background: #ffffff;
  color: #185FA5;
  border: 1px solid #185FA5;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.secondary-btn:hover {
  background: #EEF5FC;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .results-title  { font-size: 1.625rem; }
  .match-price    { font-size: 1.625rem; }
  .match-card     { padding: 1.25rem; }
  .grid-card      { width: 100% !important; flex: unset !important; }
}
