/**
 * Premium Neon & Glassmorphism Ludo Styling
 */

/* Custom harmonious neon borders and gradients */
.glass-panel {
    background: rgba(22, 20, 52, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Premium micro-animations & transitions */
.btn-neon-purple {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.25);
    transition: all 0.25s ease;
}
.btn-neon-purple:hover {
    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.4);
    transform: translateY(-1px);
}
.btn-neon-purple:active {
    transform: translateY(0);
}

.btn-neon-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
    transition: all 0.25s ease;
}
.btn-neon-green:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}
.btn-neon-green:active {
    transform: translateY(0);
}

/* Glow effects */
.glow-active {
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.6);
    border-color: rgba(124, 58, 237, 0.6);
}

.glow-green {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    border-color: rgba(34, 197, 94, 0.5);
}

/* Custom Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #080614;
}
::-webkit-scrollbar-thumb {
    background: #2d265c;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* Premium Dice Status Card Active Glows */
.active-blue {
    opacity: 1 !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.75), 0 8px 16px rgba(0,0,0,0.5) !important;
    transform: scale(1.06);
}
.active-red {
    opacity: 1 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.75), 0 8px 16px rgba(0,0,0,0.5) !important;
    transform: scale(1.06);
}
.active-green {
    opacity: 1 !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.75), 0 8px 16px rgba(0,0,0,0.5) !important;
    transform: scale(1.06);
}
.active-yellow {
    opacity: 1 !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.75), 0 8px 16px rgba(0,0,0,0.5) !important;
    transform: scale(1.06);
}

/* Active Dice Container Indicators */
.active-blue #dice-container-0 { box-shadow: 0 0 12px rgba(59, 130, 246, 0.8); border: 2.5px solid #3b82f6; }
.active-red #dice-container-1 { box-shadow: 0 0 12px rgba(239, 68, 68, 0.8); border: 2.5px solid #ef4444; }
.active-green #dice-container-2 { box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); border: 2.5px solid #10b981; }
.active-yellow #dice-container-3 { box-shadow: 0 0 12px rgba(251, 191, 36, 0.8); border: 2.5px solid #fbbf24; }

/* Fullscreen arena wrapper */
#ludo-arena-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #0b0f2d 0%, #030712 100%);
    padding: 20px;
    overflow: auto;
}

#ludo-arena-wrapper:fullscreen .w-full.max-w-\[530px\] {
    max-width: 620px !important;
}

#ludo-arena-wrapper:fullscreen .ludo-grid {
    max-width: 620px !important;
}

/* Active Pawn Team-Color Pulsing Neon Glows & Scale Popups */
@keyframes pawnGlowBlue {
    0% { filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
    50% { filter: drop-shadow(0 0 16px rgba(59, 130, 246, 1)) drop-shadow(0 6px 12px rgba(0,0,0,0.5)); transform: scale(1.12); }
    100% { filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
}
@keyframes pawnGlowRed {
    0% { filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
    50% { filter: drop-shadow(0 0 16px rgba(239, 68, 68, 1)) drop-shadow(0 6px 12px rgba(0,0,0,0.5)); transform: scale(1.12); }
    100% { filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
}
@keyframes pawnGlowGreen {
    0% { filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
    50% { filter: drop-shadow(0 0 16px rgba(16, 185, 129, 1)) drop-shadow(0 6px 12px rgba(0,0,0,0.5)); transform: scale(1.12); }
    100% { filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
}
@keyframes pawnGlowYellow {
    0% { filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
    50% { filter: drop-shadow(0 0 16px rgba(251, 191, 36, 1)) drop-shadow(0 6px 12px rgba(0,0,0,0.5)); transform: scale(1.12); }
    100% { filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.65)) drop-shadow(0 6px 10px rgba(0,0,0,0.4)); transform: scale(1.05); }
}

.pawn-glow-0 { animation: pawnGlowBlue 1.2s infinite ease-in-out; z-index: 45 !important; }
.pawn-glow-1 { animation: pawnGlowRed 1.2s infinite ease-in-out; z-index: 45 !important; }
.pawn-glow-2 { animation: pawnGlowGreen 1.2s infinite ease-in-out; z-index: 45 !important; }
.pawn-glow-3 { animation: pawnGlowYellow 1.2s infinite ease-in-out; z-index: 45 !important; }

/* Continuous staggered hopping for active player pawns (Vigorous) */
@keyframes continuousHop {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-16px) scale(1.12); }
}
.pawn-hop-active-turn {
    animation: continuousHop 0.45s infinite ease-in-out;
    z-index: 45 !important;
}

/* Active Base Yard Pulsing Glow */
@keyframes activeYardGlow {
    0%, 100% {
        box-shadow: inset 0 4px 12px rgba(0,0,0,0.8), 0 0 10px var(--yard-glow-color, rgba(255,255,255,0.2));
        border-color: var(--yard-glow-color, rgba(255,255,255,0.4));
    }
    50% {
        box-shadow: inset 0 4px 12px rgba(0,0,0,0.8), 0 0 25px var(--yard-glow-color, rgba(255,255,255,0.4));
        border-color: #ffffff;
    }
}
.active-yard-pulse {
    animation: activeYardGlow 1.2s infinite ease-in-out;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Light Theme support */
body.light-mode {
    background: radial-gradient(circle at center, #f8fafc 0%, #cbd5e1 100%) !important;
    color: #0f172a !important;
}

body.light-mode .text-white {
    color: #0f172a !important;
}

body.light-mode .text-indigo-100 {
    color: #1e293b !important;
}

body.light-mode .text-indigo-200 {
    color: #334155 !important;
}

body.light-mode .text-indigo-300 {
    color: #475569 !important;
}

body.light-mode .text-indigo-200/50 {
    color: rgba(51, 65, 85, 0.7) !important;
}

body.light-mode .text-indigo-300/60 {
    color: rgba(71, 85, 105, 0.75) !important;
}

body.light-mode .text-indigo-200/60 {
    color: rgba(51, 65, 85, 0.75) !important;
}

body.light-mode .text-indigo-300/40 {
    color: rgba(71, 85, 105, 0.5) !important;
}

body.light-mode .glass-panel {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .glass-card {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .glass-card:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode nav.glass-panel {
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .bg-slate-950/60 {
    background-color: rgba(241, 245, 249, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .bg-white/3 {
    background-color: rgba(15, 23, 42, 0.05) !important;
}

body.light-mode .bg-white/5 {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

body.light-mode .bg-white/1 {
    background-color: rgba(15, 23, 42, 0.02) !important;
}

body.light-mode .bg-gradient-to-br {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .bg-gradient-to-r {
    background-image: none !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .bg-slate-950 {
    background-color: #f1f5f9 !important;
}

body.light-mode .text-purple-400 {
    color: #6d28d9 !important;
}

body.light-mode .text-yellow-400 {
    color: #c2410c !important;
}

body.light-mode .border-white/5 {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .border-purple-500/20 {
    border-color: rgba(109, 40, 217, 0.2) !important;
}

body.light-mode .bg-purple-950/15 {
    background-color: rgba(109, 40, 217, 0.08) !important;
    border-color: rgba(109, 40, 217, 0.15) !important;
}

body.light-mode .border-purple-500/10 {
    border-color: rgba(109, 40, 217, 0.1) !important;
}

body.light-mode .text-indigo-100 {
    color: #0f172a !important;
}

body.light-mode .text-indigo-300/50 {
    color: rgba(71, 85, 105, 0.6) !important;
}

body.light-mode footer {
    background-color: rgba(241, 245, 249, 0.8) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode footer p, body.light-mode footer a {
    color: #475569 !important;
}

body.light-mode footer a:hover {
    color: #0f172a !important;
}




