/* =========================================================================
   ASHES · FX — interaction, footer, about page and shop layout.
   Loaded after ashes-clean.css. Remove its <link> in head.twig to drop it.
   ========================================================================= */

/* ------------------------------------------------------------------ buttons
   Primary: off-white that ignites to ember on hover, with a light sweep.
   Secondary: outline that fills and brightens. Both lift, both press. */
body .btn-primary,
body .btn-secondary { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
body .btn-primary::after,
body .btn-secondary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); opacity: 0; pointer-events: none;
}
body .btn-primary:hover::after,
body .btn-secondary:hover::after { animation: fx-sweep .7s ease forwards; }
@keyframes fx-sweep { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 0; } }

body .btn-primary:hover,
body .store-product .btn-primary:hover,
body .store-product.a-tier.is-picked .btn-primary:hover,
body .store-product.a-coin.is-best .btn-primary:hover {
  background: var(--c-accent) !important; border-color: var(--c-accent) !important; color: #120700 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(249, 115, 22, .75) !important;
}
body .btn-primary:active,
body .store-product .btn-primary:active {
  transform: translateY(0) scale(.97) !important;
  background: #ea580c !important; border-color: #ea580c !important;
  box-shadow: 0 4px 14px -8px rgba(249, 115, 22, .8) !important;
  transition-duration: .08s;
}
body .btn-secondary:hover,
body .store-product.a-tier:not(.is-picked) .btn-primary:hover,
body .store-product.a-coin:not(.is-best) .btn-primary:hover {
  background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .55) !important; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9) !important;
}
body .btn-secondary:active,
body .store-product.a-tier:not(.is-picked) .btn-primary:active,
body .store-product.a-coin:not(.is-best) .btn-primary:active {
  transform: translateY(0) scale(.97) !important; background: rgba(255, 255, 255, .14) !important; transition-duration: .08s;
}
/* added-to-basket state: the button turns green for a moment (ashes.js / main.js flips the label) */
body .store-product .btn-primary.added, body .store-product .btn-primary.is-added { background: #22c55e !important; border-color: #22c55e !important; color: #04150a !important; }
body .btn-primary svg, body .btn-secondary svg { transition: transform .25s var(--c-ease); }
body .btn-primary:hover svg, body .btn-secondary:hover svg { transform: translateX(3px); }

/* header login / account / basket */
body .a-header-actions .log-in,
body .a-header-actions .user-name { gap: 8px; }
body .a-header-actions .log-in svg, body .a-header-actions .open-basket svg { width: 16px; height: 16px; flex: none; }
body .a-header-actions .user-name .text-inner { display: grid; }
body .a-header-actions .user-name .text, body .a-header-actions .user-name .text-hover { grid-area: 1 / 1; transition: opacity .2s, transform .2s var(--c-ease); }
body .a-header-actions .user-name .text-hover { opacity: 0; transform: translateY(6px); color: #fca5a5; }
body .a-header-actions .user-name:hover .text { opacity: 0; transform: translateY(-6px); }
body .a-header-actions .user-name:hover .text-hover { opacity: 1; transform: none; }
body .a-header-actions .user-name::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

/* ------------------------------------------------------------------ nav: ember underline */
body .site-navigation .navigation-list > li > a { position: relative; }
body .site-navigation .navigation-list > li > a::after {
  display: block !important; content: "" !important; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: center;
  transition: transform .3s var(--c-ease);
}
body .site-navigation .navigation-list > li > a:hover::after,
body .site-navigation .navigation-list > li > a.link-active::after,
body .site-navigation .navigation-list > li > a.is-current::after { transform: scaleX(1); }
body .site-navigation .navigation-list > li > a:hover { background: transparent !important; }
@media (min-width: 1101px) {
  body .site-navigation .navigation-list > li:has(> a[data-a-section="live"]),
  body .site-navigation .navigation-list > li:has(> a[href$="#live"]),
  body .site-navigation .navigation-list > li:has(> a[href$="#story"]) { display: none; }
}

/* ------------------------------------------------------------------ cards: lift + cursor spotlight
   ashes-fx.js writes --mx / --my on hover; without JS the glow sits at the top. */
body .store-product,
body .a-step,
body .a-tile,
body .a-beat,
body .f-help,
body .f-fact {
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, .055), transparent 45%),
    var(--c-surface) !important;
  transition: transform .35s var(--c-ease), border-color .3s, box-shadow .35s !important;
}
body .store-product:hover,
body .a-step:hover,
body .a-tile:hover,
body .a-beat:hover,
body .f-help:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .95) !important;
}
body .store-product.a-tier.is-picked {
  background:
    radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(249, 115, 22, .10), transparent 50%),
    var(--c-surface) !important;
}
body .store-product.a-tier.is-picked:hover { border-color: rgba(249, 115, 22, .6) !important; box-shadow: 0 26px 60px -30px rgba(249, 115, 22, .45) !important; }
body .store-product .image-link { overflow: hidden; display: block; border-radius: 12px; }
body .store-product .image-link img { transition: transform .5s var(--c-ease), filter .5s; }
body .store-product:hover .image-link img { transform: scale(1.06); }
body .store-product.a-tier:hover::before { opacity: 1; height: 3px; }
body .a-perks li { transition: color .2s, transform .2s var(--c-ease); }
body .store-product:hover .a-perks li { color: var(--c-fg); }
body .a-step:hover .a-step-n { color: var(--c-accent) !important; transition: color .3s; }
body .a-beat:hover .a-beat-body h3 { color: #fff; }

/* radio + roster rows */
body .a-station, body .a-track, body .a-roster-item { transition: background-color .2s, transform .2s var(--c-ease) !important; }
body .a-station:hover, body .a-track:hover, body .a-roster-item:hover { background: var(--c-surface-2) !important; transform: translateX(3px); }
body .a-station.is-active, body .a-track.is-current { box-shadow: inset 2px 0 0 var(--c-accent) !important; }
body .a-ctrl { transition: background-color .2s, transform .15s var(--c-ease) !important; }
body .a-ctrl:hover { background: rgba(255, 255, 255, .08) !important; }
body .a-ctrl:active { transform: scale(.9); }
body .a-ctrl-main:hover { background: var(--c-accent) !important; color: #120700 !important; transform: scale(1.06); }
body .a-video-play { transition: transform .3s var(--c-ease), background-color .3s !important; }
body .a-video-screen:hover .a-video-play { transform: scale(1.08); background: var(--c-accent) !important; }

/* homepage "browse the full shop" link under the coins */
body .f-shop-more { display: flex; justify-content: center; margin-top: 28px; }

/* ------------------------------------------------------------------ shop (category pages) */
body.page-category .a-page { padding-top: 140px !important; }
body .f-shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 36px; }
body .f-shop-tabs a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--c-line-2); color: var(--c-fg-2); font: 600 13.5px/1 var(--c-body); text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--c-ease);
}
body .f-shop-tabs a:hover { color: #fff; border-color: rgba(255, 255, 255, .45); transform: translateY(-1px); }
body .f-shop-tabs a.is-on { background: var(--c-fg); border-color: var(--c-fg); color: #0a0a0a; }
body .f-help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 56px; }
body .f-help {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 16px;
  border: 1px solid var(--c-line); text-decoration: none; color: var(--c-fg);
}
body .f-help b { font: 800 22px/1 var(--c-display); text-transform: uppercase; letter-spacing: .01em; }
body .f-help span { font-size: 14px; color: var(--c-fg-2); line-height: 1.6; }
body .f-help i { font-style: normal; margin-top: 10px; font: 700 13px/1 var(--c-body); color: var(--c-fg); }
body .f-help:hover i { color: var(--c-accent); }

/* ------------------------------------------------------------------ about page */
body .f-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
body .f-about-grid .a-doc { max-width: none !important; margin: 0 !important; }
body .f-facts { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 100px; }
body .f-fact { padding: 22px; border-radius: 16px; border: 1px solid var(--c-line); }
body .f-fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-line); font-size: 14px; }
body .f-fact-row:last-of-type { border-bottom: 0; }
body .f-fact-row span { color: var(--c-fg-3); }
body .f-fact-row b { color: var(--c-fg); font-weight: 700; }
body .f-fact .btn-primary, body .f-fact .btn-secondary { width: 100%; margin-top: 14px; }
body .f-fact h3 { font: 800 24px/1 var(--c-display); text-transform: uppercase; margin: 0 0 6px; }
body .f-fact p { font-size: 14px; color: var(--c-fg-2); margin: 0; }

/* ------------------------------------------------------------------ footer */
body .site-footer.f-footer { padding: 0 !important; }
body .f-footer .site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: block !important; }
body .f-foot-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin: 72px 0 64px; padding: 44px 48px; border-radius: 22px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(249, 115, 22, .14), transparent 70%),
    var(--c-surface-2);
  border: 1px solid var(--c-line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
body .f-foot-eyebrow { font: 600 12px/1 var(--c-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); }
body .f-foot-title { margin: 12px 0 0; font: 800 clamp(34px, 4vw, 54px)/0.95 var(--c-display); text-transform: uppercase; color: var(--c-fg); }
body .f-foot-title span { color: var(--c-accent); }
body .f-foot-cta p { margin: 12px 0 0; color: var(--c-fg-2); max-width: 520px; }
body .f-foot-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
body .f-foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 40px; padding: 8px 0 48px; }
body .f-foot-brand img { max-height: 54px; width: auto; }
body .f-foot-brand p { margin: 18px 0 0; max-width: 340px; font-size: 14px; line-height: 1.7; color: var(--c-fg-3); }
body .f-foot-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--c-line-2); font: 600 12px/1 var(--c-body); color: var(--c-fg-2); }
body .f-foot-status i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
body .f-foot-social { display: flex; gap: 8px; margin-top: 18px; }
body .f-foot-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--c-line-2); color: var(--c-fg-2);
  transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--c-ease);
}
body .f-foot-social a:hover { color: #fff; background: #5865f2; border-color: #5865f2; transform: translateY(-2px); }
body .f-foot-col h4 { margin: 0 0 16px; font: 700 12px/1 var(--c-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-fg); }
body .f-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
body .f-foot-col a, body .f-foot-col button {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font: 500 14px/1.3 var(--c-body) !important; color: var(--c-fg-3) !important; text-decoration: none;
  background: none !important; border: 0 !important; padding: 0 !important; min-height: 0 !important; cursor: pointer;
  transition: color .2s, transform .25s var(--c-ease);
}
body .f-foot-col a::before, body .f-foot-col button::before {
  content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--c-accent); transition: width .25s var(--c-ease);
}
body .f-foot-col a:hover, body .f-foot-col button:hover { color: var(--c-fg) !important; }
body .f-foot-col a:hover::before, body .f-foot-col button:hover::before { width: 10px; }
body .f-foot-col .f-foot-user { font-size: 14px; color: var(--c-fg-2); }
body .f-foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 0 32px; border-top: 1px solid var(--c-line);
}
body .f-foot-bottom .we-accept { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
body .f-foot-bottom .we-accept li { height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; }
body .f-foot-bottom .we-accept img { height: 16px; width: auto; }
body .f-foot-bottom .copyright { margin: 0; font-size: 12.5px !important; color: var(--c-fg-3) !important; }
body .f-foot-legal { width: 100%; margin: 0; font-size: 12px; color: var(--c-fg-3); opacity: .8; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  body .f-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .f-foot-brand { grid-column: 1 / -1; }
  body .f-about-grid { grid-template-columns: 1fr; }
  body .f-facts { position: static; }
  body .f-help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body .f-foot-cta { flex-direction: column; align-items: flex-start; padding: 30px 24px; margin-top: 48px; }
  body .f-foot-cta-actions { width: 100%; }
  body .f-foot-cta-actions a { flex: 1; }
  body .f-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  body .f-foot-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  body .btn-primary:hover::after, body .btn-secondary:hover::after { animation: none; }
  body .store-product:hover, body .a-step:hover, body .a-tile:hover, body .a-beat:hover, body .f-help:hover { transform: none !important; }
}

/* footer bottom row: undo the older greyed-out payment strip */
body .f-foot-bottom .we-accept { opacity: 1 !important; width: auto !important; flex-wrap: wrap; }
body .f-foot-bottom .we-accept img { filter: none !important; opacity: 1 !important; }
body .f-foot-bottom .copyright { border: 0 !important; padding: 0 !important; width: auto !important; }
