/* ========================================
   Amun Ra Casino - Custom Styles
   Egyptian Solar Legacy Theme
   ======================================== */

/* ----------------------------------------
   CSS Custom Properties
   ---------------------------------------- */
:root {
  --ra-gold: #d4af37;
  --ra-gold-light: #f4e4bc;
  --ra-gold-dark: #9a7b0a;
  --ra-bronze: #cd7f32;
  --ra-sand: #f5e6c8;
  --ra-sand-dark: #e8d4a8;
  --ra-midnight: #1a1a2e;
  --ra-deep: #16213e;
  --ra-royal: #0f3460;
  --ra-crimson: #b8405e;
}

/* ----------------------------------------
   Base & Reset
   ---------------------------------------- */
html {
  overflow-x: clip;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  overflow-y: auto;
}

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

@keyframes sun-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.05;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
}

@keyframes sun-rays {
  0% {
    transform: rotate(0deg);
    opacity: 0.2;
  }
  100% {
    transform: rotate(360deg);
    opacity: 0.2;
  }
}

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------
   Animation Classes
   ---------------------------------------- */
.marquee-container {
  overflow: hidden;
  width: 100%;
}

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

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

.sun-pulse {
  animation: sun-pulse 4s ease-in-out infinite;
}

.sun-rays {
  animation: sun-rays 60s linear infinite;
}

.sun-rays-delayed {
  animation: sun-rays 45s linear infinite reverse;
}

.golden-glow {
  text-shadow: 0 0 2.5rem rgba(212, 175, 55, 0.5), 0 0 3.75rem rgba(212, 175, 55, 0.3), 0 0 5rem rgba(212, 175, 55, 0.2);
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* ----------------------------------------
   Scrollbar Styling
   ---------------------------------------- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Custom Scrollbar for Tables */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 0.375rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--ra-deep);
  border-radius: 0.1875rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--ra-gold);
  border-radius: 0.1875rem;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--ra-gold-light);
}

/* ----------------------------------------
   Button Hover Effects
   ---------------------------------------- */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: golden-shimmer 3s infinite;
}

/* ----------------------------------------
   Card Hover Effects
   ---------------------------------------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 1.5625rem 3.125rem -0.75rem rgba(212, 175, 55, 0.25);
}

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

details[open] summary {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* ----------------------------------------
   Prose Styling for Markdown Content
   ---------------------------------------- */
.prose {
  color: var(--ra-sand);
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  font-family: "Cinzel", serif;
  color: var(--ra-gold);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  line-height: 1.3;
}

.prose h3 {
  font-family: "Cinzel", serif;
  color: var(--ra-gold-light);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  font-family: "Cinzel", serif;
  color: var(--ra-sand);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
  color: rgba(245, 230, 200, 0.85);
  font-size: clamp(0.9375rem, 2vw, 1rem);
}

.prose a {
  color: var(--ra-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 0.125rem;
  transition: all 0.2s ease;
}

.prose a:hover {
  color: var(--ra-gold-light);
  text-decoration-color: var(--ra-gold-light);
}

.prose strong {
  color: var(--ra-sand);
  font-weight: 700;
}

.prose em {
  color: var(--ra-gold-light);
  font-style: italic;
}

/* Prose Lists */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75em;
  color: rgba(245, 230, 200, 0.85);
}

.prose ul li::before {
  content: "☥";
  position: absolute;
  left: 0;
  color: var(--ra-gold);
  font-size: 0.875em;
}

.prose ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5em;
  counter-reset: item;
}

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  color: rgba(245, 230, 200, 0.85);
  counter-increment: item;
}

.prose ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  width: 1.75em;
  height: 1.75em;
  background: var(--ra-deep);
  border: 1px solid var(--ra-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  color: var(--ra-gold);
  font-weight: 700;
}

/* Prose Tables */
.prose .table-responsive {
  margin: 1.5em 0;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.prose table {
  width: 100%;
  min-width: 31.25rem;
  border-collapse: collapse;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
}

.prose thead {
  background: var(--ra-deep);
}

.prose th {
  padding: 1em 1.25em;
  text-align: left;
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--ra-gold);
  border-bottom: 2px solid var(--ra-gold);
  white-space: nowrap;
}

.prose td {
  padding: 1em 1.25em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--ra-sand);
}

.prose tbody tr {
  background: rgba(22, 33, 62, 0.5);
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(26, 26, 46, 0.5);
}

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Prose Blockquotes */
.prose blockquote {
  position: relative;
  margin: 2em 0;
  padding: 1.5em 2em;
  background: linear-gradient(135deg, var(--ra-deep), var(--ra-midnight));
  border-left: 4px solid var(--ra-gold);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--ra-sand);
}

.prose blockquote::before {
  content: '"';
  position: absolute;
  top: -0.625rem;
  left: 1rem;
  font-size: 4rem;
  color: var(--ra-gold);
  opacity: 0.3;
  font-family: "Cinzel", serif;
  line-height: 1;
}

.prose blockquote p {
  margin: 0;
  color: var(--ra-sand);
}

/* Prose Code */
.prose code {
  background: var(--ra-deep);
  color: var(--ra-gold-light);
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.prose pre {
  background: var(--ra-deep);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 0.75rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em auto;
  display: block;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

/* Prose Horizontal Rules */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ra-gold), transparent);
  margin: 3em 0;
}

/* ----------------------------------------
   Responsive Utilities
   ---------------------------------------- */
@media (max-width: 768px) {
  .prose h2 {
    margin-top: 2em;
  }

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

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

  .prose blockquote::before {
    font-size: 2.5rem;
    top: -0.375rem;
    left: 0.5rem;
  }

  .prose ol li {
    padding-left: 2em;
  }

  .prose ol li::before {
    width: 1.5em;
    height: 1.5em;
    font-size: 0.6875em;
  }
}

/* ----------------------------------------
   Focus States for Accessibility
   ---------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ra-gold);
  outline-offset: 2px;
}

/* ----------------------------------------
   Selection Styling
   ---------------------------------------- */
::selection {
  background: var(--ra-gold);
  color: var(--ra-midnight);
}

::-moz-selection {
  background: var(--ra-gold);
  color: var(--ra-midnight);
}

/* ----------------------------------------
   Print Styles
   ---------------------------------------- */
@media print {
  body {
    background: white;
    color: black;
  }

  .prose {
    color: black;
  }

  .prose h2,
  .prose h3,
  .prose h4 {
    color: black;
  }

  .prose a {
    color: black;
    text-decoration: underline;
  }
}
