/* Opál Autókozmetika: irizáló mozgásréteg (ELŐNÉZET). Téma: opál. Csak transform és opacity mozog (a haladássáv scaleX).
   A díszrétegeket az opal-autokozmetika.js adja hozzá; JS nélkül az oldal változatlan. */

/* 1. opálfény a hero kártyában: lassan forgó, puha szélű irizáló folt */
.opx-aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.opx-aura i { position: absolute; border-radius: 50%; }
.opx-aura b { position: absolute; inset: 0; border-radius: 50%; opacity: .38; background: conic-gradient(from 30deg, #3b82f6, #8b5cf6, #38bdf8, #e879f9, #60a5fa, #3b82f6); -webkit-mask: radial-gradient(closest-side, #000 4%, rgba(0, 0, 0, .5) 42%, transparent 100%); mask: radial-gradient(closest-side, #000 4%, rgba(0, 0, 0, .5) 42%, transparent 100%); animation: opx-spin 96s linear infinite; }
.opx-ab1 { width: 680px; height: 680px; left: 64%; top: 2%; margin: -340px 0 0 -340px; animation: opx-d1 46s ease-in-out infinite alternate; }
.opx-ab2 { width: 480px; height: 480px; left: 12%; top: 98%; margin: -240px 0 0 -240px; animation: opx-d2 54s ease-in-out infinite alternate; }
.opx-ab2 b { opacity: .26; animation-duration: 72s; animation-direction: reverse; }
@media (max-width: 767px) {
  .opx-ab1 { width: 440px; height: 440px; left: 78%; margin: -220px 0 0 -220px; }
  .opx-ab2 { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .opx-ab1 b { opacity: .32; }
}
/* a hero kártya üvegszerű elmosása marad látványban, de az animált réteg alatt nem számolódik újra képkockánként */
.opx-anim main > div.backdrop-blur-2xl { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 2. lebegő, lágy foltok az oldal hátterében */
.opx-bubbles { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.opx-bu { position: absolute; border-radius: 50%; background: radial-gradient(circle, var(--c) 0, transparent 66%); opacity: var(--o); }
.opx-bu1 { --c: rgba(59, 130, 246, .9); --o: .17; width: 56vmax; height: 56vmax; left: -16vmax; top: -12vmax; animation: opx-b1 52s ease-in-out infinite alternate; }
.opx-bu2 { --c: rgba(139, 92, 246, .85); --o: .13; width: 44vmax; height: 44vmax; right: -14vmax; top: 30vh; animation: opx-b2 64s ease-in-out infinite alternate; }
.opx-bu3 { --c: rgba(56, 189, 248, .8); --o: .09; width: 38vmax; height: 38vmax; left: 20vw; bottom: -18vmax; animation: opx-b3 58s ease-in-out infinite alternate; }
.opx-lite .opx-bu3, .opx-lite .opx-ab2 { display: none; }
.opx-lite .opx-bu1 { --o: .12; }
.opx-lite .opx-bu2 { --o: .09; }

/* 3. irizáló kártyakeret: megjelenéskor és ráhúzásra egy fénycsík fut végig, fókuszra kiemelődik */
.opx-host { position: relative; isolation: isolate; }
.opx-fx { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
.opx-ring { display: none; position: absolute; inset: 0; padding: 1px; border-radius: inherit; opacity: 0; overflow: hidden; transition: opacity .6s ease; background: linear-gradient(115deg, rgba(96, 165, 250, .85), rgba(167, 139, 250, .7) 38%, rgba(103, 232, 249, .55) 68%, rgba(240, 171, 252, .55)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.opx-mask .opx-ring { display: block; }
.opx-lit > .opx-fx .opx-ring { opacity: .46; }
.opx-lit:hover > .opx-fx .opx-ring, .opx-lit:focus-within > .opx-fx .opx-ring { opacity: .72; }
.opx-beam { position: absolute; top: -40%; bottom: -40%; left: 0; width: 34%; opacity: 0; transform: translate3d(-100%, 0, 0); background: linear-gradient(90deg, transparent, rgba(186, 230, 253, 1) 34%, #fff 50%, rgba(221, 214, 254, 1) 66%, transparent); }
.opx-fx::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 46%; opacity: 0; transform: translate3d(-100%, 0, 0); background: linear-gradient(100deg, transparent, rgba(129, 140, 248, .07) 18%, rgba(129, 140, 248, .16) 42%, rgba(125, 211, 252, .12) 64%, rgba(125, 211, 252, .04) 84%, transparent); }
.opx-go .opx-beam, .opx-go.opx-fx::before { animation: opx-beam 1.7s cubic-bezier(.4, 0, .2, 1) 1 both; }
.opx-spot { position: absolute; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; opacity: 0; transition: opacity .4s ease; background: radial-gradient(circle, rgba(147, 197, 253, .15), rgba(167, 139, 250, .08) 40%, transparent 70%); }
.opx-host:hover > .opx-fx .opx-spot { opacity: 1; will-change: transform; }

/* 4. 3D: irizáló gömb (csak nagy kijelzőn, finom mutatóval; a fénye követi az egeret) */
.opx-orb { display: none; position: absolute; z-index: 3; right: -54px; top: -34px; width: 96px; height: 96px; pointer-events: none; animation: opx-bob 9s ease-in-out infinite alternate; }
@media (min-width: 1200px) and (hover: hover) { .opx-orb { display: block; } }
.o-body { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 36% 30%, #eef2ff 0, #b4c0ff 18%, #7482e8 44%, #343a92 70%, #10133a 100%); box-shadow: 0 18px 30px -16px rgba(129, 140, 248, .55), 0 0 34px rgba(167, 139, 250, .18); }
.o-sw { position: absolute; inset: -22%; }
.o-swirl { position: absolute; inset: 0; border-radius: 50%; opacity: .92; background: conic-gradient(from 0deg, transparent 0 4%, rgba(249, 168, 212, .85) 14%, transparent 27%, rgba(103, 232, 249, .8) 42%, transparent 55%, rgba(167, 243, 208, .65) 67%, transparent 79%, rgba(196, 181, 253, .9) 91%, transparent 100%); -webkit-mask: radial-gradient(circle, transparent 18%, #000 52%); mask: radial-gradient(circle, transparent 18%, #000 52%); animation: opx-spin 30s linear infinite; }
.o-shade { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 68% 76%, rgba(5, 7, 30, .5), transparent 58%), radial-gradient(circle at 50% 50%, transparent 44%, rgba(6, 8, 32, .6) 100%); }
.o-shine { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, .18) 12%, transparent 28%); }

/* 5. haladássáv: a közös sáv irizáló színátmenettel */
.slfx-progress { background: linear-gradient(90deg, #3b82f6, #8b5cf6 45%, #38bdf8 78%, #e879f9); box-shadow: 0 0 12px rgba(139, 92, 246, .4); opacity: 1; }

/* a díszrétegek az oldal betöltése után lágyan úsznak be (a szkript az .opx-ready osztállyal indítja) */
.opx-anim .opx-aura, .opx-anim .opx-bubbles, .opx-anim .opx-orb { opacity: 0; transition: opacity 1.8s ease; }
.opx-anim.opx-ready .opx-aura, .opx-anim.opx-ready .opx-bubbles, .opx-anim.opx-ready .opx-orb { opacity: 1; }

/* a közös beúszás nem emel ki előre külön rétegre (az átmenet közben a böngésző úgyis gyorsítja), és 0 helyett 0,01 átlátszatlanságról indul:
   a Chrome a nulla átlátszatlanságú szöveget csak a beúszás végén számolja (késői LCP-jelölt), az 1%-osat az első festéskor, mint a mozgás nélküli oldalon; szemmel nem látszik */
.slfx-on .slfx-r { will-change: auto; opacity: .01; }

/* a végtelen animációk csak látható elemen és látható lapon futnak (a .opx-live osztályt a szkript kezeli) */
.opx-gate:not(.opx-live), .opx-gate:not(.opx-live) * { animation-play-state: paused; }

@keyframes opx-spin { to { transform: rotate(360deg); } }
@keyframes opx-d1 { to { transform: translate3d(-7%, 10%, 0) scale(1.1); } }
@keyframes opx-d2 { to { transform: translate3d(9%, -8%, 0) scale(1.14); } }
@keyframes opx-b1 { to { transform: translate3d(16vmax, 12vmax, 0) scale(1.12); } }
@keyframes opx-b2 { to { transform: translate3d(-14vmax, -10vmax, 0) scale(1.1); } }
@keyframes opx-b3 { to { transform: translate3d(12vmax, -9vmax, 0) scale(1.15); } }
@keyframes opx-bob { from { transform: translate3d(0, -3px, 0); } to { transform: translate3d(0, 7px, 0); } }
@keyframes opx-beam { 0% { transform: translate3d(-100%, 0, 0); opacity: 0; } 14% { opacity: 1; } 100% { transform: translate3d(260%, 0, 0); opacity: 0; } }

/* csökkentett mozgás: a díszek állóképként maradnak, semmi nem mozdul, minden tartalom azonnal látszik */
@media (prefers-reduced-motion: reduce) {
  .opx-aura *, .opx-bubbles *, .opx-orb, .opx-orb *, .opx-beam, .opx-spot, .opx-ring, .opx-fx::before { animation: none !important; transition: none !important; }
  .opx-beam, .opx-spot, .opx-fx::before { display: none !important; }
  /* az alap oldal egyszeri belépő animációja (hero szavak) sem fut: a tartalom azonnal látszik */
  .animate-word { animation: none !important; opacity: 1 !important; transform: none !important; }
}
