/* ============================================
   TECHFORGE LUMINET THEME - BETCRYP CASINO
   Silver-green grids, digital haze, high-tech panels
   ============================================ */

/* Particle Animation */
@keyframes float-particle {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translate(var(--tx, 20px), var(--ty, -30px)) scale(1.1);
    opacity: 0.8;
  }
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100, 255, 150, 0.6);
  border-radius: 50%;
  animation: float-particle 6s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(100, 255, 150, 0.4);
}

.particle:nth-child(2) {
  --tx: -25px;
  --ty: 35px;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  --tx: 30px;
  --ty: -25px;
  animation-delay: 2s;
  animation-duration: 8s;
}

/* Tilt Animation */
@keyframes tilt-hover {
  0%,
  100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
  }
}

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

.tilt-card:hover {
  animation: tilt-hover 2s ease-in-out infinite;
}

/* Grid Pattern Overlay */
.grid-pattern {
  background-image: linear-gradient(rgba(100, 255, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 255, 150, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  position: relative;
}

.grid-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(15, 23, 42, 0.6) 100%);
  pointer-events: none;
}

/* Digital Haze Effect */
.digital-haze {
  position: relative;
}

.digital-haze::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(100, 255, 150, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-haze 4s ease-in-out infinite;
}

@keyframes pulse-haze {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Illuminated Panel */
.illuminated-panel {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(100, 255, 150, 0.25);
  box-shadow: 0 0 20px rgba(100, 255, 150, 0.15), inset 0 1px 0 rgba(100, 255, 150, 0.1);
}

.illuminated-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 150, 0.6), transparent);
}

/* Glow Effect */
.glow-green {
  text-shadow: 0 0 10px rgba(100, 255, 150, 0.5), 0 0 20px rgba(100, 255, 150, 0.3);
}

.glow-silver {
  text-shadow: 0 0 10px rgba(192, 192, 192, 0.5), 0 0 20px rgba(192, 192, 192, 0.3);
}

/* Button Enhancements */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(100, 255, 150, 0.3);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6), 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: btn-shine 3s ease-in-out infinite;
}

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

.btn-secondary {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.8) 0%, rgba(71, 85, 105, 0.9) 100%);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.3);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.9) 0%, rgba(71, 85, 105, 1) 100%);
  transform: translateY(-1px);
}

/* Badge */
.bonus-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  border: 2px solid rgba(100, 255, 150, 0.5);
  box-shadow: 0 0 30px rgba(100, 255, 150, 0.3), inset 0 0 20px rgba(100, 255, 150, 0.1);
  backdrop-filter: blur(10px);
}

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

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

.prose {
  max-width: 100%;
  color: #cbd5e1;
  line-height: 1.7;
}

/* Headings */
.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: #e2e8f0;
  letter-spacing: -0.025em;
  line-height: 1.3;
  border-bottom: 2px solid rgba(100, 255, 150, 0.3);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
  line-height: 1.4;
}

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

/* Paragraphs */
.prose p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  color: #cbd5e1;
}

/* Links */
.prose a {
  color: #34d399;
  text-decoration: underline;
  text-decoration-color: rgba(52, 211, 153, 0.4);
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: #6ee7b7;
  text-decoration-color: rgba(110, 231, 183, 0.6);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

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

.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.25rem;
  color: #cbd5e1;
}

.prose li::marker {
  color: #10b981;
}

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

/* Tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(100, 255, 150, 0.2);
}

.prose thead {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.3) 100%);
  border-bottom: 2px solid rgba(100, 255, 150, 0.4);
}

.prose th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #e2e8f0;
  border-right: 1px solid rgba(100, 255, 150, 0.15);
}

.prose th:last-child {
  border-right: none;
}

.prose td {
  padding: 0.875rem 1rem;
  border-top: 1px solid rgba(100, 255, 150, 0.15);
  border-right: 1px solid rgba(100, 255, 150, 0.15);
  color: #cbd5e1;
}

.prose td:last-child {
  border-right: none;
}

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

.prose tbody tr:hover {
  background: rgba(16, 185, 129, 0.08);
}

/* Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
  font-style: italic;
  color: #cbd5e1;
}

.prose blockquote p {
  margin: 0;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(100, 255, 150, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Strong/Bold */
.prose strong {
  font-weight: 700;
  color: #f1f5f9;
}

/* Emphasis/Italic */
.prose em {
  font-style: italic;
  color: #e2e8f0;
}

/* Code */
.prose code {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: "Courier New", monospace;
  border: 1px solid rgba(100, 255, 150, 0.2);
}

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

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #cbd5e1;
}

/* Horizontal Rule */
.prose hr {
  border: none;
  border-top: 1px solid rgba(100, 255, 150, 0.3);
  margin: 2rem 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .prose h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }

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

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