/* Main CSS file - Imports all other CSS */
@import url('reset.css');
@import url('variables.css');
@import url('funx-theme.css');
@import url('components.css');
@import url('layout.css');
@import url('pages/home.css');
@import url('pages/tiktok.css');

/* Base styles */
html{
    background-color: var(--fx-bg, var(--bg-primary));
    color-scheme: dark;
}

body {
    /* Modern 2026-ish background (Edge-safe): always has a solid dark fallback */
    background-color: var(--fx-bg, var(--bg-primary));
    background-image: var(--fx-bg-grad,
        radial-gradient(1200px 600px at 10% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(139, 92, 246, 0.16), transparent 55%),
        radial-gradient(900px 500px at 50% 100%, rgba(16, 185, 129, 0.10), transparent 55%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) 100%)
    );
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
}

/* Subtle floating blobs (modern feel, still lightweight) */
body::before,
body::after{
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
    animation: funxFloat 16s ease-in-out infinite;
}

body::before{
    top: -200px;
    left: -180px;
    background: radial-gradient(circle at 30% 30%, rgba(228,64,95,0.22), transparent 62%),
                radial-gradient(circle at 70% 60%, rgba(59,130,246,0.18), transparent 60%);
}

body::after{
    bottom: -220px;
    right: -200px;
    animation-duration: 20s;
    background: radial-gradient(circle at 30% 30%, rgba(16,185,129,0.18), transparent 62%),
                radial-gradient(circle at 70% 60%, rgba(139,92,246,0.18), transparent 60%);
}

@keyframes funxFloat{
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(18px, 26px, 0) scale(1.03); }
}

/* Utility classes that need to be last */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce){
    body::before,
    body::after{ animation: none; }
}

/* ------------------------------------------------------------
   Modern UX: Stepper (TikTok loading)
------------------------------------------------------------- */
.fx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.fx-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.78);
  user-select: none;
}

.fx-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05);
}

.fx-step-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fx-step.is-active {
  border-color: rgba(59,130,246,0.35);
  background: rgba(59,130,246,0.12);
  color: rgba(255,255,255,0.92);
}

.fx-step.is-active .fx-step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.16);
}

.fx-step.is-done {
  border-color: rgba(16,185,129,0.35);
  background: rgba(16,185,129,0.10);
  color: rgba(255,255,255,0.92);
}

.fx-step.is-done .fx-step-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.16);
}

@media (max-width: 680px) {
  .fx-steps { grid-template-columns: 1fr; }
}