/* AlterSpin Nexus - custom keyframes and prose */
:root {
  --violet: #8b31ff;
  --violet-light: #b46fff;
  --graphite: #14141f;
  --graphite-mid: #1e1e2f;
  --graphite-panel: #252538;
  --neon: #bf5fff;
  --neon-bright: #e040fb;
  --text-primary: #f0eaff;
  --text-secondary: #c4b8e0;
  --text-muted: #8a7aaa;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 8px var(--neon), 0 0 20px var(--violet); }
  50% { box-shadow: 0 0 20px var(--neon-bright), 0 0 40px var(--violet-light); }
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.03); }
}

@keyframes spinRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.marquee-track {
  display: flex;
  animation: marquee 32s linear infinite;
}

.neon-pulse {
  animation: neonPulse 3s ease-in-out infinite;
}

.float-circle {
  animation: floatCircle 6s ease-in-out infinite;
}

.spin-ring {
  animation: spinRing 12s linear infinite;
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

/* Prose styles for markdown pages */
.prose {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
}

.prose h2 {
  color: var(--violet-light);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  border-left: 4px solid var(--violet);
  padding-left: 0.75rem;
  line-height: 1.3;
}

.prose h3 {
  color: var(--neon);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.prose a {
  color: var(--neon-bright);
  text-decoration: underline;
  text-decoration-color: rgba(191,95,255,0.4);
  transition: color 0.2s;
}

.prose a:hover {
  color: #fff;
  text-decoration-color: var(--neon-bright);
}

.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.2rem;
}

.prose ul li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.prose ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 0.9rem;
}

.prose ol {
  counter-reset: prose-counter;
  padding-left: 0;
  margin-bottom: 1.2rem;
}

.prose ol li {
  counter-increment: prose-counter;
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.prose ol li::before {
  content: counter(prose-counter) ".";
  position: absolute;
  left: 0;
  color: var(--violet-light);
  font-weight: 700;
}

.prose blockquote {
  border-left: 3px solid var(--violet);
  margin: 1.5rem 0;
  padding: 0.8rem 1.2rem;
  background: rgba(139,49,255,0.08);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  color: var(--text-primary);
}

.prose .table-wrap,
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(139,49,255,0.25);
}

.table-responsive {
  margin: 1.5rem 0;
}

.prose table th {
  background: rgba(139,49,255,0.25);
  color: var(--violet-light);
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.prose table td {
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(139,49,255,0.12);
  vertical-align: top;
}

.prose table tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: 1px solid rgba(139,49,255,0.25);
}

.prose strong {
  color: var(--violet-light);
  font-weight: 700;
}

.prose em {
  color: var(--text-secondary);
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(139,49,255,0.2);
  margin: 2rem 0;
}

/* Utility classes */
.section-divider {
  border: none;
  border-top: 1px solid rgba(139,49,255,0.18);
  margin: 0;
}

.card-panel {
  background: var(--graphite-panel);
  border: 1px solid rgba(139,49,255,0.22);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card-panel:hover {
  border-color: var(--violet);
  box-shadow: 0 0 18px rgba(139,49,255,0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #8b31ff, #bf5fff);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  display: inline-block;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--violet-light);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.7rem 1.8rem;
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--violet);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(139,49,255,0.18);
  color: #fff;
}

.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b31ff, #bf5fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(139,49,255,0.5);
}

.panel-circle {
  border-radius: 50%;
  border: 2px solid rgba(139,49,255,0.3);
}

.word-cloud span {
  display: inline-block;
  margin: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(139,49,255,0.12);
  border: 1px solid rgba(139,49,255,0.25);
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}

.word-cloud span:hover {
  background: rgba(139,49,255,0.3);
  color: var(--text-primary);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Nav styles */
.site-nav {
  background: rgba(20,20,31,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139,49,255,0.2);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--violet-light);
  background: rgba(139,49,255,0.1);
}

.mobile-menu {
  background: var(--graphite);
  border-top: 1px solid rgba(139,49,255,0.2);
}

/* Parallax hero */
.hero-parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .hero-parallax {
    background-attachment: scroll;
  }
}

/* Neon border glow */
.neon-border {
  border: 1px solid var(--violet);
  box-shadow: 0 0 10px rgba(139,49,255,0.35), inset 0 0 10px rgba(139,49,255,0.06);
}

/* Ring decoration */
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139,49,255,0.15);
  pointer-events: none;
}
