/*
 * feature-highlights.css — стили слоя релиз-подсветок «Что нового».
 * Дополняет onboarding.css: карточка/оверлей/спотлайт уже стилизованы там
 * (.ma-tour-tip / .ma-tour-cutout / .ma-tour-overlay), здесь — только то, чего
 * нет у тура: бейдж «Новое», подменю снуза, мелкие правки шапки карточки.
 * Только токены theme.css, без hardcoded цветов. Owner: Infrastructure Lead.
 */

/* Карточка релиз-подсветки чуть шире тур-подсказки — под две кнопки решения. */
.ma-highlight-card {
  width: 360px;
}

/* Шапка: бейдж + заголовок + (счётчик) + закрыть. Заголовок тянется, бейдж и
   крестик не сжимаются. */
.ma-fh-header {
  align-items: center;
  gap: 8px;
}

.ma-fh-header .ma-tour-tip-title {
  order: 2;
}

/* Бейдж «Новое» — акцентная пилюля с иконкой. */
.ma-fh-badge {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

.ma-fh-badge svg {
  width: 12px;
  height: 12px;
}

.ma-fh-header .ma-tour-tip-counter {
  order: 3;
}

/* Кнопка закрытия карточки. */
.ma-fh-close {
  order: 4;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text2);
  border-radius: var(--radius-sm);
  transition: color 120ms, background 120ms;
}

.ma-fh-close:hover {
  color: var(--text);
  background: var(--surface2);
}

.ma-fh-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Ряд кнопок решения (Я изучил / Напомнить позже). */
.ma-fh-actions {
  gap: 8px;
}

.ma-fh-actions .ma-tour-btn-secondary {
  gap: 5px;
}

/* ─── Подменю выбора срока напоминания ──────────────────────────────────────── */

.ma-fh-snooze-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin: 4px 0 8px;
}

.ma-fh-snooze-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

/* Кнопки срока — на всю ширину, ровный столбик. */
.ma-fh-snooze-options .ma-tour-btn-secondary {
  width: 100%;
  justify-content: center;
}

/* Ссылка «Назад» в подменю снуза. */
.ma-fh-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.ma-fh-link:hover {
  color: var(--text);
}

.ma-fh-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Уменьшение движения ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ma-highlight-card {
    transition: none !important;
  }
}
