/* roadmap.css — layout only; all colour/theme rules live in site.css */

.vr-roadmap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
  align-items: flex-end;
}

.vr-roadmap-filters .vr-field {
  min-width: 220px;
}

/* Base: optimise for dark theme (Veriroo default) */
.vr-roadmap-filters .vr-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.55rem 2.5rem 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8); /* slate-400/500 */
  background-color: rgba(15, 23, 42, 0.96);    /* near slate-900 */
  color: #e5e7eb;                               /* slate-200 for contrast */
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.05s ease;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) calc(50% - 2px),
    calc(100% - 1.0rem) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.vr-roadmap-filters .vr-select:hover {
  border-color: rgba(129, 140, 248, 0.95);      /* indigo-ish hover */
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.5);
  background-color: rgba(15, 23, 42, 1);
}

.vr-roadmap-filters .vr-select:focus-visible {
  border-color: rgba(129, 140, 248, 1);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.95),
    0 0 0 6px rgba(129, 140, 248, 0.35);
  background-color: rgba(15, 23, 42, 1);
}

.vr-roadmap-filters .vr-select:active {
  transform: translateY(1px);
}


/* Keep the dropdown list text dark on light themes */
.vr-roadmap-filters .vr-select option {
  color: #0f172a;
}

/* Compact layout on small screens */
@media (max-width: 640px) {
  .vr-roadmap-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .vr-roadmap-filters .vr-field {
    width: 100%;
  }
}


/* Chip-style filters for roadmap (matching FAQ look) */
.vr-roadmap-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vr-roadmap-filter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vr-muted);
}

.vr-roadmap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* hide the underlying selects when chip UI is present */
.vr-select--hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Roadmap accordion (public view) */
.vr-roadmap-details {
  border-radius: 1.25rem;
  background: var(--vr-card);
  padding: 0.25rem 0.75rem 0.75rem;
}

.vr-roadmap-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.vr-roadmap-summary::-webkit-details-marker {
  display: none;
}

.vr-roadmap-summary::after {
  content: "▾";
  font-size: 0.9rem;
  color: var(--vr-muted);
  transition: transform 0.16s ease-out;
}

.vr-roadmap-details[open] .vr-roadmap-summary::after {
  transform: rotate(-180deg);
}

.vr-roadmap-summary-title {
  font-weight: 600;
  color: var(--vr-foreground);
}

.vr-roadmap-summary-meta {
  font-size: 0.85rem;
  color: var(--vr-muted);
}

.vr-roadmap-body {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* ensure cards use details layout nicely */
.vr-roadmap-card__header {
  margin-bottom: 0;
}

/* === Internal roadmap editor controls & layout ======================== */

.vr-card--roadmap-internal {
  margin-top: 0.9rem;
}

.vr-card--roadmap-internal .vr-roadmap-details--internal {
  border-radius: 18px;
}

/* Card sections */
.vr-card--roadmap-internal .vr-card__header,
.vr-card--roadmap-internal .vr-card__meta-row {
  display: grid;
  gap: 0.5rem;
}

.vr-card--roadmap-internal .vr-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.vr-card--roadmap-internal .vr-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 960px) {
  .vr-card--roadmap-internal .vr-card__header {
    grid-template-columns:
      minmax(0, 2.4fr)
      minmax(0, 1.4fr)
      minmax(0, 1.1fr)
      minmax(0, 1.3fr)
      minmax(0, 1.2fr)
      0.9fr;
    align-items: center;
  }

  .vr-card--roadmap-internal .vr-card__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }

  .vr-card--roadmap-internal .vr-card__meta-row {
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 1.3fr)
      0.8fr
      minmax(0, 1.4fr)
      minmax(0, 1.6fr);
    align-items: center;
  }
}

.vr-card--roadmap-internal .vr-card__status {
  font-size: 0.8rem;
  color: var(--vr-muted);
}

.vr-card--roadmap-internal .vr-card__actions {
  display: flex;
  gap: 0.5rem;
}

/* Form controls used in the internal editor */

.vr-input,
.vr-select,
.vr-textarea {
  font: inherit;
  color: var(--vr-text);
  background: rgba(15,23,42,0.96);
  border-radius: 10px;
  border: 1px solid var(--vr-border);
  padding: 0.35rem 0.7rem;
  outline: none;
  min-width: 0;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
}

.vr-input::placeholder,
.vr-textarea::placeholder {
  color: var(--vr-muted);
}

.vr-input--title {
  font-weight: 600;
}

.vr-input--xs {
  max-width: 4.2rem;
  text-align: center;
}

.vr-input--narrow {
  max-width: 7rem;
}

.vr-select {
  border-radius: 999px;
  padding-right: 2.1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(148,163,184,0.9) 50%),
    linear-gradient(135deg, rgba(148,163,184,0.9) 50%, transparent 50%);
  background-position:
    calc(100% - 1.25rem) calc(50% - 3px),
    calc(100% - 0.95rem) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.vr-select--compact {
  font-size: 0.85rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.vr-textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 3.1rem;
}

.vr-textarea--muted {
  background: rgba(17,24,39,0.96);
  border-style: dashed;
  border-color: rgba(75,85,99,0.9);
  color: var(--vr-muted);
}

.vr-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--vr-muted);
}

.vr-toggle input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--vr-border);
  background: rgba(15,23,42,0.96);
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.vr-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.18s ease;
}

.vr-toggle input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--vr-accent), #00C4B3);
  border-color: transparent;
}

.vr-toggle input[type="checkbox"]:checked::before {
  transform: translateX(0.9rem);
}

.vr-toggle__label {
  cursor: pointer;
}

