/* ===================================
   ANIMATIONS & KEYFRAMES
   =================================== */

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.4);
  }
}

@keyframes particle-float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(0);
    opacity: 0;
  }
}

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.neon-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-glow {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5), 0 0 40px rgba(212, 175, 55, 0.3);
}

/* ===================================
   PARTICLE SYSTEM
   =================================== */

.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particles-container::before,
.particles-container::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(212, 175, 55, 0.6);
  border-radius: 50%;
  animation: particle-float 15s linear infinite;
}

.particles-container::before {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particles-container::after {
  left: 80%;
  animation-delay: 5s;
  animation-duration: 18s;
}

/* ===================================
   GRID PATTERN
   =================================== */

.grid-pattern {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(212, 175, 55, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-pulse 4s ease-in-out infinite;
}

/* ===================================
   PARALLAX EFFECTS
   =================================== */

.parallax-card {
  transition: transform 0.3s ease;
}

.parallax-card:hover {
  transform: translateY(-10px);
}

/* ===================================
   TABLE RESPONSIVE
   =================================== */

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

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #1a2332;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #f4d03f;
}

/* ===================================
   PROSE STYLING FOR MARKDOWN
   =================================== */

.prose {
  max-width: 100%;
  color: #e5e7eb;
}

.prose h2 {
  color: #d4af37;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .prose h2 {
    font-size: 2.25rem;
  }
}

.prose h3 {
  color: #f4d03f;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .prose h3 {
    font-size: 1.875rem;
  }
}

.prose h4 {
  color: #f4d03f;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  line-height: 1.75;
  color: #d1d5db;
}

.prose strong {
  color: #f3f4f6;
  font-weight: 600;
}

.prose a {
  color: #d4af37;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.prose a:hover {
  color: #f4d03f;
}

.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

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

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  line-height: 1.75;
  color: #d1d5db;
}

.prose li::marker {
  color: #d4af37;
}

.prose blockquote {
  font-style: italic;
  border-left: 0.25rem solid #d4af37;
  padding-left: 1.5em;
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  color: #d1d5db;
  background: rgba(26, 35, 50, 0.5);
  padding: 1em 1em 1em 1.5em;
  border-radius: 0.5rem;
}

.prose blockquote p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
  margin-bottom: 2em;
  font-size: 0.875em;
  line-height: 1.7;
}

.prose thead {
  background: #1a2332;
  border-bottom: 2px solid #d4af37;
}

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

.prose tbody tr {
  border-bottom: 1px solid #2d3a4f;
}

.prose tbody tr:hover {
  background: rgba(26, 35, 50, 0.5);
}

.prose tbody td {
  padding: 0.875rem 1rem;
  color: #d1d5db;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 2em;
  margin-bottom: 2em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prose code {
  background: #1a2332;
  color: #f4d03f;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: #1a2332;
  color: #e5e7eb;
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.75em;
  margin-bottom: 1.75em;
  border: 1px solid #2d3a4f;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.875em;
}

.prose hr {
  border: 0;
  border-top: 2px solid #d4af37;
  margin-top: 3em;
  margin-bottom: 3em;
}

/* Ensure tables are scrollable on small devices */
@media (max-width: 768px) {
  .prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
