/* CobraPlay - Egyptian Casino Theme Custom CSS */

/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #b8860b;
  --scarab-teal: #1abc9c;
  --papyrus: #f5e6c8;
  --nile-blue: #2980b9;
  --dark-gray: #1a1a1e;
  --darker-gray: #121214;
  --card-bg: #252529;
  --card-border: #3a3a42;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, var(--dark-gray) 0%, var(--darker-gray) 100%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ========================================
   Prose Styling for Readability
   ======================================== */
.prose {
  max-width: 72ch;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  color: var(--text-primary);
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

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

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

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

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ========================================
   Animations - Parallax & Marquee
   ======================================== */

/* Parallax Float Animation */
@keyframes parallaxFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(1deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
  75% {
    transform: translateY(-20px) rotate(0.5deg);
  }
}

.parallax-float {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.parallax-float-delayed {
  animation: parallaxFloat 6s ease-in-out infinite;
  animation-delay: -3s;
}

/* Marquee Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

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

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

/* Pulse Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                0 0 40px rgba(212, 175, 55, 0.2),
                0 0 60px rgba(212, 175, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6),
                0 0 60px rgba(212, 175, 55, 0.4),
                0 0 90px rgba(212, 175, 55, 0.2);
  }
}

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

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold-light) 25%,
    var(--gold) 50%,
    var(--gold-light) 75%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

/* Countdown Fade Animation */
@keyframes countdownPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.countdown-pulse {
  animation: countdownPulse 1s ease-in-out infinite;
}

/* Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Spin Slow (for decorative elements) */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spinSlow 20s linear infinite;
}

/* Border Glow Animation */
@keyframes borderGlow {
  0%, 100% {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  50% {
    border-color: var(--gold-light);
    box-shadow: 0 0 25px rgba(244, 208, 63, 0.5);
  }
}

.border-glow {
  animation: borderGlow 2s ease-in-out infinite;
}

/* ========================================
   Egyptian Pattern SVG Background
   ======================================== */
.egyptian-pattern {
  background-color: var(--dark-gray);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23d4af3710' stroke-width='1'/%3E%3Cpath d='M30 10L50 30L30 50L10 30z' fill='none' stroke='%23d4af3708' stroke-width='1'/%3E%3C/svg%3E");
}

.pyramid-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='40,5 75,70 5,70' fill='none' stroke='%23d4af3712' stroke-width='1'/%3E%3C/svg%3E");
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--darker-gray);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--darker-gray);
}

/* ========================================
   Card Styles
   ======================================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Slot Card Specific */
.slot-card {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
}

.slot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slot-card:hover img {
  transform: scale(1.08);
}

.slot-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
}

.badge-jackpot {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--darker-gray);
}

.badge-rtp {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.badge-bonus {
  background: linear-gradient(135deg, #a55eea 0%, #8854d0 100%);
  color: white;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-gradient {
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(26, 26, 30, 0.95) 50%,
    rgba(184, 134, 11, 0.1) 100%
  );
}

/* ========================================
   Feature Glow Border
   ======================================== */
.feature-glow {
  position: relative;
  border: 2px solid transparent;
  background: var(--card-bg);
  border-radius: 1rem;
}

.feature-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--gold), var(--scarab-teal), var(--gold));
  z-index: -1;
  opacity: 0.6;
}

/* ========================================
   Provider Cloud
   ======================================== */
.provider-btn {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--darker-gray) 100%);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: default;
}

.provider-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* ========================================
   Review Cards
   ======================================== */
.review-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(37, 37, 41, 0.8) 100%);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.star-rating {
  color: var(--gold);
}

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

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

/* ========================================
   Sticky Header
   ======================================== */
.sticky-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(26, 26, 30, 0.85);
  border-bottom: 1px solid var(--card-border);
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--card-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ========================================
   Selection Styling
   ======================================== */
::selection {
  background: var(--gold);
  color: var(--darker-gray);
}

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