/**
 * featured-carousel.css · DeayanXtra (home only)
 * Random-7 infinite carousel. Driven by DxFeaturedCarousel in app.js.
 * Uses root tokens from theme.css. Never load this inside packs.
 */

.dx-feat-stage {
  position: relative;
  height: 540px;
  margin: 30px 0 8px;
  overflow: hidden;
  contain: layout paint;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  outline: none;
}
.dx-feat-stage.is-dragging { cursor: grabbing; }
.dx-feat-stage:focus-visible {
  outline: 1px solid var(--line-specular);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.dx-feat-arc {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.dx-feat-card {
  grid-area: 1 / 1;
  width: var(--feat-cw, 300px);
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-chassis);
  color: inherit;
  text-decoration: none;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: border-color 0.2s ease, box-shadow 0.24s ease;
  -webkit-user-drag: none;
}
.dx-feat-card.is-center {
  border-color: var(--line-specular);
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-specular);
}
.dx-feat-card:focus-visible { outline: 2px solid var(--line-specular); outline-offset: 2px; }

.dx-feat-card .dx-card-viewport img { -webkit-user-drag: none; pointer-events: none; }
.dx-feat-card .dx-card-body { margin-top: 14px; }
.dx-feat-card .dx-card-title {
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dx-feat-card .dx-card-desc { margin: 8px 0 14px; }
.dx-feat-card .dx-card-launch-btn { height: 38px; }
.dx-feat-card .dx-card-launch-btn::after { display: none; }
.dx-feat-card.is-center .dx-card-launch-btn { filter: brightness(1.08); }

.dx-feat-empty {
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Numbered chips */
.dx-feat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.dx-feat-chip {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-border);
  background: var(--groove-bg);
  box-shadow: var(--shadow-cavity);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.dx-feat-chip::before { content: ""; position: absolute; inset: -7px; } /* 44px hit area */
.dx-feat-chip:hover { color: var(--text-primary); border-color: var(--line-specular); }
.dx-feat-chip:focus-visible { outline: 2px solid var(--line-specular); outline-offset: 2px; }
.dx-feat-chip.is-active {
  background: var(--btn-primary-metal);
  color: var(--btn-primary-text);
  border-color: transparent;
  box-shadow: var(--btn-primary-shadow);
}

.dx-feat-hint {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .dx-feat-stage { height: 500px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-feat-card { transition: none; }
}

/* ── Primary "Browse all tools" calls to action ───────────────── */
.dx-cta-spotlight { position: relative; font-family: var(--font-title); font-weight: 800; letter-spacing: 0.05em; }
.dx-cta-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: dx-cta-sheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
.dx-cta-spotlight .dx-cta-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
  animation: dx-cta-nudge 2.4s ease-in-out infinite;
}
.dx-cta-spotlight:hover .dx-cta-arrow { transform: translateX(4px); animation: none; }
.dx-cta-count:empty { display: none; }
.dx-cta-spotlight .dx-nav-tools-count { color: inherit; opacity: 0.7; }

.dx-btn.dx-cta-spotlight.lg.dx-split-cta { --btn-h: 54px; padding: 0 32px; font-size: 13px; }

.dx-feat-more { display: flex; justify-content: center; margin-top: 30px; }
.dx-feat-more .dx-btn.dx-cta-spotlight.lg { --btn-h: 58px; padding: 0 44px; font-size: 13.5px; }

@keyframes dx-cta-sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes dx-cta-nudge { 0%, 70%, 100% { transform: translateX(0); } 85% { transform: translateX(5px); } }

@media (max-width: 540px) {
  .dx-feat-more .dx-btn.dx-cta-spotlight.lg { width: 100%; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-cta-spotlight::after, .dx-cta-spotlight .dx-cta-arrow { animation: none; }
}

/* Hero "Discover Tools" link: same display font as the other calls to action */
a.dx-hero-scroll-cue#dx-scroll-cue-btn { font-family: var(--font-title); font-weight: 800; letter-spacing: 0.06em; }