/* ==========================================================================
 * SBKKO Nav 3.2.0 Visual FX Styles:
 * - Hero native <canvas> container
 * - 6 Modern Full-Screen Loading Transitions
 * - 3 Lightweight Cursor / Click Micro-FX
 * ========================================================================== */

/* --- Hero Canvas Layer --- */
.sbk-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}
.has-hero-fx .sbk-banner__img {
  opacity: 0.14;
}
.has-hero-fx .sbk-banner__glow {
  opacity: 0.25;
}
.sbk-mininav-hero {
  position: relative;
  overflow: hidden;
}
.sbk-mininav-hero__inner {
  position: relative;
  z-index: 2;
}
.has-hero-fx .sbk-mininav-hero h1,
.has-hero-fx .sbk-mininav-hero p {
  color: #fff;
}

/* --- Full-Screen Loading Overlay --- */
.sbk-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
html[data-theme="dark"] .sbk-loader {
  background: rgba(15, 19, 26, 0.95);
}
.sbk-loader.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.sbk-loader__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.sbk-loader__label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--sbk-muted, #64748b);
  font-weight: 500;
}

/* 1. Dual Orbit Ring */
.sbk-ld-orbit {
  position: relative;
  width: 56px;
  height: 56px;
}
.sbk-ld-orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--sbk-accent, #f1404b);
  animation: sbkSpin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}
.sbk-ld-orbit i:nth-child(2) {
  inset: 9px;
  border-top-color: #38bdf8;
  border-right-color: rgba(56, 189, 248, 0.35);
  animation-direction: reverse;
  animation-duration: 1.25s;
}
.sbk-ld-orbit span {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--sbk-accent, #f1404b);
  animation: sbkBeat 1.2s ease-in-out infinite;
}

/* 2. Brand Logo Pulse Glow */
.sbk-ld-pulse {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sbk-ld-pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--sbk-accent, #f1404b);
  opacity: 0;
  animation: sbkPulseRing 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.sbk-ld-pulse i:nth-child(2) {
  animation-delay: 0.55s;
}
.sbk-ld-pulse img,
.sbk-ld-pulse strong {
  position: relative;
  z-index: 2;
  max-width: 72px;
  object-fit: contain;
}

/* 3. Equalizer Bars */
.sbk-ld-bars {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
}
.sbk-ld-bars i {
  width: 6px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sbk-accent, #f1404b), #6366f1);
  animation: sbkBars 0.9s ease-in-out infinite;
}
.sbk-ld-bars i:nth-child(2) { animation-delay: 0.12s; }
.sbk-ld-bars i:nth-child(3) { animation-delay: 0.24s; }
.sbk-ld-bars i:nth-child(4) { animation-delay: 0.36s; }
.sbk-ld-bars i:nth-child(5) { animation-delay: 0.48s; }

/* 4. 3D Folding Cube */
.sbk-ld-cube {
  width: 44px;
  height: 44px;
  position: relative;
  transform: rotateZ(45deg);
}
.sbk-ld-cube i {
  float: left;
  width: 50%;
  height: 50%;
  position: relative;
  transform: scale(1.1);
}
.sbk-ld-cube i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sbk-accent, #f1404b);
  animation: sbkCube 2s infinite linear both;
  transform-origin: 100% 100%;
  border-radius: 3px;
}
.sbk-ld-cube i:nth-child(2) { transform: scale(1.1) rotateZ(90deg); }
.sbk-ld-cube i:nth-child(4) { transform: scale(1.1) rotateZ(180deg); }
.sbk-ld-cube i:nth-child(3) { transform: scale(1.1) rotateZ(270deg); }
.sbk-ld-cube i:nth-child(2)::before { animation-delay: 0.25s; background: #6366f1; }
.sbk-ld-cube i:nth-child(4)::before { animation-delay: 0.5s; background: #38bdf8; }
.sbk-ld-cube i:nth-child(3)::before { animation-delay: 0.75s; background: #10b981; }

/* 5. Newton Orbit Dots */
.sbk-ld-dots {
  display: flex;
  gap: 10px;
}
.sbk-ld-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sbk-accent, #f1404b);
  animation: sbkDots 0.8s ease-in-out infinite alternate;
}
.sbk-ld-dots i:nth-child(2) { animation-delay: 0.2s; background: #6366f1; }
.sbk-ld-dots i:nth-child(3) { animation-delay: 0.4s; background: #38bdf8; }

/* 6. Top Aurora Progress Ribbon (Non-blocking minimal splash) */
.sbk-loader--ribbon {
  background: transparent !important;
  backdrop-filter: none !important;
  align-items: flex-start;
  pointer-events: none;
}
.sbk-loader__bar {
  width: 100%;
  height: 3px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.sbk-loader__bar span {
  display: block;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, var(--sbk-accent, #f1404b), #6366f1, #38bdf8);
  animation: sbkRibbon 1s ease-in-out infinite;
}

/* --- Cursor / Click Micro-FX --- */
.sbk-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(circle, rgba(241, 64, 75, 0.08), rgba(99, 102, 241, 0.04) 45%, transparent 70%);
}
.sbk-ripple {
  position: fixed;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid var(--sbk-accent, #f1404b);
  pointer-events: none;
  z-index: 9998;
  animation: sbkRipple 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.sbk-spark {
  position: fixed;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--sbk-accent, #f1404b);
  pointer-events: none;
  z-index: 9998;
  animation: sbkSpark 0.5s ease-out forwards;
}

@keyframes sbkSpin {
  to { transform: rotate(360deg); }
}
@keyframes sbkBeat {
  0%, 100% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
@keyframes sbkPulseRing {
  0% { transform: scale(0.55); opacity: 0.85; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes sbkBars {
  0%, 100% { height: 14px; opacity: 0.65; }
  50% { height: 42px; opacity: 1; }
}
@keyframes sbkCube {
  0%, 10% { transform: perspective(140px) rotateX(-180deg); opacity: 0; }
  25%, 75% { transform: perspective(140px) rotateX(0deg); opacity: 1; }
  90%, 100% { transform: perspective(140px) rotateY(180deg); opacity: 0; }
}
@keyframes sbkDots {
  from { transform: translateY(0) scale(0.9); opacity: 0.55; }
  to { transform: translateY(-12px) scale(1.15); opacity: 1; }
}
@keyframes sbkRibbon {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
@keyframes sbkRipple {
  0% { transform: scale(0.6); opacity: 0.75; }
  100% { transform: scale(4.2); opacity: 0; }
}
@keyframes sbkSpark {
  0% { transform: translate(0, 0) scale(1); opacity: 0.95; }
  100% { transform: translate(var(--dx, 24px), var(--dy, -24px)) scale(0.1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sbk-loader { display: none !important; }
  .sbk-spotlight, .sbk-ripple, .sbk-spark { display: none !important; }
}
