/* Mobile-first: todo pensado para pantalla angosta primero, el desktop
   simplemente tiene más aire alrededor del mismo layout de una columna. */

.rc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}
.rc-header h1 { margin: 0; font-size: 1.15rem; }
.rc-header-title p { margin: 0.2rem 0 0; }

.rc-progress-bar {
  height: 6px;
  background: var(--panel-2);
  margin: 0 1rem;
  border-radius: 999px;
  overflow: hidden;
}
.rc-progress-fill {
  height: 100%;
  background: var(--accent-2);
  width: 0%;
  transition: width 0.3s ease;
}

.rc-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rc-tab {
  flex: none;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.rc-tab.active { background: var(--accent); color: #0d0f1c; border-color: var(--accent); font-weight: 600; }

.rc-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 3rem;
}

.rc-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.rc-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.rc-jump-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.rc-name { margin: 0.2rem 0 0.4rem; font-size: 1.4rem; }

.rc-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.rc-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.rc-badge.rework { color: var(--warn); border-color: var(--warn); }
.rc-badge.name { color: var(--danger); border-color: var(--danger); }

.rc-gallery {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.rc-gallery img {
  height: 180px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex: none;
  cursor: zoom-in;
}

.rc-section { margin: 1.1rem 0; }
.rc-section h3 { margin: 0 0 0.3rem; font-size: 1rem; }

.rc-options { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0; }
.rc-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  background: var(--panel-2);
}
.rc-option.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--panel-2)); }
.rc-option input { margin: 0; }

#rc-name-custom {
  width: 100%;
  margin-top: 0.4rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.rc-warning {
  background: color-mix(in srgb, var(--danger) 15%, var(--panel-2));
  border: 1px solid var(--danger);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

.rc-versions { display: flex; flex-direction: column; gap: 0.7rem; }
.rc-version {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  cursor: pointer;
  background: var(--panel-2);
}
.rc-version.selected { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 15%, var(--panel-2)); }
.rc-version-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.rc-version-letter {
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.rc-version-stats { font-size: 0.8rem; color: var(--muted); }
.rc-version-text { margin: 0.3rem 0 0.4rem; line-height: 1.4; }
.rc-version-suggested {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: auto;
}
.rc-version-arts { display: flex; gap: 0.35rem; overflow-x: auto; }
.rc-version-arts img { height: 60px; border-radius: 6px; border: 1px solid var(--border); }

.rc-custom-details { margin-top: 0.75rem; }
.rc-custom-details summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.rc-custom-form { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.rc-custom-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.rc-custom-form textarea {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 0.5rem; font-family: inherit; resize: vertical;
}
.rc-custom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }

.rc-note-label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
#rc-note {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 0.5rem 0.65rem;
}

.rc-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
  position: sticky;
  bottom: 0.5rem;
}
.rc-actions .btn { flex: 1; padding: 0.8rem; font-size: 1rem; }
#rc-save-hint { text-align: center; margin-top: 0.5rem; }

.rc-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  z-index: 50;
}
.rc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

@media (min-width: 700px) {
  .rc-main { padding-top: 1.5rem; }
  .rc-gallery img { height: 240px; }
  .rc-custom-grid { grid-template-columns: repeat(4, 1fr); }
}
