/* makers-board.css — Page-specific styles for Makers Board */

/* Main content spacing */
main .container {
  max-width: 1600px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Page header */
h1 {
  color: #1d3557;
  margin-bottom: 24px;
  text-align: center;
}

.mb-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 32px;
}

/* Filters */
.filters {
  max-width: 900px;
  margin: 0 auto 32px;
  display: flex;
  gap: 16px;
}
.filters input,
.filters select {
  flex: 1;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}

.mb-match-filter-wrap {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mb-match-filter-label {
  font-size: 0.72rem;
  color: #666;
  white-space: nowrap;
}
#min-match-filter {
  width: 100%;
}

.mb-filters-advanced {
  margin-top: -16px;
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
  }
  .filters input,
  .filters select {
    width: 100%;
    font-size: 16px;
  }
}

/* Request grid */
.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .request-grid {
    grid-template-columns: 1fr;
  }
}

/* Request card */
.request-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.request-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.request-card-header {
  background-color: #f8fafc;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.request-card-header h3 {
  margin: 0;
  color: #1d3557;
  font-size: 1.1rem;
  padding-right: 40px;
}

.request-card-body {
  padding: 24px;
  flex-grow: 1;
}

.request-card-body p {
  color: #555;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.request-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #64748b;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item img {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

/* Watch button */
.watch-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.watch-btn:hover {
  transform: scale(1.2);
}
.watch-btn.watching {
  color: #f9c74f;
}
.watch-btn.not-watching {
  color: #d1d5db;
}

/* Category badge */
.category-badge {
  display: inline-block;
  background: #dfe8ec;
  color: #3d5a6a;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  margin-right: 8px;
}

/* Status badge variants (base from common.css) */
.status-badge.open {
  background: #d0e8ee;
  color: #3d5a3f;
}
.status-badge.accepting-bids {
  background: #fef9e7;
  color: #8a6d15;
}
.status-badge.in-progress {
  background: #dfe8ec;
  color: #3d5a6a;
}
.status-badge.completed {
  background: #a8dadc;
  color: #3d5a6a;
}
.status-badge.closed {
  background: #f3f4f6;
  color: #6b7280;
}
.status-badge.expired {
  background: #fef9e7;
  color: #8a6d15;
}
.status-badge.awarded {
  background: #fef9e7;
  color: #8a6d15;
}
.status-badge.reviewing-bids {
  background: #fef9e7;
  color: #8a6d15;
}
.status-badge {
  margin-bottom: 8px;
}

/* Keywords */
.keywords {
  margin: 12px 0;
}
.keyword {
  cursor: pointer;
}
.keyword:hover {
  background: #b8c8d0;
}

/* Meta info */
.meta {
  font-size: 0.9rem;
  color: #888;
}

/* No requests message */
.no-requests {
  text-align: center;
  padding: 80px 0;
  color: #666;
}

/* Enter/view button */
.enter-btn {
  background: #1d3557;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
}
.enter-btn:hover {
  background: #15293e;
}

/* Request thumbnail */
.request-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Multi-select Category Dropdown */
.multi-select-container {
  position: relative;
  flex: 1;
}
.multi-select-toggle {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.multi-select-toggle:hover {
  border-color: #1d3557;
}
.multi-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  max-height: 400px;
  overflow-y: auto;
}
.multi-select-dropdown.active {
  display: block;
}
.mb-dropdown-group-label {
  display: block;
  padding: 8px 14px 4px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.05em;
  border-top: 1px solid #eee;
}
.mb-dropdown-group-label:first-child {
  border-top: none;
}
.checkbox-item {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
}
.checkbox-item:hover {
  background: #f2f2f2;
}
.checkbox-item input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Dropdown arrow icon */
.mb-dropdown-arrow {
  font-size: 0.8rem;
}

/* Category clear-all footer */
.mb-category-clear {
  padding: 8px;
  border-top: 1px solid #eee;
  margin-top: 8px;
}
.mb-clear-btn {
  background: none;
  border: none;
  color: #1d3557;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Match Score Badge */
.match-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.match-score-badge.excellent {
  background: linear-gradient(135deg, #277da1 0%, #277da1 100%);
  color: white;
}
.match-score-badge.good {
  background: linear-gradient(135deg, #277da1 0%, #277da1 100%);
  color: white;
}
.match-score-badge.fair {
  background: linear-gradient(135deg, #f9c74f 0%, #8a6d15 100%);
  color: white;
}
.match-score-badge.possible {
  background: #e5e7eb;
  color: #4b5563;
}
.match-score-badge.low {
  background: #f3f4f6;
  color: #9ca3af;
}
.match-breakdown {
  font-size: 0.75rem;
  color: #666;
  margin-top: 4px;
}
.match-count-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: #555;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

/* Profile Incomplete Banner */
.profile-incomplete-banner {
  background: linear-gradient(135deg, #fef9e7 0%, #fdf3d0 100%);
  border: 2px solid #f9c74f;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-incomplete-banner .icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.profile-incomplete-banner .text {
  flex: 1;
}
.profile-incomplete-banner h3 {
  color: #8a6d15;
  font-size: 1rem;
  margin-bottom: 4px;
}
.profile-incomplete-banner p {
  color: #9a7a3a;
  font-size: 0.9rem;
  margin: 0;
}
.profile-incomplete-banner a {
  background: #f9c74f;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.profile-incomplete-banner a:hover {
  background: #8a6d15;
}

/* Awarded Jobs Tip */
.awarded-jobs-tip {
  background: linear-gradient(135deg, #eef3f5 0%, #e4ecf0 100%);
  border: 2px solid #457b9d;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.awarded-jobs-tip .icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.awarded-jobs-tip .text {
  flex: 1;
  color: #3d5a6a;
  font-size: 0.9rem;
  line-height: 1.5;
}
.awarded-jobs-tip a {
  color: #0c1e3a;
  font-weight: 700;
  text-decoration: underline;
}
.awarded-jobs-tip a:hover {
  color: #457b9d;
}

/* Location Filter */
.location-filter {
  display: flex;
  gap: 8px;
  flex: 1;
}
.location-filter input,
.location-filter select {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
}
.mb-zip-input {
  width: 100px;
}
.mb-radius-select {
  width: 130px;
}
@media (max-width: 768px) {
  .location-filter {
    flex-direction: row;
  }
  .location-filter input {
    flex: 1;
  }
  .location-filter select {
    flex: 1;
  }
}

/* ==============================
   Inline-style replacements for
   JS template literals (innerHTML)
   ============================== */

/* Full-page gate screens (sign-in, makers-only, error) */
.mb-gate {
  text-align: center;
  padding: 100px 20px;
}
.mb-gate--narrow {
  max-width: 600px;
  margin: 0 auto;
}
.mb-gate h2 {
  color: #1d3557;
  margin-bottom: 16px;
}
.mb-gate p {
  color: #555;
  margin-bottom: 24px;
}
.mb-gate .btn-primary {
  padding: 14px 28px;
}
.mb-gate .mb-gate-link {
  color: #1d3557;
  text-decoration: none;
}
.mb-gate .mb-gate-link:hover {
  text-decoration: underline;
}

/* Error loading state inside grid */
.mb-error-box {
  text-align: center;
  padding: 40px;
  color: #666;
}
.mb-error-box h3 {
  color: #f9844a;
}

/* Retry button (used in error states) */
.mb-retry-btn {
  margin-top: 16px;
  background: #1d3557;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Card: location info */
.mb-location {
  color: #666;
  font-size: 0.9rem;
}

/* Card: local makers tag */
.mb-local-only {
  color: #277da1;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Card: bidding deadline */
.mb-bidding-deadline {
  color: #f9c74f;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Card: accepted bid */
.mb-accepted-bid {
  color: #277da1;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Card: meta link (posted by) */
.mb-meta-link {
  color: #1d3557;
  text-decoration: none;
}
.mb-meta-link:hover {
  text-decoration: underline;
}

/* Footer */
.mb-footer {
  text-align: center;
  padding: 30px 20px;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
  margin-top: 40px;
}
.mb-footer p {
  margin-bottom: 0;
}
.mb-footer-links {
  margin-top: 12px;
}
.mb-footer-links a {
  color: #457b9d;
  text-decoration: none;
}
.mb-footer-links a:hover {
  text-decoration: underline;
}
