/* ============================================
   COINXBET CUSTOM STYLES
   Crypto Spin Theme - Teal, Gold, Cyan, Obsidian
   ============================================ */

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

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

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes coin-flip {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Parallax Container */
.parallax-container {
  position: relative;
  overflow: hidden;
}

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

/* Marquee Animation */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  gap: 2rem;
  min-width: 100%;
  animation: marquee 30s linear infinite;
}

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

/* Glow Effects */
.glow-teal {
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.6), 0 0 40px rgba(20, 184, 166, 0.4);
}

.glow-gold {
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), 0 0 40px rgba(251, 191, 36, 0.4);
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6), 0 0 40px rgba(6, 182, 212, 0.4);
}

/* Animated Gradient Borders */
.gradient-border {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(251, 191, 36, 0.1));
  border: 2px solid transparent;
  background-clip: padding-box;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #14b8a6, #fbbf24, #06b6d4);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.8;
}

/* Coin Animation */
.coin-spin {
  animation: coin-flip 3s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* Floating Elements */
.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.3) 50%, transparent 100%);
  background-size: 1000px 100%;
  animation: shimmer 3s infinite;
}

/* Glowing Button */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* Spinning Reel Effect */
.reel-spin {
  animation: spin-slow 20s linear infinite;
}

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

.table-responsive table {
  min-width: 600px;
}

/* Enhanced prose styling for markdown content with proper contrast and responsive design */
.prose {
  max-width: 100%;
  color: #e5e7eb;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.prose h2 {
  color: #14b8a6;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

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

.prose h3 {
  color: #fbbf24;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.5em;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: #cbd5e1;
}

.prose p:last-child {
  margin-bottom: 0;
}

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

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

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

.prose li {
  margin-bottom: 0.625em;
  padding-left: 0.375em;
  color: #cbd5e1;
}

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

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

.prose em {
  color: #14b8a6;
  font-style: italic;
}

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

.prose a:hover {
  color: #14b8a6;
  text-decoration-color: rgba(20, 184, 166, 0.8);
}

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

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
  overflow-x: auto;
  display: block;
}

.prose table thead {
  display: table-header-group;
}

.prose table tbody {
  display: table-row-group;
}

.prose table tr {
  display: table-row;
}

.prose th {
  background: rgba(20, 184, 166, 0.2);
  color: #14b8a6;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(20, 184, 166, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #e5e7eb;
}

.prose tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

.prose tr:hover {
  background: rgba(20, 184, 166, 0.05);
}

.prose blockquote {
  border-left: 0.25rem solid #14b8a6;
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #94a3b8;
  background: rgba(20, 184, 166, 0.05);
  padding: 1.25em 1.5em;
  border-radius: 0.25rem;
}

.prose blockquote p {
  margin: 0;
}

.prose code {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  padding: 1.5em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.prose pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
}

.prose hr {
  border: none;
  border-top: 2px solid rgba(20, 184, 166, 0.3);
  margin: 3em 0;
}

/* Responsive table wrapper for mobile devices */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

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

.table-responsive::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #14b8a6, #06b6d4);
  border-radius: 4px;
}

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

  .prose h2 {
    margin-top: 2em;
  }

  .prose h3 {
    margin-top: 1.5em;
  }

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

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

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

/* Burger Menu Animation */
.burger-line {
  transition: all 0.3s ease;
}

.burger-open .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Slide */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0d9488, #0891b2);
}

/* Obsidian Background Pattern */
.obsidian-pattern {
  background-color: #0f172a;
  background-image: radial-gradient(at 20% 30%, rgba(20, 184, 166, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 70%, rgba(251, 191, 36, 0.08) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
}

/* Vault Grid Effect */
.vault-grid {
  background-image: linear-gradient(rgba(20, 184, 166, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Energy Pulse */
@keyframes energy-pulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

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

/* Luminous Trail */
.luminous-trail {
  position: relative;
}

.luminous-trail::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.4), transparent);
  transform: translateX(-100%);
  animation: trail-sweep 2s ease-in-out infinite;
}

@keyframes trail-sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
