/* LolaJack Custom CSS - Fire & Ice Theme */

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

/* Prose readability */
.prose {
  max-width: 72ch;
  line-height: 1.75;
}

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

.prose h2,
.prose h3 {
  margin-top: 2em;
  margin-bottom: 0.75em;
}

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

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

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

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    #f97316 0%,
    #fbbf24 25%,
    #06b6d4 50%,
    #3b82f6 75%,
    #f97316 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* Animation: Float */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

.float-delay-1 {
  animation-delay: 0.5s;
}

.float-delay-2 {
  animation-delay: 1s;
}

.float-delay-3 {
  animation-delay: 1.5s;
}

/* Fire glow */
@keyframes fire-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4), 0 0 40px rgba(249, 115, 22, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6), 0 0 60px rgba(249, 115, 22, 0.3);
  }
}

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

/* Ice glow */
@keyframes ice-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.3);
  }
}

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

/* Pulse subtle */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

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

/* Gradient text */
.gradient-fire-ice {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 30%, #06b6d4 70%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f97316, #06b6d4);
  border-radius: 4px;
}

/* Tab active state */
.tab-active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

/* Badge styles */
.badge-fire {
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.badge-ice {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

/* Background patterns */
.bg-grid-pattern {
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Star rating */
.star-filled {
  color: #fbbf24;
}

.star-empty {
  color: #374151;
}

/* ========================================
   CASINO SIDEBAR STYLES
   ======================================== */

/* Custom scrollbar for sidebar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b45309, #92400e);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d97706, #b45309);
}

/* Sidebar menu item base */
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.3), rgba(68, 35, 10, 0.3));
  border: 1px solid rgba(180, 83, 9, 0.3);
  border-radius: 0.75rem;
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar-menu-item:hover::before {
  left: 100%;
}

.sidebar-menu-item:hover {
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.5), rgba(120, 53, 15, 0.5));
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

/* Active menu item */
.sidebar-menu-item-active,
.sidebar-menu-item-active:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  border-color: #d97706;
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.4), inset 0 1px 2px rgba(253, 230, 138, 0.2);
  color: #ffffff;
  transform: translateX(6px);
}

.sidebar-menu-item-active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
  border-radius: 0 2px 2px 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
  }
}

/* Sidebar icon */
.sidebar-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.sidebar-menu-item:hover .sidebar-icon {
  transform: scale(1.1) rotate(5deg);
}

.sidebar-menu-item-active .sidebar-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

/* Sidebar text */
.sidebar-text {
  flex: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Sidebar separator */
.sidebar-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.4), transparent);
  margin: 0.75rem 0;
  position: relative;
}

.sidebar-separator::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #d97706, transparent);
  border-radius: 50%;
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
  backdrop-filter: blur(8px);
}

.sidebar-toggle-btn:hover {
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

/* Sidebar collapsed state */
#casino-sidebar.sidebar-collapsed {
  transform: translateX(-100%);
}

/* Adjust main content when sidebar is open */
body.sidebar-open #main-content {
  margin-left: 18rem;
  transition: margin-left 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 1024px) {
  #casino-sidebar {
    transform: translateX(-100%);
  }
  
  #casino-sidebar.sidebar-open {
    transform: translateX(0);
  }
  
  body.sidebar-open #main-content {
    margin-left: 0;
  }
  
  #sidebar-overlay.active {
    display: block;
  }
}

/* Desktop - sidebar always visible by default */
@media (min-width: 1025px) {
  #casino-sidebar {
    transform: translateX(0);
  }
  
  body:not(.sidebar-collapsed) #main-content {
    margin-left: 18rem;
  }
  
  body.sidebar-collapsed #main-content {
    margin-left: 0;
  }
  
  #sidebar-toggle {
    left: 4px;
  }
  
  body:not(.sidebar-collapsed) #sidebar-toggle {
    left: 17rem;
  }
}
