/* The shared .about-modal shell -- used by about_modal (about.js),
   feed_vibe_modal and its tag filter (feed-about.js), preferences_modal
   (prefs-modal.js), and also the add and Backups modals (custom-add.css,
   backups.css) -- plus those first three screens' own content. */

.about-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.about-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
  backdrop-filter: blur(2px);
}

.about-modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  margin: 1rem;
  background: var(--card-bg);
  border: 1px solid rgba(var(--fg-rgb), 0.12);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-modal);
}

.about-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.about-modal-close:hover {
  color: var(--text);
}

.about-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.about-modal-divider {
  border: none;
  border-top: 1px solid rgba(var(--fg-rgb), 0.12);
  margin: 1.1rem 0;
}

/* about_modal */
.about-modal-app-desc {
  margin: 0.6rem 0 0;
  font-size: 1.1rem;
  text-align: center;
}

.about-modal-ack {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.about-modal-ack a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.about-modal-ack a:hover {
  text-decoration: underline;
}

.about-modal-feeds-intro {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.about-modal-feed-guide {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-modal-feed-guide strong {
  color: var(--text);
  font-weight: 600;
}

.about-modal-homescreen {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* feed_vibe_modal and its tag filter */
.feed-vibe-label {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.feed-vibe-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.feed-vibe-tags-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tag-modal-option {
  width: 100%;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.tag-modal-option:hover {
  background: rgba(var(--fg-rgb), 0.08);
}

.tag-modal-option.active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

/* preferences_modal */
.prefs-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pref-label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pref-options {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(var(--fg-rgb), 0.06);
}

.pref-option {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.pref-option:hover {
  background: rgba(var(--fg-rgb), 0.08);
}

.pref-option.active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.pref-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
