/* =========================================================
   PeptidesEasy — Magnetic Theme Styles
   Dark, premium, magnetic animations & neon glow effects
   ========================================================= */

/* ---------- Dark override for magnetic homepage ---------- */
.magnetic-page {
  --bg: #0a0e17;
  --surface: #0f1623;
  --surface-2: #151e2e;
  --surface-3: #1a2438;
  --text: #f0f4f8;
  --muted: #7a8fa8;
  --border: #1e2d42;
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --primary-soft: #113e3e;
  --accent: #6366f1;
  --glow: rgba(20, 184, 166, 0.35);
  --glow-strong: rgba(20, 184, 166, 0.6);
  background: var(--bg);
  color: var(--text);
}

.magnetic-page .site-header {
  background: rgba(10, 14, 23, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(160%) blur(12px);
}

.magnetic-page .nav-links a {
  color: var(--muted);
}

.magnetic-page .nav-links a:hover,
.magnetic-page .nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.magnetic-page .brand {
  color: var(--text);
}

.magnetic-page .brand b {
  color: var(--primary);
}

/* ---------- Magnetic particle canvas ---------- */
#magnetic-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.magnetic-page .hero {
  position: relative;
  z-index: 1;
  background: none;
}

.magnetic-page .hero__inner {
  position: relative;
  z-index: 2;
}

/* ---------- Neon glow text ---------- */
.neon-glow {
  color: #fff;
  text-shadow:
    0 0 7px rgba(20, 184, 166, 0.4),
    0 0 20px rgba(20, 184, 166, 0.25),
    0 0 40px rgba(20, 184, 166, 0.15);
}

.neon-glow--subtle {
  color: var(--primary);
  text-shadow:
    0 0 5px rgba(20, 184, 166, 0.3),
    0 0 15px rgba(20, 184, 166, 0.15);
}

/* ---------- Magnetic reveal animations ---------- */
.magnetic-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.magnetic-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.magnetic-d1 { transition-delay: 0.1s; }
.magnetic-d2 { transition-delay: 0.25s; }
.magnetic-d3 { transition-delay: 0.4s; }
.magnetic-d4 { transition-delay: 0.55s; }

/* ---------- Magnetic buttons ---------- */
.btn-magnetic {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-magnetic:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-magnetic:active {
  transform: translateY(0);
}

.btn-magnetic--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 0 20px var(--glow), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-magnetic--primary:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--primary));
  box-shadow: 0 0 30px var(--glow-strong), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-magnetic--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-magnetic--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.1);
}

/* ---------- Hero glow background ---------- */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  z-index: 0;
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.hero-glow--secondary {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  z-index: 0;
  pointer-events: none;
  animation: heroGlowPulse 10s ease-in-out infinite reverse;
}

@keyframes heroGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ---------- Float animation for stats ---------- */
.float-animation {
  animation: floatUpDown 4s ease-in-out infinite;
}

.float-animation:nth-child(2) { animation-delay: 0.5s; }
.float-animation:nth-child(3) { animation-delay: 1s; }
.float-animation:nth-child(4) { animation-delay: 1.5s; }

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Trust pulse animation ---------- */
.trust-pulse {
  animation: trustPulse 3s ease-in-out infinite;
}

.trust-pulse:nth-child(2) { animation-delay: 0.4s; }
.trust-pulse:nth-child(3) { animation-delay: 0.8s; }
.trust-pulse:nth-child(4) { animation-delay: 1.2s; }

@keyframes trustPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
  50% { box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08); }
}

/* ---------- Trust band dark ---------- */
.magnetic-page .trust-band {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-block: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.magnetic-page .trust-band .trust__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.magnetic-page .trust-band .trust__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.magnetic-page .trust-band .trust__item .ic {
  background: var(--primary-soft);
  color: var(--primary);
}

.magnetic-page .trust-band .trust__item b {
  color: var(--text);
}

.magnetic-page .trust-band .trust__item span {
  color: var(--muted);
}

/* ---------- Category cards ---------- */
.category-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover {
  text-decoration: none;
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

.category-card:hover::before {
  opacity: 1;
}

.category-card .cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.4rem;
  flex: 0 0 auto;
  z-index: 1;
}

.category-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  z-index: 1;
}

.category-card p {
  color: var(--muted);
  font-size: 0.9rem;
  z-index: 1;
}

.category-card .cat-examples {
  font-size: 0.8rem;
  color: var(--primary);
  margin-top: auto;
  z-index: 1;
}

/* ---------- Product cards (dark override) ---------- */
.magnetic-page .product {
  background: var(--surface);
  border: 1px solid var(--border);
}

.magnetic-page .product:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.magnetic-page .product__media {
  background: linear-gradient(135deg, var(--primary-soft), rgba(99, 102, 241, 0.08));
}

.magnetic-page .product__media span {
  color: var(--primary);
}

.magnetic-page .product__cat {
  color: var(--primary);
}

.magnetic-page .product__body h3 a {
  color: var(--text);
}

.magnetic-page .product__body .alias {
  color: var(--muted);
}

.magnetic-page .product__body p {
  color: var(--muted);
}

.magnetic-page .price {
  color: var(--text);
}

/* ---------- Bulk pricing section ---------- */
.bulk-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.bulk-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.bulk-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bulk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
}

.bulk-card .tier-range {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 8px;
}

.bulk-card .tier-discount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.bulk-card .tier-label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.bulk-card .tier-example {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 8px;
}

.bulk-card .tier-example .old-price {
  text-decoration: line-through;
  opacity: 0.5;
}

.bulk-card .tier-example .new-price {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- CTA band dark ---------- */
.magnetic-page .cta-band {
  background: linear-gradient(135deg, var(--primary-dark), #0f5c52);
  position: relative;
  overflow: hidden;
}

.magnetic-page .cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.magnetic-page .cta-band h2,
.magnetic-page .cta-band p {
  color: #fff;
}

.magnetic-page .cta-band .btn--primary {
  background: #fff;
  color: var(--primary-dark);
}

/* ---------- Tools section ---------- */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.tool-card .tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.5rem;
}

.tool-card h3 {
  color: var(--text);
  font-size: 1.15rem;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.tool-card .tool-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.tool-card .tool-link:hover {
  text-decoration: underline;
}

/* ---------- Research disclaimer ---------- */
.magnetic-page .research-disclaimer {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.03));
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  z-index: 1;
}

.magnetic-page .research-disclaimer strong {
  color: #fca5a5;
}

.magnetic-page .research-disclaimer p {
  color: #9ca3af;
}

/* ---------- Footer dark ---------- */
.magnetic-page .site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.magnetic-page .footer-grid h4 {
  color: var(--muted);
}

.magnetic-page .footer-grid a {
  color: var(--muted);
}

.magnetic-page .footer-grid a:hover {
  color: var(--primary);
}

.magnetic-page .footer-grid p {
  color: var(--muted);
}

.magnetic-page .footer-bottom {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* ---------- Hero card dark ---------- */
.magnetic-page .hero-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.magnetic-page .hero-card h3 {
  color: var(--text);
}

.magnetic-page .hero-card .mini-row {
  border-color: var(--border);
}

/* ---------- Section titles dark ---------- */
.magnetic-page .eyebrow {
  color: var(--primary);
}

.magnetic-page h2 {
  color: var(--text);
}

.magnetic-page .lead {
  color: var(--muted);
}

/* ---------- Callout dark ---------- */
.magnetic-page .callout {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.2);
  color: #fcd34d;
  position: relative;
  z-index: 1;
}

/* ---------- Scrollbar dark ---------- */
.magnetic-page ::-webkit-scrollbar {
  width: 8px;
}

.magnetic-page ::-webkit-scrollbar-track {
  background: var(--bg);
}

.magnetic-page ::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 4px;
}

.magnetic-page ::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-glow,
  .hero-glow--secondary {
    width: 300px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magnetic-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-animation,
  .trust-pulse {
    animation: none;
  }

  .hero-glow,
  .hero-glow--secondary {
    animation: none;
  }

  .btn-magnetic:hover {
    transform: none;
  }

  .category-card:hover,
  .bulk-card:hover,
  .tool-card:hover {
    transform: none;
  }
}
