/* =============================================================================
   CSL Report Card Styles
   Mustache template styles for the report-card page
   Semantic class naming with rc- prefix (report card)
   ============================================================================= */

/* Container */
.rc-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 88px 24px 32px;
  font-family: 'Open Sans', sans-serif;
  color: #2E2E2E;
}

/* ===== HEADER ===== */
.rc-header {
  margin-bottom: 32px;
}

.rc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rc-header-info {
  flex: 1;
  min-width: 0;
}

.rc-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #2E2E2E;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.rc-name-link {
  color: #2E2E2E;
  text-decoration: none;
}

.rc-name-link:hover {
  color: #D4A017;
}

.rc-location {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #777777;
  margin: 0;
}

/* Score circle */
.rc-score-circle {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rc-score-circle.rc-score-high {
  background-color: #C6F6D5;
  border: 3px solid #38A169;
}

.rc-score-circle.rc-score-mid {
  background-color: #FEFCBF;
  border: 3px solid #D4A017;
}

.rc-score-circle.rc-score-low {
  background-color: #FED7D7;
  border: 3px solid #E53E3E;
}

.rc-score-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.rc-score-high .rc-score-value { color: #38A169; }
.rc-score-mid .rc-score-value { color: #D4A017; }
.rc-score-low .rc-score-value { color: #E53E3E; }

.rc-score-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin-top: 2px;
  opacity: 0.7;
}

.rc-score-high .rc-score-label { color: #38A169; }
.rc-score-mid .rc-score-label { color: #D4A017; }
.rc-score-low .rc-score-label { color: #E53E3E; }

/* ===== SECTIONS ===== */
.rc-section {
  margin-bottom: 32px;
}

.rc-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #2E2E2E;
  margin: 0 0 16px 0;
}

/* ===== SCORE BREAKDOWN (COMPONENTS) ===== */
.rc-components {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc-component-card {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  padding: 16px 20px;
}

.rc-component-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rc-component-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2E2E2E;
}

.rc-component-score {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.rc-score-text-high { color: #38A169; }
.rc-score-text-mid { color: #D4A017; }
.rc-score-text-low { color: #E53E3E; }

/* Bar track (shared between components and health) */
.rc-bar-track {
  width: 100%;
  height: 8px;
  background-color: #F0ECE3;
  border-radius: 4px;
  overflow: hidden;
}

.rc-bar-track-lg {
  height: 12px;
  border-radius: 6px;
}

.rc-bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.4s ease;
}

.rc-bar-high { background-color: #38A169; }
.rc-bar-mid { background: linear-gradient(90deg, #D4A017, #E8C860); }
.rc-bar-low { background-color: #E53E3E; }
.rc-bar-health { background: linear-gradient(90deg, #38A169, #68D391); }

.rc-component-weight {
  margin-top: 6px;
  font-size: 12px;
  color: #A0A0A0;
  font-weight: 500;
}

/* ===== COMPETITIVE RANKING ===== */
.rc-ranking-card {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.rc-ranking-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rc-rank-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #D4A017, #E8C860);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rc-rank-context {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: #777777;
}

.rc-rank-category {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #A0A0A0;
  margin: 0;
  text-transform: capitalize;
}

/* ===== NAP HEALTH ===== */
.rc-health-card {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  padding: 20px 24px;
}

.rc-health-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.rc-health-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2E2E2E;
}

.rc-health-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #38A169;
}

/* ===== REVIEW TRENDS ===== */
.rc-reviews-card {
  background: #FFFFFF;
  border: 1px solid #E8E2D5;
  border-radius: 12px;
  padding: 24px;
}

.rc-review-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.rc-review-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rc-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #2E2E2E;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rc-stat-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #A0A0A0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Direction arrow colors */
.rc-direction-up { color: #38A169; }
.rc-direction-down { color: #E53E3E; }
.rc-direction-flat { color: #D4A017; }

.rc-direction-arrow {
  vertical-align: middle;
}

/* Sentiment badge */
.rc-sentiment-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: capitalize;
}

.rc-sentiment-positive {
  background-color: #C6F6D5;
  color: #38A169;
}

.rc-sentiment-neutral {
  background-color: #FEFCBF;
  color: #D69E2E;
}

.rc-sentiment-negative {
  background-color: #FED7D7;
  color: #E53E3E;
}

.rc-sentiment-mixed {
  background-color: #FEFCBF;
  color: #D69E2E;
}

/* ===== CTA ===== */
.rc-cta-section {
  text-align: center;
  padding: 16px 0 0;
}

.rc-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #D4A017, #E8C860);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.25);
}

.rc-cta-btn:hover {
  opacity: 0.9;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .rc-container {
    padding: 80px 16px 24px;
  }

  .rc-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .rc-name {
    font-size: 26px;
  }

  .rc-score-circle {
    align-self: center;
  }

  .rc-review-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .rc-rank-number {
    font-size: 32px;
  }

  .rc-component-card {
    padding: 14px 16px;
  }

  .rc-reviews-card {
    padding: 20px 16px;
  }

  .rc-ranking-card {
    padding: 20px 16px;
  }

  .rc-health-card {
    padding: 16px;
  }
}
