/* ================================================================
   FOXCO STEPS WIDGET  v1.0.0
   4 Preset Styles:
   1. preset-dark_gradient  — deep navy/purple, watermark numbers
   2. preset-foxco_orange   — brand orange, vertical timeline
   3. preset-minimal_clean  — white cards, clean numbered circle
   4. preset-neon_glow      — dark bg, electric glow accents
   ================================================================ */

/* ── BASE RESET ─────────────────────────────────────────── */
.foxco-steps-wrap *,
.foxco-steps-wrap *::before,
.foxco-steps-wrap *::after {
  box-sizing: border-box;
}

.foxco-steps-wrap {
  position: relative;
  width: 100%;
  padding: 60px 30px;
}

/* ── SECTION HEADING ────────────────────────────────────── */
.foxco-steps-heading {
  text-align: center;
  margin-bottom: 50px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
}
.foxco-steps-heading strong {
  font-weight: 900;
}

/* ── VERTICAL LAYOUT (DEFAULT) ──────────────────────────── */
.foxco-steps-wrap.layout-vertical {
  display: block;
}
.foxco-steps-wrap.layout-vertical .foxco-step {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.foxco-steps-wrap.layout-vertical .foxco-step:last-child {
  margin-bottom: 0;
}

/* ── HORIZONTAL LAYOUT ──────────────────────────────────── */
.foxco-steps-wrap.layout-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
}
.foxco-steps-wrap.layout-horizontal .foxco-step {
  flex: 1 1 220px;
  max-width: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── TIMELINE LAYOUT ────────────────────────────────────── */
.foxco-steps-wrap.layout-timeline {
  padding-left: 80px;
  position: relative;
}
.foxco-steps-wrap.layout-timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 80px;
  bottom: 80px;
  width: 2px;
  background-color: rgba(255,255,255,0.2);
  z-index: 0;
}
.foxco-steps-wrap.layout-timeline .foxco-step {
  position: relative;
  margin-bottom: 50px;
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 80px;
}
.foxco-steps-wrap.layout-timeline .foxco-step-content {
  text-align: left;
  max-width: 100%;
}
.foxco-steps-wrap.layout-timeline .foxco-step-badge {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  left: 14px;
  z-index: 2;
}

/* ── STEP WRAPPER ───────────────────────────────────────── */
.foxco-step {
  position: relative;
}

/* ── STEP CONTENT ───────────────────────────────────────── */
.foxco-step-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ── BADGE BASE ─────────────────────────────────────────── */
.foxco-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  border-style: solid;
  border-width: 2px;
  border-color: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.foxco-step-badge:hover {
  transform: scale(1.1);
}
.foxco-step-badge.style-circle {
  border-radius: 50%;
}
.foxco-step-badge.style-square {
  border-radius: 6px;
}
.foxco-step-badge.style-pill {
  border-radius: 100px;
  width: auto;
  padding: 6px 18px;
  height: auto;
}
.foxco-step-badge.style-outline {
  border-radius: 50%;
  background: transparent !important;
}
.foxco-step-badge.style-none {
  display: none;
}

/* ── WATERMARK ──────────────────────────────────────────── */
.foxco-step-watermark {
  position: absolute;
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.05em;
}

/* ── STEP TITLE ─────────────────────────────────────────── */
.foxco-step-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

/* ── STEP DESC ──────────────────────────────────────────── */
.foxco-step-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  margin: 0;
}

/* ── VERTICAL CONNECTOR ─────────────────────────────────── */
.foxco-steps-wrap.layout-vertical.show-connector
.foxco-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -60px;
  width: 2px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  z-index: 1;
}

/* ── HORIZONTAL CONNECTOR ───────────────────────────────── */
.foxco-steps-wrap.layout-horizontal.show-connector
.foxco-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 30px;
  width: 30px;
  height: 2px;
  background: rgba(255,255,255,0.25);
}

/* ── STAGGER ANIMATION ──────────────────────────────────── */
.foxco-steps-wrap.animate-in .foxco-step {
  opacity: 0;
  transform: translateY(30px);
  animation: foxcoStepReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes foxcoStepReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* also fire when in viewport (intersection observer fallback) */
.foxco-steps-wrap.animate-in.foxco-visible .foxco-step {
  /* already triggered by animation */
}

/* ================================================================
   PRESET 1: DARK GRADIENT
   The screenshot style — deep navy → purple, watermark numbers
   ================================================================ */
.foxco-steps-wrap.preset-dark_gradient {
  background: linear-gradient(
    160deg,
    #0d1b3e 0%,
    #1a1060 40%,
    #2d0a3e 70%,
    #3d0a2a 100%
  );
  border-radius: 0;
}

.foxco-steps-wrap.preset-dark_gradient .foxco-steps-heading {
  color: #ffffff;
  font-weight: 300;
}
.foxco-steps-wrap.preset-dark_gradient .foxco-steps-heading strong {
  font-weight: 900;
  color: #ffffff;
}

/* Badge: inner dark fill + outer translucent ring = the double-ring trick */
.foxco-steps-wrap.preset-dark_gradient .foxco-step-badge {
  background: #1e1252;
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.05),
    0 0 0 16px rgba(255,255,255,0.02);
}

.foxco-steps-wrap.preset-dark_gradient .foxco-step-badge:hover {
  box-shadow:
    0 0 0 8px rgba(255,255,255,0.1),
    0 0 20px rgba(120,80,255,0.4);
}

.foxco-steps-wrap.preset-dark_gradient .foxco-step-watermark {
  color: rgba(255,255,255,0.04);
  font-style: italic;
}

.foxco-steps-wrap.preset-dark_gradient .foxco-step-title {
  color: #ffffff;
}

.foxco-steps-wrap.preset-dark_gradient .foxco-step-desc {
  color: rgba(255,255,255,0.75);
}

.foxco-steps-wrap.preset-dark_gradient.layout-vertical.show-connector
.foxco-step:not(:last-child)::after {
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
}

.foxco-steps-wrap.preset-dark_gradient.layout-timeline::before {
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
}

/* ================================================================
   PRESET 2: FOXCO ORANGE
   Brand orange #E26431, clean timeline, white background
   ================================================================ */
.foxco-steps-wrap.preset-foxco_orange {
  background: #ffffff;
  border-radius: 12px;
}

.foxco-steps-wrap.preset-foxco_orange .foxco-steps-heading {
  color: #1a1a2e;
}
.foxco-steps-wrap.preset-foxco_orange .foxco-steps-heading strong {
  color: #E26431;
}

/* Gradient-filled badge */
.foxco-steps-wrap.preset-foxco_orange .foxco-step-badge {
  background: linear-gradient(135deg, #E26431 0%, #c94a1a 100%);
  border-color: transparent;
  border-radius: 50%;
  color: #ffffff;
  box-shadow:
    0 4px 15px rgba(226,100,49,0.4),
    0 0 0 6px rgba(226,100,49,0.12);
  font-weight: 900;
}
.foxco-steps-wrap.preset-foxco_orange .foxco-step-badge:hover {
  box-shadow:
    0 6px 25px rgba(226,100,49,0.6),
    0 0 0 10px rgba(226,100,49,0.15);
}

/* Per-step accent support */
.foxco-steps-wrap.preset-foxco_orange .foxco-step[style*="--step-accent"] .foxco-step-badge {
  background: var(--step-accent);
  box-shadow: 0 4px 15px color-mix(in srgb, var(--step-accent) 60%, transparent);
}

.foxco-steps-wrap.preset-foxco_orange .foxco-step-watermark {
  color: rgba(226,100,49,0.06);
}

.foxco-steps-wrap.preset-foxco_orange .foxco-step-title {
  color: #1a1a2e;
}
.foxco-steps-wrap.preset-foxco_orange .foxco-step-desc {
  color: #555577;
}

.foxco-steps-wrap.preset-foxco_orange.layout-vertical.show-connector
.foxco-step:not(:last-child)::after {
  background: linear-gradient(to bottom, #E26431, rgba(226,100,49,0.1));
}

.foxco-steps-wrap.preset-foxco_orange.layout-timeline::before {
  background: linear-gradient(to bottom, #E26431, rgba(226,100,49,0.2));
}

/* Step number accent line under title */
.foxco-steps-wrap.preset-foxco_orange .foxco-step-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #E26431;
  border-radius: 2px;
  margin: 10px auto 0;
}
.foxco-steps-wrap.preset-foxco_orange .foxco-step-content[style*="text-align: left"] .foxco-step-title::after,
.foxco-steps-wrap.preset-foxco_orange .layout-timeline .foxco-step-title::after {
  margin-left: 0;
}

/* ================================================================
   PRESET 3: MINIMAL CLEAN
   White/light grey cards, subtle shadows, outlined circle badge
   ================================================================ */
.foxco-steps-wrap.preset-minimal_clean {
  background: #f5f6fa;
  border-radius: 16px;
}

.foxco-steps-wrap.preset-minimal_clean .foxco-steps-heading {
  color: #111122;
}
.foxco-steps-wrap.preset-minimal_clean .foxco-steps-heading strong {
  color: #111122;
  font-style: italic;
}

.foxco-steps-wrap.preset-minimal_clean .foxco-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.06),
    0 8px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.foxco-steps-wrap.preset-minimal_clean .foxco-step:hover {
  box-shadow:
    0 2px 8px rgba(0,0,0,0.06),
    0 20px 50px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.foxco-steps-wrap.preset-minimal_clean .foxco-step-badge {
  background: transparent;
  border: 2px solid #ddddee;
  border-radius: 50%;
  color: #888899;
  font-weight: 700;
  font-size: 1rem;
}

.foxco-steps-wrap.preset-minimal_clean .foxco-step-badge:hover {
  border-color: #111122;
  color: #111122;
}

.foxco-steps-wrap.preset-minimal_clean .foxco-step-watermark {
  color: rgba(0,0,0,0.03);
}

.foxco-steps-wrap.preset-minimal_clean .foxco-step-title {
  color: #111122;
}
.foxco-steps-wrap.preset-minimal_clean .foxco-step-desc {
  color: #666677;
}

/* Cards don't need connectors — hide by default */
.foxco-steps-wrap.preset-minimal_clean.layout-vertical.show-connector
.foxco-step:not(:last-child)::after {
  background: #ddddee;
}

/* Number in corner for card style */
.foxco-steps-wrap.preset-minimal_clean .foxco-step-watermark {
  right: 20px;
  left: auto;
  top: 10px;
  transform: none;
  font-size: 80px;
  opacity: 1;
  color: rgba(0,0,0,0.04);
}

/* ================================================================
   PRESET 4: NEON GLOW
   Near-black bg, electric accent colors, glowing badge, scanline texture
   ================================================================ */
.foxco-steps-wrap.preset-neon_glow {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 4px
    ),
    linear-gradient(135deg, #050510 0%, #0a0520 50%, #050510 100%);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 200, 0.1);
}

.foxco-steps-wrap.preset-neon_glow .foxco-steps-heading {
  color: #e0e8ff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
}
.foxco-steps-wrap.preset-neon_glow .foxco-steps-heading strong {
  color: #00ffcc;
  text-shadow: 0 0 20px rgba(0,255,204,0.7), 0 0 40px rgba(0,255,204,0.3);
}

/* Glowing badge — color cycles per step via nth-child */
.foxco-steps-wrap.preset-neon_glow .foxco-step-badge {
  background: transparent;
  border-radius: 50%;
  font-weight: 900;
  font-family: 'Courier New', monospace;
}

.foxco-steps-wrap.preset-neon_glow .foxco-step:nth-child(1) .foxco-step-badge,
.foxco-steps-wrap.preset-neon_glow .foxco-step:nth-child(4) .foxco-step-badge {
  color: #00ffcc;
  border-color: #00ffcc;
  box-shadow: 0 0 12px #00ffcc, 0 0 30px rgba(0,255,204,0.4), inset 0 0 12px rgba(0,255,204,0.1);
}
.foxco-steps-wrap.preset-neon_glow .foxco-step:nth-child(2) .foxco-step-badge,
.foxco-steps-wrap.preset-neon_glow .foxco-step:nth-child(5) .foxco-step-badge {
  color: #ff6ad5;
  border-color: #ff6ad5;
  box-shadow: 0 0 12px #ff6ad5, 0 0 30px rgba(255,106,213,0.4), inset 0 0 12px rgba(255,106,213,0.1);
}
.foxco-steps-wrap.preset-neon_glow .foxco-step:nth-child(3) .foxco-step-badge,
.foxco-steps-wrap.preset-neon_glow .foxco-step:nth-child(6) .foxco-step-badge {
  color: #ffd700;
  border-color: #ffd700;
  box-shadow: 0 0 12px #ffd700, 0 0 30px rgba(255,215,0,0.4), inset 0 0 12px rgba(255,215,0,0.1);
}

/* Neon badge pulse */
@keyframes foxcoNeonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.foxco-steps-wrap.preset-neon_glow .foxco-step-badge {
  animation: foxcoNeonPulse 3s ease-in-out infinite;
}

.foxco-steps-wrap.preset-neon_glow .foxco-step-watermark {
  color: rgba(0,255,204,0.04);
  font-family: 'Courier New', monospace;
}

.foxco-steps-wrap.preset-neon_glow .foxco-step-title {
  color: #e0e8ff;
  letter-spacing: 0.03em;
  font-family: inherit;
}
.foxco-steps-wrap.preset-neon_glow .foxco-step-desc {
  color: rgba(180,200,255,0.7);
  font-size: 0.95rem;
}

/* Neon connectors */
.foxco-steps-wrap.preset-neon_glow.layout-vertical.show-connector
.foxco-step:not(:last-child)::after {
  background: linear-gradient(to bottom, rgba(0,255,204,0.4), rgba(0,255,204,0.05));
  box-shadow: 0 0 6px rgba(0,255,204,0.2);
}
.foxco-steps-wrap.preset-neon_glow.layout-timeline::before {
  background: rgba(0,255,204,0.2);
  box-shadow: 0 0 8px rgba(0,255,204,0.15);
}

/* Neon step hover */
.foxco-steps-wrap.preset-neon_glow .foxco-step:hover .foxco-step-title {
  color: #00ffcc;
  transition: color 0.3s ease;
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .foxco-steps-wrap {
    padding: 40px 20px;
  }
  .foxco-steps-wrap.layout-horizontal {
    flex-direction: column;
    align-items: center;
  }
  .foxco-steps-wrap.layout-horizontal .foxco-step {
    width: 100%;
    max-width: 100%;
  }
  .foxco-steps-wrap.layout-horizontal.show-connector
  .foxco-step:not(:last-child)::after {
    display: none;
  }
  .foxco-steps-wrap.layout-timeline {
    padding-left: 60px;
  }
  .foxco-step-watermark {
    font-size: 120px;
  }
  .foxco-steps-wrap.preset-minimal_clean .foxco-step-watermark {
    font-size: 60px;
  }
}

@media (max-width: 480px) {
  .foxco-steps-wrap.layout-timeline {
    padding-left: 50px;
  }
  .foxco-steps-wrap.layout-timeline::before {
    left: 30px;
  }
}
