/**
 * Playground Scoring Styles
 * Styles for trust labels, red flags, and score badges
 */

/* =============================================================================
   TRUST LABELS
   ============================================================================= */

.trust-labels {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.trust-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.3;
}

/* Best Overall - Gold */
.trust-label-best-overall {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 1px solid #FCD34D;
}

/* Parent's Choice - Blue */
.trust-label-parents-choice {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

/* Most Loved - Pink */
.trust-label-most-loved {
  background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
  color: #9D174D;
  border: 1px solid #F9A8D4;
}

/* Hidden Gem - Purple */
.trust-label-hidden-gem {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  color: #5B21B6;
  border: 1px solid #C4B5FD;
}

/* Best for Toddlers - Teal */
.trust-label-toddlers {
  background: linear-gradient(135deg, #CCFBF1, #99F6E4);
  color: #0F766E;
  border: 1px solid #5EEAD4;
}

/* Best for Big Kids - Orange */
.trust-label-bigkids {
  background: linear-gradient(135deg, #FFEDD5, #FED7AA);
  color: #C2410C;
  border: 1px solid #FDBA74;
}


/* =============================================================================
   RED FLAGS
   ============================================================================= */

.red-flags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.red-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
}

/* Warning severity - Yellow/Orange */
.red-flag-warning {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

/* Info severity - Gray */
.red-flag-info {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #D1D5DB;
}


/* =============================================================================
   SCORE BADGES
   ============================================================================= */

.score-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

/* Score tiers */
.score-excellent {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
  border: 2px solid #34D399;
}

.score-very-good {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
  border: 2px solid #60A5FA;
}

.score-good {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  border: 2px solid #FBBF24;
}

.score-average {
  background: linear-gradient(135deg, #FFEDD5, #FED7AA);
  color: #C2410C;
  border: 2px solid #FB923C;
}

.score-below-average {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
  border: 2px solid #F87171;
}


/* =============================================================================
   FEATURED CARD ADJUSTMENTS
   ============================================================================= */

/* Adjust card image container for score badge positioning */
.featured-card .card-image {
  position: relative;
}

/* Rank badge positioned in top-right corner */
.featured-card .rank-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Ratings row - User rating and Overall score side by side */
.featured-card .ratings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  font-size: 13px;
  flex-wrap: wrap;
}

.featured-card .user-rating {
  color: #374151;
}

.featured-card .overall-score {
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Distance info */
.featured-card .distance-info {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 6px;
}

/* Quick facts */
.featured-card .quick-facts {
  font-size: 12px;
  color: #4B5563;
  margin-bottom: 6px;
}

.featured-card .quick-facts .ages {
  font-style: italic;
}

/* Amenities as text */
.featured-card .amenity-highlights {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
}

.featured-card .amenity-text {
  display: inline;
}

/* Directions button */
.featured-card .directions-button {
  display: inline-block;
  padding: 8px 16px;
  background: #3B82F6;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.featured-card .directions-button:hover {
  background: #2563EB;
  color: white;
}


/* =============================================================================
   PLAYGROUND PAGE DECISION STRIP LABELS
   ============================================================================= */

.decision-strip .trust-labels {
  margin-bottom: 12px;
}

.decision-strip .trust-label {
  font-size: 12px;
  padding: 4px 10px;
}

.decision-strip .red-flags {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
}


/* =============================================================================
   GRID CARD LABELS (CITY PAGE)
   ============================================================================= */

.playground-card .trust-labels {
  margin-bottom: 6px;
}

.playground-card .trust-label {
  font-size: 10px;
  padding: 2px 6px;
}


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

@media (max-width: 768px) {
  .trust-labels {
    gap: 4px;
  }

  .trust-label {
    font-size: 10px;
    padding: 2px 6px;
  }

  .score-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .red-flag {
    font-size: 9px;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  /* Stack labels vertically on very small screens if needed */
  .trust-labels {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .featured-card .rank-badge {
    right: 44px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
}
