/* ===================================
   MAFIA CASINO - Custom Styles
   Noir Prestige Lounge UK Theme
   =================================== */

/* ===================================
   CSS Custom Properties
   =================================== */
:root {
  --color-noir-50: #f7f7f8;
  --color-noir-100: #ececef;
  --color-noir-200: #d5d5db;
  --color-noir-300: #b1b1bc;
  --color-noir-400: #868697;
  --color-noir-500: #6b6b7c;
  --color-noir-600: #595966;
  --color-noir-700: #4a4a54;
  --color-noir-800: #404048;
  --color-noir-900: #38383e;
  --color-noir-950: #18181b;
  --color-gold-400: #e6b835;
  --color-gold-500: #d99d1e;
  --color-gold-600: #c07a17;
  --color-cream-50: #faf9f7;
  --color-cream-100: #f3f1ec;
  --color-cream-200: #e6e1d7;
  --color-cream-300: #d5cdbf;
  --color-cream-400: #c1b5a1;
}

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

body {
  overflow-x: clip;
}

/* ===================================
   Scrollbar Styling
   =================================== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===================================
   Animations & Keyframes
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 184, 53, 0.4);
  }
  50% {
    box-shadow: 0 0 0 0.625rem rgba(230, 184, 53, 0);
  }
}

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

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

/* Animation Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.5s ease-out forwards;
}

.animate-pulse-gold {
  animation: pulse-gold 2s infinite;
}

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

/* ===================================
   Tilt Card Effect
   =================================== */
.tilt-card {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

/* ===================================
   Parallax Effect
   =================================== */
.parallax {
  will-change: transform;
}

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

.table-responsive table {
  min-width: 100%;
}

/* ===================================
   Prose Styling for Markdown Content
   =================================== */
.prose {
  color: var(--color-cream-200);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: var(--color-cream-50);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  border-bottom: 0.125rem solid var(--color-gold-600);
  padding-bottom: 0.5rem;
}

.prose h3 {
  color: var(--color-cream-100);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose h4 {
  color: var(--color-gold-400);
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  color: var(--color-cream-300);
}

.prose p:first-of-type {
  font-size: 1.0625rem;
}

/* Links */
.prose a {
  color: var(--color-gold-400);
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--color-gold-500);
}

/* Strong & Emphasis */
.prose strong {
  color: var(--color-cream-100);
  font-weight: 600;
}

.prose em {
  color: var(--color-cream-200);
  font-style: italic;
}

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

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  color: var(--color-cream-300);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--color-gold-500);
  border-radius: 50%;
}

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

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.625rem;
  color: var(--color-cream-300);
  counter-increment: list-counter;
}

.prose ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  color: var(--color-gold-400);
  font-weight: 600;
}

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--color-gold-500);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-cream-400);
  background-color: var(--color-noir-900);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--color-cream-300);
}

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 0.0625rem solid rgba(192, 122, 23, 0.2);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose thead {
  background-color: var(--color-noir-800);
}

.prose th {
  color: var(--color-gold-400);
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(192, 122, 23, 0.3);
}

.prose td {
  padding: 0.875rem 1rem;
  color: var(--color-cream-300);
  border-bottom: 0.0625rem solid rgba(192, 122, 23, 0.1);
}

.prose tbody tr:hover {
  background-color: rgba(64, 64, 72, 0.3);
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(192, 122, 23, 0.2);
}

/* Code */
.prose code {
  background-color: var(--color-noir-800);
  color: var(--color-gold-400);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background-color: var(--color-noir-900);
  border: 0.0625rem solid rgba(192, 122, 23, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
  color: var(--color-cream-200);
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(to right, transparent, var(--color-gold-600), transparent);
  margin: 2.5rem 0;
}

/* First Letter Styling */
.prose > p:first-of-type::first-letter {
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  color: var(--color-gold-400);
  font-family: Georgia, Cambria, "Times New Roman", serif;
}

/* ===================================
   Responsive Prose Adjustments
   =================================== */
@media (max-width: 48rem) {
  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

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

  .prose > p:first-of-type::first-letter {
    font-size: 2.5rem;
  }

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

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

details summary {
  list-style: none;
}

details[open] summary {
  border-bottom: 0.0625rem solid rgba(192, 122, 23, 0.1);
}

/* ===================================
   Focus States for Accessibility
   =================================== */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 0.125rem solid var(--color-gold-400);
  outline-offset: 0.125rem;
}

/* ===================================
   Selection Styling
   =================================== */
::selection {
  background-color: var(--color-gold-600);
  color: var(--color-noir-950);
}

::-moz-selection {
  background-color: var(--color-gold-600);
  color: var(--color-noir-950);
}
