/* Casea Casino - Custom Styles */
/* Underwater Casino Theme - Blue Ocean */

/* ===== CSS Variables ===== */
:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0f2847;
  --ocean-light: #1a4a7a;
  --accent-gold: #ffd700;
  --accent-coral: #ff6b6b;
  --glow-blue: rgba(59, 130, 246, 0.5);
  --glow-gold: rgba(255, 215, 0, 0.4);
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, var(--ocean-deep) 100%);
  min-height: 100vh;
}

/* ===== Prose Readability ===== */
.prose-casino {
  font-size: 1rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.prose-casino h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.prose-casino h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #f1f5f9;
}

.prose-casino p {
  margin-bottom: 1rem;
}

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

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

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

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

.shimmer-text {
  background: linear-gradient(
    90deg,
    #fff 0%,
    #ffd700 25%,
    #fff 50%,
    #ffd700 75%,
    #fff 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(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

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

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

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

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

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

/* ===== Bubble Animation (Underwater Effect) ===== */
@keyframes bubble {
  0% {
    transform: translateY(100vh) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.bubble {
  position: fixed;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bubble-1 {
  width: 20px;
  height: 20px;
  left: 10%;
  animation: bubble 12s linear infinite;
}

.bubble-2 {
  width: 15px;
  height: 15px;
  left: 30%;
  animation: bubble 10s linear infinite 2s;
}

.bubble-3 {
  width: 25px;
  height: 25px;
  left: 70%;
  animation: bubble 14s linear infinite 4s;
}

.bubble-4 {
  width: 12px;
  height: 12px;
  left: 85%;
  animation: bubble 11s linear infinite 1s;
}

/* ===== Glow Effects ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--glow-blue), 0 0 40px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 30px var(--glow-blue), 0 0 60px rgba(59, 130, 246, 0.3);
  }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 15px var(--glow-gold), 0 0 30px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 25px var(--glow-gold), 0 0 50px rgba(255, 215, 0, 0.3);
  }
}

.glow-blue {
  animation: pulse-glow 3s ease-in-out infinite;
}

.glow-gold {
  animation: pulse-gold 2.5s ease-in-out infinite;
}

/* ===== Card Styles ===== */
.card-ocean {
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.9) 0%, rgba(26, 74, 122, 0.7) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-ocean:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
}

/* ===== Slot/Game Cards ===== */
.game-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 60%);
  z-index: 1;
}

.game-card:hover {
  transform: scale(1.03);
}

.game-card:hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.2);
  z-index: 0;
}

/* ===== Badge Styles ===== */
.badge-jackpot {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #0a1628;
}

.badge-rtp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.badge-bonus {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
}

.badge-popular {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

/* ===== Button Styles ===== */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0a1628;
  transition: all 0.3s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

/* ===== Tab Styles ===== */
.tab-btn {
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.tab-btn:not(.active):hover {
  background: rgba(59, 130, 246, 0.2);
}

/* ===== Table Styles ===== */
.table-ocean {
  border-collapse: separate;
  border-spacing: 0;
}

.table-ocean th {
  background: rgba(59, 130, 246, 0.3);
  border-bottom: 2px solid rgba(59, 130, 246, 0.5);
}

.table-ocean td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-ocean tr:hover td {
  background: rgba(59, 130, 246, 0.1);
}

/* ===== Pills/Chips Navigation ===== */
.pill-nav {
  background: rgba(15, 40, 71, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.pill-nav:hover {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

/* ===== Hero Panel ===== */
.hero-panel {
  background: linear-gradient(135deg, rgba(15, 40, 71, 0.95) 0%, rgba(26, 74, 122, 0.85) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Steps/Timeline ===== */
.step-number {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Countdown Animation ===== */
@keyframes fadeNumber {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.countdown-number {
  animation: fadeNumber 1s ease-in-out;
}

/* ===== Bets Table ===== */
.bet-win {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.bet-lose {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

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

.star-empty {
  color: #475569;
}

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

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

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

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

::-webkit-scrollbar-track {
  background: var(--ocean-deep);
}

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

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

/* ===== Focus States for Accessibility ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #3b82f6;
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
