/* Neon Bullion Theme - Custom Animations & Styles */

/* Parallax Background Effect */
.parallax-bg {
  transform: translateZ(-1px) scale(1.5);
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    animation: parallax-float 20s ease-in-out infinite;
  }
}

@keyframes parallax-float {
  0%,
  100% {
    transform: translateZ(-1px) scale(1.5) translateY(0);
  }
  50% {
    transform: translateZ(-1px) scale(1.5) translateY(-20px);
  }
}

/* Marquee Animation */
.marquee-container {
  position: relative;
}

.marquee-content {
  animation: marquee 30s linear infinite;
}

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

.marquee-content:hover {
  animation-play-state: paused;
}

/* Neon Text Effects */
.neon-text-gold {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4), 0 0
    40px rgba(255, 215, 0, 0.2);
  animation: neon-pulse-gold 2s ease-in-out infinite;
}

@keyframes neon-pulse-gold {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4), 0 0
      40px rgba(255, 215, 0, 0.2);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 215, 0, 1), 0 0 30px rgba(255, 215, 0, 0.8), 0 0 45px rgba(255, 215, 0, 0.6), 0 0
      60px rgba(255, 215, 0, 0.4);
  }
}

.neon-text-cyan {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4), 0 0
    40px rgba(0, 255, 255, 0.2);
  animation: neon-pulse-cyan 2s ease-in-out infinite;
}

@keyframes neon-pulse-cyan {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4), 0 0
      40px rgba(0, 255, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.8), 0 0 45px rgba(0, 255, 255, 0.6), 0 0
      60px rgba(0, 255, 255, 0.4);
  }
}

/* Neon Box Glow */
.neon-box {
  animation: neon-box-pulse 3s ease-in-out infinite;
}

@keyframes neon-box-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(0, 255, 255, 0.2), inset 0 0 20px rgba(0, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(0, 255, 255, 0.3), inset 0 0 30px rgba(0, 255, 255, 0.2);
  }
}

/* Neon Grid Background */
.neon-grid {
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Enhanced Prose Styling for Markdown Content Readability */
.prose-custom {
  color: #e5e7eb;
  line-height: 1.75;
  max-width: 100%;
  font-size: 1rem;
}

/* Paragraphs */
.prose-custom p {
  margin-bottom: 1.5em;
  color: #d1d5db;
  line-height: 1.8;
}

.prose-custom p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e5e7eb;
}

/* Headings */
.prose-custom h2 {
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fbbf24;
  text-shadow: 0 0 0.625rem rgba(251, 191, 36, 0.4);
  letter-spacing: -0.025em;
}

.prose-custom h2:first-child {
  margin-top: 0;
}

.prose-custom h3 {
  margin-top: 2em;
  margin-bottom: 0.875em;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: #06b6d4;
  text-shadow: 0 0 0.5rem rgba(6, 182, 212, 0.3);
  letter-spacing: -0.0125em;
}

.prose-custom h4 {
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: #22d3ee;
}

/* Links */
.prose-custom a {
  color: #06b6d4;
  text-decoration: underline;
  text-decoration-color: rgba(6, 182, 212, 0.3);
  text-underline-offset: 0.2em;
  transition: all 0.2s ease;
}

.prose-custom a:hover {
  color: #22d3ee;
  text-decoration-color: rgba(34, 211, 238, 0.6);
  text-shadow: 0 0 0.5rem rgba(34, 211, 238, 0.4);
}

/* Strong and Emphasis */
.prose-custom strong {
  color: #fbbf24;
  font-weight: 700;
}

.prose-custom em {
  color: #e5e7eb;
  font-style: italic;
}

/* Lists */
.prose-custom ul,
.prose-custom ol {
  margin-top: 1.25em;
  margin-bottom: 1.5em;
  padding-left: 1.75em;
}

.prose-custom ul {
  list-style-type: disc;
}

.prose-custom ol {
  list-style-type: decimal;
}

.prose-custom li {
  margin-bottom: 0.625em;
  padding-left: 0.375em;
  color: #d1d5db;
  line-height: 1.75;
}

.prose-custom li::marker {
  color: #06b6d4;
}

.prose-custom ul ul,
.prose-custom ol ul,
.prose-custom ul ol,
.prose-custom ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.prose-custom li > p {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

/* Blockquotes */
.prose-custom blockquote {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding-left: 1.5em;
  border-left: 0.25rem solid #06b6d4;
  font-style: italic;
  color: #9ca3af;
  background: rgba(6, 182, 212, 0.05);
  padding-top: 1em;
  padding-bottom: 1em;
  padding-right: 1em;
  border-radius: 0 0.375rem 0.375rem 0;
}

.prose-custom blockquote p {
  color: #9ca3af;
}

.prose-custom blockquote p:first-of-type::before {
  content: open-quote;
  color: #06b6d4;
}

.prose-custom blockquote p:last-of-type::after {
  content: close-quote;
  color: #06b6d4;
}

/* Images */
.prose-custom img {
  max-width: 100%;
  height: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  box-shadow: 0 0 1.25rem rgba(6, 182, 212, 0.2), 0 0 2.5rem rgba(251, 191, 36, 0.1);
}

/* Tables */
.prose-custom table {
  width: 100%;
  max-width: 100%;
  margin-top: 2em;
  margin-bottom: 2em;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.prose-custom thead {
  border-bottom: 0.125rem solid rgba(6, 182, 212, 0.4);
}

.prose-custom th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.05);
  vertical-align: bottom;
}

.prose-custom tbody tr {
  border-bottom: 0.0625rem solid rgba(107, 114, 128, 0.2);
  transition: background-color 0.2s ease;
}

.prose-custom tbody tr:hover {
  background: rgba(6, 182, 212, 0.05);
}

.prose-custom td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
  vertical-align: top;
}

.prose-custom tbody tr:last-child {
  border-bottom: none;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 0.0625rem rgba(6, 182, 212, 0.2);
}

.table-responsive::-webkit-scrollbar {
  height: 0.5rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 0.25rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  border-radius: 0.25rem;
}

/* Code Blocks */
.prose-custom code {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prose-custom pre {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding: 1.25em 1.5em;
  background: rgba(17, 24, 39, 0.8);
  border: 0.0625rem solid rgba(6, 182, 212, 0.2);
  border-radius: 0.5rem;
  overflow-x: auto;
  line-height: 1.7;
}

.prose-custom pre code {
  background: transparent;
  padding: 0;
  color: #e5e7eb;
  font-size: 0.875rem;
}

/* Horizontal Rules */
.prose-custom hr {
  margin-top: 3em;
  margin-bottom: 3em;
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
}

/* Figure and Figcaption */
.prose-custom figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

.prose-custom figcaption {
  margin-top: 0.875em;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #9ca3af;
  text-align: center;
  font-style: italic;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose-custom {
    font-size: 0.9375rem;
  }

  .prose-custom h2 {
    font-size: 1.75rem;
    margin-top: 2em;
  }

  .prose-custom h3 {
    font-size: 1.375rem;
    margin-top: 1.75em;
  }

  .prose-custom h4 {
    font-size: 1.125rem;
  }

  .prose-custom p:first-of-type {
    font-size: 1rem;
  }

  .prose-custom ul,
  .prose-custom ol {
    padding-left: 1.25em;
  }

  .prose-custom blockquote {
    padding-left: 1em;
    padding-right: 0.75em;
  }

  .prose-custom th,
  .prose-custom td {
    padding: 0.625rem 0.75rem;
  }
}

@media (min-width: 1024px) {
  .prose-custom {
    font-size: 1.0625rem;
  }

  .prose-custom h2 {
    font-size: 2.25rem;
  }

  .prose-custom h3 {
    font-size: 1.625rem;
  }
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #06b6d4, #0891b2);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #22d3ee, #06b6d4);
}

/* Loading Animation for Images */
img {
  transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
details:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .neon-text-gold,
  .neon-text-cyan,
  .neon-box {
    animation: none;
    text-shadow: none;
    box-shadow: none;
  }
}
