/* Animations & Custom Styles */

/* Gradient Animation */
@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Holographic Panel Effect */
.holographic-panel {
  position: relative;
  overflow: hidden;
}

.holographic-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
  animation: holographic-sweep 3s linear infinite;
}

@keyframes holographic-sweep {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Coin Orbit Animation */
.coin-orbit {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #e879f9);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  opacity: 0.6;
}

.coin-orbit-1 {
  top: 20%;
  left: 10%;
  animation: orbit-1 15s linear infinite;
}

.coin-orbit-2 {
  top: 60%;
  right: 15%;
  animation: orbit-2 20s linear infinite;
}

.coin-orbit-3 {
  bottom: 30%;
  left: 20%;
  animation: orbit-3 18s linear infinite;
}

@keyframes orbit-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(100px, -50px) scale(1.2);
  }
  50% {
    transform: translate(200px, 0) scale(0.8);
  }
  75% {
    transform: translate(100px, 50px) scale(1.1);
  }
}

@keyframes orbit-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-80px, 60px) scale(1.3);
  }
  66% {
    transform: translate(-160px, -30px) scale(0.9);
  }
}

@keyframes orbit-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(150px, -80px) scale(1.4);
  }
}

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

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

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

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

/* Prose Styling for Readability */
.prose-custom {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose-custom h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.prose-custom h4 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.prose-custom p {
  margin-bottom: 1.25rem;
}

.prose-custom ul {
  list-style: none;
  padding-left: 0;
}

.prose-custom li {
  margin-bottom: 0.75rem;
}

.prose-custom strong {
  color: #67e8f9;
  font-weight: 600;
}

.prose-custom a {
  color: #67e8f9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.prose-custom a:hover {
  color: #e879f9;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* Glow Effects */
.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.glow-fuchsia {
  box-shadow: 0 0 20px rgba(232, 121, 249, 0.3);
}

/* Details/Summary Styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  margin-bottom: 1rem;
}

/* Parallax Elements */
.parallax-element {
  will-change: transform;
}

/* Scatter Burst Effect */
@keyframes scatter-burst {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.scatter-burst {
  animation: scatter-burst 2s ease-out infinite;
}

/* Adding comprehensive prose styling for markdown content */

/* Prose Container */
.prose {
  max-width: 100%;
  color: #e2e8f0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* Prose Headings */
.prose h2 {
  color: #67e8f9;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 1em;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #67e8f9, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h3 {
  color: #a5f3fc;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  letter-spacing: -0.015em;
}

.prose h4 {
  color: #cffafe;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Prose Paragraphs */
.prose p {
  margin-top: 0;
  margin-bottom: 1.5em;
  color: #cbd5e1;
  line-height: 1.8;
}

.prose p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #e2e8f0;
}

/* Prose Links */
.prose a {
  color: #67e8f9;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #e879f9;
  border-bottom-color: rgba(232, 121, 249, 0.6);
}

/* Prose Strong/Bold */
.prose strong {
  color: #f0fdfa;
  font-weight: 600;
}

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

.prose ul {
  list-style-type: none;
}

.prose ul > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
  color: #cbd5e1;
  line-height: 1.75;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background: linear-gradient(135deg, #67e8f9, #e879f9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(103, 232, 249, 0.5);
}

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

.prose ol > li {
  padding-left: 0.5em;
  margin-bottom: 0.75em;
  color: #cbd5e1;
  line-height: 1.75;
}

.prose ol > li::marker {
  color: #67e8f9;
  font-weight: 600;
}

/* Nested Lists */
.prose ul ul,
.prose ul ol,
.prose ol ul,
.prose ol ol {
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

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

.prose thead {
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.1), rgba(232, 121, 249, 0.1));
  border-bottom: 2px solid rgba(103, 232, 249, 0.3);
}

.prose thead th {
  color: #67e8f9;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  vertical-align: bottom;
}

.prose tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background-color: rgba(103, 232, 249, 0.05);
}

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

.prose tbody td:first-child {
  font-weight: 500;
  color: #e2e8f0;
}

/* Prose Blockquotes */
.prose blockquote {
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  padding-left: 1.5em;
  border-left: 3px solid #67e8f9;
  font-style: italic;
  color: #94a3b8;
  background: rgba(103, 232, 249, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0;
  color: #cbd5e1;
}

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(103, 232, 249, 0.2);
}

/* Prose Code */
.prose code {
  color: #e879f9;
  font-size: 0.875em;
  font-weight: 500;
  background-color: rgba(232, 121, 249, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  border: 1px solid rgba(232, 121, 249, 0.2);
}

.prose pre {
  background-color: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 0.5rem;
  padding: 1.25em;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
}

.prose pre code {
  background-color: transparent;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
}

/* Prose Horizontal Rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.3), transparent);
  margin-top: 3em;
  margin-bottom: 3em;
}

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

  .prose table {
    font-size: 0.875rem;
  }

  .prose thead th,
  .prose tbody td {
    padding: 0.625rem 0.75rem;
  }
}

/* Table Wrapper for Horizontal Scroll */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 0.5rem;
  border: 1px solid rgba(103, 232, 249, 0.2);
}

.prose .table-responsive table {
  margin: 0;
}
