/* GazeTo — Activities screen redesign styles (owned by activities screen) */

/* Header block above the stufe tabs */
.screen-activities .r-act-head { margin-bottom: 26px; }
.screen-activities .r-act-head .eyebrow { display: block; margin-bottom: 8px; }
.screen-activities .r-act-head .page-title { margin: 0 0 10px; }
.screen-activities .r-act-head .page-lead { margin: 0; max-width: 64ch; }

/* Age-group filter row — sits above the stufe-tabs. Reuses the pill look of
   the stufe-tabs and the .is-active highlight (accent fill + white text). */
.screen-activities .age-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.screen-activities .age-tabs__label {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-fg3);
  margin-right: 4px;
}
.screen-activities .age-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--c-bg-primary);
  border: 1px solid var(--c-border);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--c-fg1);
  cursor: pointer;
  transition: all var(--transition-base, 0.2s);
  min-height: 44px;
}
.screen-activities .age-tab:hover { background: var(--c-bg-tertiary); }
.screen-activities .age-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--c-accent);
}
.screen-activities .age-tab__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.screen-activities .age-tab svg { width: 18px; height: 18px; }
[data-theme="contrast"] .screen-activities .age-tab.is-active,
.high-contrast .screen-activities .age-tab.is-active { background: #ffd60a; color: #000; }

/* Empty state */
.screen-activities .r-act-empty {
  font-size: 1.05rem;
  color: var(--c-fg2);
  padding: 40px 4px;
  text-align: center;
}

/* Star toggle overlaid on the tile media (top-right). It sits above the
   tile button, so clicks are stopped from bubbling in JS. */
.act-tile__media { position: relative; }
.act-tile__star {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-border, rgba(0,0,0,0.08));
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  color: #9ca3af;
  z-index: 5;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.act-tile__star:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* Lucide star icon: outline by default, filled (via currentColor) when on. */
.act-tile__star .act-tile__star-icon,
.act-tile__star svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}
.act-tile__star.is-on {
  color: #f59e0b;
  background: rgba(255, 251, 235, 0.97);
}
.act-tile__star.is-on svg { fill: currentColor; }

/* Keep the long focus subtitle tidy (max two lines). */
.act-tile__focus {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────────────────
   "Eigene Inhalte" entry card — opens the VSD scene editor.
   A prominent, touch-friendly accent card under the header.
   ────────────────────────────────────────────────────────────────────── */
.screen-activities .r-act-create {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  margin: 0 0 22px;
  padding: 18px 20px;
  min-height: 72px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-bg-primary);
  cursor: pointer;
  color: var(--c-fg1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.screen-activities .r-act-create:hover {
  border-color: var(--c-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.screen-activities .r-act-create:active { transform: translateY(1px); }
.screen-activities .r-act-create__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-accent);
  color: #fff;
}
.screen-activities .r-act-create__icon svg { width: 28px; height: 28px; }
.screen-activities .r-act-create__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.screen-activities .r-act-create__title {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-fg1);
}
.screen-activities .r-act-create__sub {
  font-family: var(--f-body);
  font-size: 0.9rem;
  color: var(--c-fg2);
}
.screen-activities .r-act-create__arrow {
  flex-shrink: 0;
  color: var(--c-fg3);
  display: flex;
  align-items: center;
}
.screen-activities .r-act-create__arrow svg { width: 22px; height: 22px; }
[data-theme="contrast"] .screen-activities .r-act-create__icon,
.high-contrast .screen-activities .r-act-create__icon { background: #ffd60a; color: #000; }

/* Lucide icon inside a stufe-tab (used by the "Eigene"/VSD filter tab). */
.screen-activities .stufe-tab__lucide {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.screen-activities .stufe-tab__lucide svg { width: 16px; height: 16px; }

/* Custom VSD scene tile: chip + image-icon placeholder when no thumbnail. */
.act-tile__chip--vsd {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.act-tile__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--c-bg-tertiary, #eef0f3);
  color: var(--c-fg3, #9ca3af);
}
.act-tile__placeholder svg { width: 40px; height: 40px; }

/* VSD banner variant — accent-tinted media box with a centred image icon. */
.stufe-banner--vsd { background: var(--c-accent); }
.stufe-banner__media--vsd {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
}
.stufe-banner__media--vsd svg { width: 56px; height: 56px; }
