/* Custom Styles */
* {
    font-family: 'Poppins', sans-serif;
}

body {
    overflow-x: hidden;
}

/* Background Animations */
.coins-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.coins-animation::before,
.coins-animation::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    animation: coinFall 8s infinite linear;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.coins-animation::before {
    left: 10%;
    animation-delay: 0s;
}

.coins-animation::after {
    left: 80%;
    animation-delay: 4s;
}

@keyframes coinFall {
    0% {
        top: -50px;
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 100vh;
        transform: rotate(360deg);
        opacity: 0;
    }
}

/* Lights Animation */
.lights-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lights-animation::before,
.lights-animation::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: sparkle 3s infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.lights-animation::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.lights-animation::after {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Wheel Styles */
#wheelCanvas {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.5);
}

/* Card Hover Effects */
.betting-site-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.betting-site-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Button Animations */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Notification Styles */
.notification {
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    animation: slideIn 0.5s ease forwards;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

/* Different notification colors */
.notification:nth-child(1) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notification:nth-child(2) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.notification:nth-child(3) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.notification:nth-child(4) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.notification:nth-child(5) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.notification:nth-child(6) {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(219, 39, 119, 0.9));
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.notification:nth-child(7) {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(8, 145, 178, 0.9));
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.notification:nth-child(8) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(22, 163, 74, 0.9));
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification:nth-child(9) {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(147, 51, 234, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.notification:nth-child(10) {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.9), rgba(249, 115, 22, 0.9));
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.notification.hide {
    animation: slideOut 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse Animation */
.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(147, 51, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(147, 51, 234, 0.8);
    }
}

/* Mobile Navigation Styles */
.mobile-menu {
    height: 60px;
    display: flex;
    align-items: center;
}

.mobile-menu__links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0 16px 12px 16px;
}

.mobile-menu__links li {
    display: flex;
    align-items: center;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-space-between {
    justify-content: space-between;
}

/* Circle Button Styles */
.circle-button-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    border: 3px solid #1f2937;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.circle-button-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.6);
}

.circle-button-text {
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    line-height: 1.1;
    z-index: 2;
    position: relative;
}

.circle-button-text div {
    margin: 1px 0;
}

.wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: waveAnimation 2s infinite;
}

.circle-button-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #10b981, #059669, #047857, #10b981);
    border-radius: 50%;
    z-index: -1;
    animation: bonusPulse 3s infinite;
    opacity: 0.8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .coins-animation::before,
    .coins-animation::after {
        width: 15px;
        height: 15px;
    }
    
    .notification {
        min-width: 250px;
        font-size: 14px;
    }
    
    body {
        padding-bottom: 60px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #8b5cf6, #3b82f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #7c3aed, #2563eb);
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: glowRotate 2s linear infinite;
}

.glow-effect:hover::before {
    opacity: 1;
}

@keyframes glowRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Responsive Design Enhancements */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .betting-site-card {
        margin-bottom: 1rem;
    }
}

/* High Performance Animations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Bonus Wave Button Styles */
.bonus-wave-button {
    transition: all 0.3s ease;
}

.bonus-wave-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.wave-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: waveAnimation 2s infinite;
}

.wave-delay-1 {
    animation-delay: 0.5s;
}

.wave-delay-2 {
    animation-delay: 1s;
}

@keyframes waveAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Bonus Button Pulse Effect */
.bonus-wave-button::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #10b981, #059669, #047857, #10b981);
    border-radius: 50%;
    z-index: -1;
    animation: bonusPulse 3s infinite;
    opacity: 0.7;
}

@keyframes bonusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Additional Wave Ripple Effect */
.bonus-wave-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, transparent 40%, rgba(16, 185, 129, 0.2) 50%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleWave 4s infinite;
}

@keyframes rippleWave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Print Styles */
@media print {
    .coins-animation,
    .lights-animation,
    #wheelPopup,
    .notification,
    nav {
        display: none !important;
    }
}
