/* ============================================
   CUSTOM STYLES - Abyssal Edge Theme
   blackfin-casino
   ============================================ */

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

@keyframes glow-pulse {
  0%, 100% {
    text-shadow: 0 0 1rem rgba(96, 165, 250, 0.5), 0 0 2rem rgba(96, 165, 250, 0.3);
  }
  50% {
    text-shadow: 0 0 1.5rem rgba(96, 165, 250, 0.8), 0 0 3rem rgba(96, 165, 250, 0.5);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Marquee Container */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

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

/* Parallax Effect */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Glow Effect */
.glow-text {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Floating Animation */
.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Deep Sea Gradient Overlays */
.ocean-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.steel-glow {
  box-shadow: 0 0 2rem rgba(96, 165, 250, 0.2), inset 0 0 1rem rgba(96, 165, 250, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.75rem;
  height: 0.75rem;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 0.375rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

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

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

.prose {
  max-width: 100%;
  color: #e2e8f0;
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose h2 {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  position: relative;
  padding-bottom: 0.75rem;
}

.prose h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.25rem;
  background: linear-gradient(90deg, #60a5fa, transparent);
}

.prose h3 {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.0125em;
}

.prose h4 {
  color: #94a3b8;
  font-weight: 600;
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  font-size: 1.0625rem;
  line-height: 1.8;
}

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

.prose em {
  font-style: italic;
  color: #94a3b8;
}

.prose a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 0.0625rem solid rgba(96, 165, 250, 0.3);
}

.prose a:hover {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}

.prose ul,
.prose ol {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  color: #cbd5e1;
}

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

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

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
  line-height: 1.75;
}

.prose li::marker {
  color: #60a5fa;
  font-weight: 600;
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  background: rgba(15, 23, 42, 0.5);
  border: 0.0625rem solid #334155;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.prose thead tr {
  border-bottom: 0.125rem solid #60a5fa;
}

.prose th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #f1f5f9;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 1rem 1.25rem;
  border-bottom: 0.0625rem solid #334155;
  color: #cbd5e1;
  vertical-align: top;
}

.prose tbody tr {
  transition: background-color 0.2s ease;
}

.prose tbody tr:hover {
  background: rgba(51, 65, 85, 0.3);
}

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

.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-left: 0.25rem solid #60a5fa;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #94a3b8;
  position: relative;
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 3rem;
  color: rgba(96, 165, 250, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

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

.prose code {
  background: rgba(30, 41, 59, 0.7);
  color: #60a5fa;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9375rem;
  font-family: 'Courier New', monospace;
  border: 0.0625rem solid #334155;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
  border: 0.0625rem solid #334155;
}

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

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5), 0 0 2rem rgba(96, 165, 250, 0.1);
  border: 0.125rem solid rgba(96, 165, 250, 0.2);
}

.prose hr {
  border: none;
  height: 0.125rem;
  background: linear-gradient(90deg, transparent, #334155, transparent);
  margin: 3rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .prose {
    font-size: 1rem;
  }

  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .prose h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

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

  .prose p {
    font-size: 1rem;
    line-height: 1.7;
  }

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

  .prose th,
  .prose td {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }

  .prose blockquote {
    padding: 1rem 1rem 1rem 1.5rem;
    margin: 1.5rem 0;
  }
}

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

/* Mobile Menu Background Fix */
.mobile-menu-bg {
  background: #0f172a;
  border-bottom: 0.0625rem solid #334155;
}
