/* ============================================
   FRUMZICASINO - Custom CSS
   Elegant Bloom Luxe Theme
   ============================================ */

/* CSS Custom Properties */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent-gold: #d4af37;
  --color-accent-gold-light: #f4e4bc;
  --color-accent-rose: #c9a86c;
  --color-cream: #faf8f5;
  --color-cream-dark: #f0ebe3;
  --color-text-dark: #2d2d3a;
  --color-text-light: #f8f6f2;
  --color-border: rgba(212, 175, 55, 0.3);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-elegant: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes pulse-gold {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 1.25rem 0.5rem rgba(212, 175, 55, 0.1);
  }
}

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

@keyframes marquee-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

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

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

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-subtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.3125rem);
  }
}

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

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

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

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

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-marquee-reverse {
  animation: marquee-reverse 30s linear infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}

/* Parallax Container */
.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-layer {
  transform-style: preserve-3d;
  will-change: transform;
}

.parallax-slow {
  transform: translateZ(-100px) scale(1.1);
}

.parallax-fast {
  transform: translateZ(100px) scale(0.9);
}

/* Marquee Wrapper */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 2rem;
}

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

/* Ornamental Decorations */
.ornament-curve {
  position: absolute;
  pointer-events: none;
}

.ornament-curve::before {
  content: "";
  position: absolute;
  width: 12.5rem;
  height: 12.5rem;
  border: 0.125rem solid var(--color-accent-gold);
  border-radius: 50%;
  opacity: 0.2;
}

.gold-accent-line {
  height: 0.125rem;
  background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-rose));
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-rose), var(--color-accent-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--color-accent-gold);
  color: var(--color-accent-gold);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--color-accent-gold);
  color: var(--color-primary);
}

/* Card Styles */
.card-elegant {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 248, 245, 0.9));
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.card-elegant:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-elegant), 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-dark {
  background: linear-gradient(145deg, var(--color-secondary), var(--color-primary));
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.9) 50%, rgba(26, 26, 46, 0.95) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, var(--color-accent-gold) 1px, transparent 0);
  background-size: 2rem 2rem;
}

/* Bonus Badge */
.bonus-badge {
  background: linear-gradient(145deg, var(--color-primary), var(--color-secondary));
  border: 0.1875rem solid var(--color-accent-gold);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  animation: rotate-slow 10s linear infinite;
}

/* Game Cards */
.game-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  transition: var(--transition-smooth);
}

.game-card:hover {
  transform: scale(1.05);
  z-index: 10;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 46, 0.95) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

/* Step Badges */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow-elegant);
}

/* Table Styles */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--color-border);
}

.table-elegant {
  width: 100%;
  border-collapse: collapse;
  min-width: 37.5rem;
}

.table-elegant th {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-accent-gold);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.table-elegant td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid var(--color-border);
  color: var(--color-text-dark);
  background: var(--color-cream);
}

.table-elegant tr:nth-child(even) td {
  background: var(--color-cream-dark);
}

.table-elegant tr:hover td {
  background: var(--color-accent-gold-light);
}

/* FAQ Accordion */
.faq-item {
  border: 0.0625rem solid var(--color-border);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--color-cream);
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: var(--color-cream-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 31.25rem;
  padding: 0 1.25rem 1.25rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Provider Cloud */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.provider-tag {
  background: var(--color-cream-dark);
  color: var(--color-text-dark);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  border: 0.0625rem solid var(--color-border);
  transition: var(--transition-smooth);
}

.provider-tag:hover {
  background: var(--color-accent-gold);
  color: var(--color-primary);
}

/* Promo Cards */
.promo-card {
  background: linear-gradient(145deg, var(--color-cream), var(--color-cream-dark));
  border: 0.0625rem solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.promo-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-elegant);
}

/* Navigation */
.nav-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-scrolled {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(0.625rem);
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3);
}

.nav-link {
  color: var(--color-text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0.125rem;
  background: var(--color-accent-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--color-accent-gold);
}

.nav-link:hover::after {
  width: 80%;
}

/* Mobile Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 0.375rem;
  cursor: pointer;
  padding: 0.625rem;
  background: var(--color-primary);
  border-radius: 0.5rem;
  z-index: 1001;
}

.burger-line {
  width: 1.5rem;
  height: 0.1875rem;
  background: var(--color-accent-gold);
  border-radius: 0.125rem;
  transition: var(--transition-smooth);
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.375rem, 0.375rem);
}

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

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.375rem, -0.375rem);
}

@media (max-width: 63.9375rem) {
  .burger-menu {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 18.75rem;
    height: 100vh;
    background: var(--color-primary);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -0.25rem 0 1.25rem rgba(0, 0, 0, 0.3);
  }

  .mobile-menu.active {
    right: 0;
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Footer */
.footer-section {
  background: linear-gradient(180deg, var(--color-secondary), var(--color-primary));
  border-top: 0.0625rem solid var(--color-border);
}

.footer-link {
  color: var(--color-cream-dark);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-accent-gold);
}

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

/* Decorative Elements */
.ornament-top-left {
  position: absolute;
  top: -3.125rem;
  left: -3.125rem;
  width: 12.5rem;
  height: 12.5rem;
  border: 0.125rem solid var(--color-accent-gold);
  border-radius: 50%;
  opacity: 0.1;
}

.ornament-bottom-right {
  position: absolute;
  bottom: -3.125rem;
  right: -3.125rem;
  width: 15.625rem;
  height: 15.625rem;
  border: 0.125rem solid var(--color-accent-gold);
  border-radius: 50%;
  opacity: 0.1;
}

.gold-divider {
  width: 6.25rem;
  height: 0.1875rem;
  background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
  margin: 1.5rem auto;
}

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

.prose {
  color: var(--color-text-dark);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 100%;
}

.prose > * + * {
  margin-top: 1.5em;
}

/* Headings */
.prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2.5em;
  margin-bottom: 1em;
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.75rem;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 0.1875rem;
  background: linear-gradient(90deg, var(--color-accent-gold), transparent);
  border-radius: 0.125rem;
}

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

.prose h4 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  margin-bottom: 1.25em;
  color: var(--color-text-dark);
}

.prose p:first-of-type {
  font-size: 1.1em;
  color: var(--color-secondary);
}

/* Links */
.prose a {
  color: var(--color-accent-gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 0.125rem;
  transition: var(--transition-smooth);
}

.prose a:hover {
  color: var(--color-accent-rose);
  text-decoration-color: var(--color-accent-rose);
}

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

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75em;
  color: var(--color-text-dark);
}

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

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

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  counter-increment: prose-counter;
  color: var(--color-text-dark);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  background: linear-gradient(135deg, var(--color-accent-gold), var(--color-accent-rose));
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875em;
}

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid var(--color-border);
  background: var(--color-cream);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  min-width: 100%;
}

.prose th {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-accent-gold);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid var(--color-border);
  color: var(--color-text-dark);
  background: var(--color-cream);
}

.prose tr:nth-child(even) td {
  background: var(--color-cream-dark);
}

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

/* Blockquotes */
.prose blockquote {
  border-left: 0.25rem solid var(--color-accent-gold);
  background: linear-gradient(90deg, var(--color-cream-dark), transparent);
  padding: 1.5em 1.5em 1.5em 2em;
  margin: 2em 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--color-secondary);
}

.prose blockquote p {
  margin-bottom: 0;
  font-size: 1.05em;
}

.prose blockquote p:first-of-type {
  font-size: 1.05em;
}

/* Code */
.prose code {
  background: var(--color-cream-dark);
  color: var(--color-secondary);
  padding: 0.2em 0.5em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Fira Code", monospace;
}

.prose pre {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 1.5em;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin: 2em 0;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2em 0;
  box-shadow: var(--shadow-card);
}

/* Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--color-accent-gold), transparent);
  margin: 3em 0;
}

/* Strong and Emphasis */
.prose strong {
  color: var(--color-primary);
  font-weight: 600;
}

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

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

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

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

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

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

/* Print Styles */
@media print {
  .prose {
    color: #000;
    max-width: 100%;
  }

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

  .prose h2::after {
    display: none;
  }
}
