/* ── Builds page ──────────────────────────────────────────────────────────── */

.blds-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Header */
.blds-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blds-title {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Submit panel */
.blds-submit-panel {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blds-submit-heading {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #555;
}
.blds-submit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 8px;
}
.blds-input {
  background: #141414;
  border: 1px solid #222;
  border-radius: 5px;
  color: #ddd;
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s;
  font-family: 'Inter', Arial, sans-serif;
}
.blds-input:focus {
  border-color: #444;
}
.blds-input::placeholder { color: #444; }
.blds-input-link { grid-column: 1 / -1; }
.blds-input-desc { grid-column: 1 / 2; }
.blds-submit-btn {
  grid-column: 2 / 3;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.blds-submit-btn:hover { background: #e8e8e8; }
.blds-submit-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.blds-submit-msg {
  font-size: 13px;
  padding: 2px 0;
}
.blds-msg-ok  { color: #4caf7d; }
.blds-msg-err { color: #e05c5c; }

/* Toolbar */
.blds-toolbar {
  display: flex;
  gap: 8px;
}
.blds-search {
  flex: 1;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 5px;
  color: #ddd;
  font-size: 13px;
  padding: 9px 13px;
  outline: none;
  font-family: 'Inter', Arial, sans-serif;
  transition: border-color 0.15s;
}
.blds-search:focus { border-color: #333; }
.blds-search::placeholder { color: #444; }

.blds-filter-btn {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 5px;
  color: #888;
  font-size: 12px;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.blds-filter-btn:hover,
.blds-filter-btn.active {
  background: #1a1a1a;
  border-color: #333;
  color: #fff;
}

/* Filter panel */
.blds-filter-panel {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blds-filter-label {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #555;
  margin-right: 2px;
}
.blds-chip {
  background: #141414;
  border: 1px solid #222;
  border-radius: 20px;
  color: #888;
  font-size: 12px;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.blds-chip:hover { background: #1a1a1a; color: #ccc; border-color: #333; }
.blds-chip.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Build list */
.blds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blds-state {
  color: #555;
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}

/* Build card */
.blds-card {
  background: #0e0e0e;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.15s;
}
.blds-card:hover { border-color: #2a2a2a; }

.blds-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.blds-card-name {
  font-family: 'Rajdhani', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blds-card-summary {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blds-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
}
.blds-card-dot { color: #333; }

.blds-card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.blds-open-btn {
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  color: #aaa;
  font-size: 12px;
  font-family: 'Rajdhani', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.blds-open-btn:hover {
  background: #1a1a1a;
  border-color: #444;
  color: #fff;
}

.blds-like-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #222;
  border-radius: 5px;
  color: #555;
  font-size: 13px;
  font-family: 'Inter', Arial, sans-serif;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.blds-like-btn:hover {
  background: #1a1a1a;
  border-color: #333;
  color: #ccc;
}
.blds-like-btn.liked {
  border-color: #7a2e2e;
  color: #e05c5c;
}
.blds-like-btn.liked:hover {
  background: #1a0f0f;
  border-color: #aa3c3c;
  color: #e87070;
}
.blds-like-icon { font-size: 14px; line-height: 1; }
.blds-like-count { font-size: 12px; font-weight: 500; }

.blds-delete-btn {
  background: transparent;
  border: 1px solid #2a1a1a;
  border-radius: 5px;
  color: #5a3333;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.blds-delete-btn:hover {
  background: #1a0a0a;
  border-color: #7a2e2e;
  color: #e05c5c;
}
.blds-delete-btn--admin {
  border-color: #2a1a2a;
  color: #6a3a6a;
}
.blds-delete-btn--admin:hover {
  background: #150a15;
  border-color: #8a3a8a;
  color: #cc66cc;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .blds-submit-fields {
    grid-template-columns: 1fr;
  }
  .blds-input-desc,
  .blds-submit-btn {
    grid-column: 1 / -1;
  }
  .blds-submit-btn {
    padding: 10px;
  }
  .blds-card {
    flex-direction: column;
    gap: 12px;
  }
  .blds-card-actions {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
  }
}
