/* AlaWin Casino - Custom CSS */
/* Arabian Nights Theme - Dark Blue & Gold */

:root {
  --primary-dark: #0a1628;
  --primary-blue: #0d2240;
  --accent-gold: #d4af37;
  --accent-gold-light: #f4d03f;
  --accent-purple: #6b21a8;
  --accent-teal: #0d9488;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --gradient-arabian: linear-gradient(135deg, #0d2240 0%, #1a365d 50%, #0f172a 100%);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
  --gradient-magic: linear-gradient(135deg, #6b21a8 0%, #0d9488 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Prose Styling for Readability */
.prose {
  max-width: 75ch;
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.875rem; }
.prose h3 { font-size: 1.5rem; }
.prose h4 { font-size: 1.25rem; }

.prose p {
  margin-bottom: 1.25em;
  color: var(--text-secondary);
}

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

.prose li {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

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

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

/* Arabian Pattern Background */
.arabian-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(107, 33, 168, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.02) 35px, rgba(212, 175, 55, 0.02) 70px);
}

/* Geometric Star Pattern */
.star-pattern {
  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 5L35 25L55 30L35 35L30 55L25 35L5 30L25 25Z' fill='none' stroke='%23d4af3710' stroke-width='1'/%3E%3C/svg%3E");
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-gold {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4),
                0 0 40px rgba(212, 175, 55, 0.2);
  }
  50% { 
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6),
                0 0 60px rgba(212, 175, 55, 0.3);
  }
}

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

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

@keyframes parallax-slow {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes parallax-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.02); }
}

@keyframes genie-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
    opacity: 0.8;
  }
  50% { 
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8));
    opacity: 1;
  }
}

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

@keyframes countdown-fade {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slide-up {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Animation Classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

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

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

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

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

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

.animate-countdown {
  animation: countdown-fade 1s ease-in-out infinite;
}

.animate-slide-up {
  animation: slide-up 0.6s ease-out forwards;
}

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

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

.parallax-layer {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

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

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

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

/* Glass Effect */
.glass {
  background: rgba(13, 34, 64, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.glass-gold {
  background: rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Button Styles */
.btn-primary {
  background: var(--gradient-gold);
  color: #0a1628;
  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;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

/* Card Styles */
.card {
  background: rgba(13, 34, 64, 0.6);
  border-radius: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Slot Card */
.slot-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--primary-blue);
}

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

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

.slot-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-gold {
  background: var(--gradient-gold);
  color: #0a1628;
}

.badge-purple {
  background: rgba(107, 33, 168, 0.8);
  color: white;
}

.badge-teal {
  background: rgba(13, 148, 136, 0.8);
  color: white;
}

.badge-red {
  background: rgba(220, 38, 38, 0.8);
  color: white;
}

/* Provider Button */
.provider-btn {
  background: rgba(13, 34, 64, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.provider-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Rating Stars */
.stars {
  color: var(--accent-gold);
  letter-spacing: 0.125rem;
}

/* Review Card */
.review-card {
  background: rgba(13, 34, 64, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(13, 34, 64, 0.7);
}

/* Magic Lamp Decoration */
.magic-lamp {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.1;
  animation: genie-glow 4s ease-in-out infinite;
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--primary-dark);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 2rem;
  border-left: 1px solid rgba(212, 175, 55, 0.1);
}

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background: 
    radial-gradient(ellipse at top right, rgba(107, 33, 168, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(13, 34, 64, 0.9) 0%, rgba(10, 22, 40, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Feature Section */
.feature-card {
  background: rgba(13, 34, 64, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Countdown Animation */
.countdown-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Author Section */
.author-card {
  background: rgba(13, 34, 64, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 1.5rem;
  padding: 2rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  object-fit: cover;
}

/* Footer */
.footer-section {
  background: rgba(10, 22, 40, 0.9);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .prose h1 { font-size: 1.75rem; }
  .prose h2 { font-size: 1.5rem; }
  .prose h3 { font-size: 1.25rem; }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
  }
  
  .slot-card .overlay {
    opacity: 1;
  }
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection */
::selection {
  background: rgba(212, 175, 55, 0.3);
  color: white;
}

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

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}
