/* Global Styles */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0f172a;
  color: #f8fafc;
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Roshtein-style sidebar menu */
.sticky-sidebar {
  position: fixed !important;
  height: 100vh;
  overscroll-behavior: contain;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 1000;
  top: 0;
  left: 0;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 0.25rem;
}

.sidebar-nav-link:hover, .sidebar-nav-link.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.sidebar-nav-link.active {
  border-left: 3px solid #3dcc8e;
}

.sidebar-icon {
  width: 20px;
  margin-right: 12px;
  text-align: center;
  color: #3dcc8e;
}

/* Mobile navigation */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #d1d5db;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 0.25rem;
}

.mobile-nav-link:hover {
  background-color: rgba(31, 41, 55, 0.8);
}

/* Navigation icon buttons */
.nav-icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(31, 41, 55, 0.8);
  color: #d1d5db;
  transition: all 0.15s ease;
}

.nav-icon-button:hover {
  background-color: rgba(55, 65, 81, 0.8);
  color: white;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Main background wrapper that stays fixed */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80');
  background-size: cover;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

/* Dark overlay for better readability */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(30, 20, 60, 0.98));
  z-index: -1;
  pointer-events: none;
}

/* Enhanced section backgrounds */
section {
  position: relative;
  z-index: 1;
}

.bg-gray-900 {
  background-color: rgba(17, 24, 39, 0.85) !important;
  backdrop-filter: blur(8px);
}

.bg-gray-800 {
  background-color: rgba(31, 41, 55, 0.92) !important;
}

/* Custom styling for gradient elements */
.neon-gradient {
  background: linear-gradient(45deg, #3dcc8e, #55E6A5);
}

.stake-gradient {
  background: linear-gradient(45deg, #0891b2, #06b6d4);
}

.glow-effect {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.7), 0 0 40px rgba(79, 70, 229, 0.3);
  transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.9), 0 0 50px rgba(79, 70, 229, 0.5);
}

.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  transition: all 0.3s ease;
  background-image: linear-gradient(45deg, #3dcc8e, #55E6A5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Hero section styles */
#hero {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  display: block;
  min-height: 100vh;
}

.grid-background {
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: subtlePulse 8s ease-in-out infinite;
  opacity: 0.5;
  z-index: 0;
}

@keyframes subtlePulse {
  0%, 100% { background-color: rgba(0, 0, 0, 0.75); }
  50% { background-color: rgba(30, 0, 60, 0.65); }
}

/* Make sure content on top of the grid-background is visible */
.relative {
  position: relative;
  z-index: 1;
}

/* Casino theme enhancement */

/* Add subtle card animations */
.feature-card, .bg-gray-800 {
  border-color: rgba(79, 70, 229, 0.3) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  border-color: rgba(79, 70, 229, 0.6) !important;
}

/* Roshtein-style card grid layout */
.roshtein-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Neon glow effects */
.neon-border {
  border: 1px solid rgba(79, 70, 229, 0.4);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.2), 0 0 20px rgba(79, 70, 229, 0.1);
  transition: all 0.3s ease;
}

.neon-border:hover {
  border-color: rgba(79, 70, 229, 0.8);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.4), 0 0 30px rgba(79, 70, 229, 0.2);
}

/* Enhanced buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary:after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  bottom: -50%;
  left: -50%;
  background: linear-gradient(to bottom, rgba(229, 229, 229, 0), rgba(229, 229, 229, 0.2) 50%, rgba(229, 229, 229, 0));
  transform: rotateZ(60deg) translate(-5em, 7.5em);
  opacity: 0;
  transition: opacity 0.5s;
}

.btn-primary:hover::after {
  opacity: 1;
  animation: sheen 1s forwards;
}

@keyframes sheen {
  100% {
    transform: rotateZ(60deg) translate(1em, -9em);
  }
}

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #55E6A5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3dcc8e;
}

/* Rewards store styles */
.rewards-card {
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rewards-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.6);
}

.progress-bar-bg {
  background: rgba(55, 65, 81, 0.5);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  transition: width 1s ease;
}

/* Login button enhancement */
.login-btn {
  background: linear-gradient(45deg, #3b82f6, #6366f1);
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(45deg, #2563eb, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Draggable iframe styles */
.draggable {
    position: fixed;
    bottom: 20px; 
    right: 20px;
    width: 400px; 
    height: 300px; 
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #000;
    z-index: 10;
    cursor: move;
}

.draggable iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}