/* Scoped CSS for Board Game Search & Ratings */
.bgsr-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.bgsr-main {
  padding: 1.5rem 1rem 3rem;
}

.bgsr-container {
  max-width: 1100px;
  margin: 0 auto;
}

.bgsr-app-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.bgsr-search-section {
  margin-bottom: 1.5rem;
}

.bgsr-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.bgsr-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.bgsr-input {
  flex: 1;
  min-width: 240px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.bgsr-input:focus {
  border-color: #2563eb;
}

.bgsr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
}

.bgsr-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.bgsr-btn-primary:hover {
  background: #1d4ed8;
}

.bgsr-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.bgsr-filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bgsr-filter-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: #475569;
}

.bgsr-select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.9rem;
  outline: none;
}

.bgsr-select:focus {
  border-color: #2563eb;
}

.bgsr-quick-chips {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bgsr-chips-label {
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 500;
}

.bgsr-chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.bgsr-chip-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bgsr-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bgsr-count-badge {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2563eb;
}

.bgsr-meta-tip {
  font-size: 0.8rem;
  color: #64748b;
}

/* Grid & Cards */
.bgsr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.bgsr-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bgsr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.08);
}

.bgsr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.bgsr-title-group {
  display: flex;
  flex-direction: column;
}

.bgsr-game-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.bgsr-game-year {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.bgsr-rating-box {
  display: flex;
  align-items: baseline;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
}

.bgsr-rating-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #166534;
}

.bgsr-rating-max {
  font-size: 0.7rem;
  color: #15803d;
  margin-left: 0.15rem;
}

.bgsr-game-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.bgsr-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bgsr-spec-pill {
  font-size: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #334155;
  font-weight: 500;
}

.bgsr-weight-light {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.bgsr-weight-medium {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.bgsr-weight-heavy {
  background: #fdf2f8;
  border-color: #fbcfe8;
  color: #9d174d;
}

.bgsr-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bgsr-tag {
  font-size: 0.7rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #475569;
}

.bgsr-card-actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.bgsr-link-bgg {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.bgsr-link-bgg:hover {
  text-decoration: underline;
}

/* Guide Section */
.bgsr-guide-section {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.bgsr-section-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.bgsr-lead-text {
  color: #475569;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.bgsr-table-wrap {
  overflow-x: auto;
}

.bgsr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.bgsr-table th {
  background: #f8fafc;
  color: #334155;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
}

.bgsr-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.bgsr-table tr:hover {
  background: #f8fafc;
}
