/* Modern Casino Styling - Inspired by Contemporary Design */

/* Root Variables for Modern Theme */
:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-orange: #ff6b35;
  --accent-gold: #ffd700;
  --accent-blue: #00d4ff;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --border-color: #333;
  --shadow-glow: 0 0 20px rgba(255, 107, 53, 0.3);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Modern Glass Morphism */
.glass-morphism {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Modern Card Styling */
.modern-card {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border: 1px solid #333;
  border-radius: 16px;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 32px rgba(255, 107, 53, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: var(--accent-orange);
}

/* Modern Button Styles */
.btn-modern-primary {
  background: linear-gradient(135deg, var(--accent-orange), #e55a2b);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-modern-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-modern-primary:hover::before {
  left: 100%;
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-modern-secondary {
  background: rgba(255, 107, 53, 0.1);
  border: 2px solid var(--accent-orange);
  border-radius: 12px;
  color: var(--accent-orange);
  font-weight: 600;
  padding: 10px 22px;
  transition: all 0.3s ease;
}

.btn-modern-secondary:hover {
  background: var(--accent-orange);
  color: white;
  transform: translateY(-2px);
}

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

/* Modern Marquee Animation */
.marquee-container {
  overflow: hidden;
  position: relative;
  background: var(--secondary-dark);
  padding: 20px 0;
}

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

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

@media (max-width: 768px) {
  .marquee-content {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Modern Gradient Patterns */
.modern-pattern {
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

.geometric-pattern {
  background-image: 
    linear-gradient(45deg, rgba(255, 107, 53, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 107, 53, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 212, 255, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 212, 255, 0.05) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

/* Animated Background */
.animated-bg {
  background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #0f0f0f, #151515);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

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

/* Modern Navigation Styles */
.modern-nav {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.nav-item {
  position: relative;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.nav-item:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-orange);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 215, 0, 0.1));
  color: var(--accent-orange);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Mobile Bottom Menu Animation */
.mobile-bottom-menu {
  animation: slideUp 0.3s ease-out;
  background: var(--glass-morphism);
  backdrop-filter: blur(20px);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Modern Typography */
.prose-custom {
  line-height: 1.7;
  color: var(--text-primary);
}

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

.prose-custom h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.prose-custom h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.prose-custom h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  border-radius: 2px;
}

.prose-custom h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.prose-custom li {
  margin-bottom: 0.5rem;
  color: #d6d3d1;
}

.prose-custom a {
  color: #fbbf24;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-custom a:hover {
  color: #fcd34d;
}

.prose-custom strong {
  color: #fbbf24;
  font-weight: 600;
}

.prose-custom table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-custom th {
  background-color: rgba(180, 83, 9, 0.3);
  padding: 0.75rem;
  text-align: left;
  color: #fcd34d;
  font-weight: 600;
}

.prose-custom td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(120, 53, 15, 0.3);
  color: #d6d3d1;
}

/* Modern Game Card Effects */
.game-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--secondary-dark);
  border: 1px solid var(--border-color);
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 107, 53, 0.3),
    0 0 20px rgba(255, 107, 53, 0.2);
  border-color: var(--accent-orange);
}

/* Modern Hover Effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

/* Enhanced Loading Animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Modern Gradient Text Effects */
.gradient-text-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-secondary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glowing Text Effect */
.text-glow {
  text-shadow: 0 0 10px currentColor;
}

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

::-webkit-scrollbar-track {
  background: var(--primary-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-orange), #e55a2b);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff8c42, var(--accent-orange));
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) var(--primary-dark);
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose-custom h2 {
    font-size: 1.5rem;
  }

  .prose-custom h3 {
    font-size: 1.25rem;
  }
}

/* FAQ Rotation */
.rotate-180 {
  transform: rotate(180deg);
}

/* Sidebar Mobile */
@media (max-width: 1023px) {
  #sidebar {
    position: fixed;
    top: 5rem;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 5rem);
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #sidebar.flex {
    transform: translateX(0);
  }
}

/* Modern Interactive Elements */
.modern-search {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.modern-search:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Cookie Notice Modern Styling */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--glass-morphism);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  z-index: 1000;
  max-width: 400px;
  margin: 0 auto;
}

/* Enhanced Responsive Design */
@media (max-width: 640px) {
  .game-card {
    margin-bottom: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .game-card:hover {
    z-index: 10;
  }
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

.dark .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #1a1a1a 50%, #2a2a2a 75%);
  background-size: 200px 100%;
}

/* Print Styles */
@media print {
  header,
  footer,
  .mobile-bottom-menu,
  aside {
    display: none;
  }

  body {
    background: white !important;
    color: black !important;
  }
  
  .gradient-text-primary,
  .gradient-text-secondary {
    -webkit-text-fill-color: black !important;
    color: black !important;
  }
}
