/* EO Templates — Universal FX Styles v1.0 */

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--fx-tr), transform .6s var(--fx-tr);
}
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}
[data-reveal]:nth-child(2) { transition-delay: .1s; }
[data-reveal]:nth-child(3) { transition-delay: .18s; }
[data-reveal]:nth-child(4) { transition-delay: .26s; }
[data-reveal]:nth-child(5) { transition-delay: .34s; }
[data-reveal]:nth-child(6) { transition-delay: .42s; }

/* ── Float animation ───────────────────────────────────────────────────── */
[data-fx~="float"] { animation: fx-float 5s ease-in-out infinite; }
[data-fx~="float"]:nth-child(2n) { animation-delay: -1.5s; }
[data-fx~="float"]:nth-child(3n) { animation-delay: -3s; }
@keyframes fx-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── Pulse glow ────────────────────────────────────────────────────────── */
[data-fx~="pulse"] { animation: fx-pulse 2.5s ease-in-out infinite; }
@keyframes fx-pulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fx-accent) 30%, transparent); }
  50%      { box-shadow: 0 0 0 12px transparent; }
}

/* ── Shimmer (skeleton loader style) ──────────────────────────────────── */
.fx-shimmer {
  position: relative; overflow: hidden;
  background: var(--c-surface);
}
.fx-shimmer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: fx-shimmer 1.8s ease infinite;
}
@keyframes fx-shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── ─── THEME: FROST ─────────────────────────────────────────────────── */
[data-fx-theme="frost"] .fx-card {
  background: var(--fx-card-bg);
  backdrop-filter: blur(var(--fx-card-blur));
  -webkit-backdrop-filter: blur(var(--fx-card-blur));
  border: 1px solid var(--fx-card-border);
  box-shadow: var(--fx-shadow);
}
[data-fx-theme="frost"] .site-nav {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
[data-fx-theme="frost"] .site-nav .nav-links a { color: rgba(255,255,255,.85); }
@media (hover: hover) and (pointer: fine){[data-fx-theme="frost"] .site-nav .nav-links a:hover{ color: #fff; }}
[data-fx-theme="frost"] .site-nav .nav-logo { color: #fff; }

/* ── THEME: GALLERY ───────────────────────────────────────────────────── */
[data-fx-theme="gallery"] .fx-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 4px 20px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .3s, transform .3s;
}
@media (hover: hover) and (pointer: fine){[data-fx-theme="gallery"] .fx-card:hover{
  box-shadow: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(-3px);
}}
[data-fx-theme="gallery"] .site-nav {
  background: rgba(255,253,248,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

/* ── THEME: NEON ──────────────────────────────────────────────────────── */
[data-fx-theme="neon"] .fx-card {
  background: rgba(0,0,0,.3);
  border: 1px solid var(--fx-card-border);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow .3s, border-color .3s;
}
@media (hover: hover) and (pointer: fine){[data-fx-theme="neon"] .fx-card:hover{
  border-color: var(--fx-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--fx-accent) 25%, transparent),
              inset 0 0 24px color-mix(in srgb, var(--fx-accent) 5%, transparent);
}}
[data-fx-theme="neon"] .site-nav {
  background: rgba(6,6,18,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fx-card-border);
}
[data-fx-theme="neon"] .site-nav .nav-links a { color: rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine){[data-fx-theme="neon"] .site-nav .nav-links a:hover{ color: var(--fx-accent); }}
[data-fx-theme="neon"] .site-nav .nav-logo { color: var(--fx-accent); text-shadow: 0 0 20px var(--fx-accent); }
[data-fx-theme="neon"] h1,
[data-fx-theme="neon"] h2 { text-shadow: 0 0 40px color-mix(in srgb, var(--fx-accent) 20%, transparent); }
[data-fx-theme="neon"] .btn-primary { box-shadow: 0 0 20px color-mix(in srgb, var(--fx-accent) 40%, transparent); }

/* ── THEME: MINIMAL ───────────────────────────────────────────────────── */
[data-fx-theme="minimal"] .fx-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  border-radius: var(--r-sm);
}
[data-fx-theme="minimal"] .site-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
[data-fx-theme="minimal"] [data-reveal] { transition-duration: .2s; }
[data-fx-theme="minimal"] [data-fx~="float"] { animation: none; }

/* ── THEME: SPARK ─────────────────────────────────────────────────────── */
[data-fx-theme="spark"] .fx-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
@media (hover: hover) and (pointer: fine){[data-fx-theme="spark"] .fx-card:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(255,107,107,.15);
}}
[data-fx-theme="spark"] .site-nav {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 50%, #6bcb77 100%);
}
[data-fx-theme="spark"] .site-nav .nav-links a,
[data-fx-theme="spark"] .site-nav .nav-logo { color: #fff; }

/* ── FX Switcher UI ───────────────────────────────────────────────────── */
#eo-fx-switcher {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 10000;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

.eo-fx-toggle {
  width: 48px; height: 48px;
  background: rgba(20,20,30,.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-full);
  color: #fff; font-size: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) and (pointer: fine){.eo-fx-toggle:hover{ transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,.4); }}

.eo-fx-panel {
  background: rgba(16,18,28,.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  min-width: 200px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
  display: none;
  flex-direction: column; gap: 8px;
}
#eo-fx-switcher.open .eo-fx-panel { display: flex; }

.eo-fx-panel-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.4); padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 4px;
}

.eo-theme-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  color: rgba(255,255,255,.7); font-size: var(--text-sm);
  transition: background .15s, color .15s;
  width: 100%;
}
@media (hover: hover) and (pointer: fine){.eo-theme-btn:hover{ background: rgba(255,255,255,.08); color: #fff; }}
.eo-theme-btn.active { background: rgba(255,255,255,.12); color: #fff; }
.eo-theme-btn.active::after { content: '✓'; margin-left: auto; opacity: .6; font-size: 11px; }

.eo-theme-swatch {
  width: 24px; height: 24px; border-radius: var(--r-sm);
  flex-shrink: 0; border: 1px solid rgba(255,255,255,.15);
  display: block;
}

/* ── Canvas BG (z-index behind content) ───────────────────────────────── */
#eo-fx-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .55; transition: opacity .5s;
}
body > *:not(#eo-fx-canvas):not(#eo-fx-switcher):not(#eo-toast):not(#ice-back-top):not(#ms-back-top):not(#rest-back-top):not(#rest-topbar):not(#rest-nav) { position: relative; z-index: 1; }

/* ── Parallax wrapper ─────────────────────────────────────────────────── */
[data-parallax] { will-change: transform; }

/* ── Misc helpers ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.mt-sm { margin-top: var(--sp-sm); } .mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); } .mt-xl { margin-top: var(--sp-xl); }
.mb-md { margin-bottom: var(--sp-md); } .mb-lg { margin-bottom: var(--sp-lg); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }