/* RTP Pattern Theme Variables */
:root {
    --rtp-primary: #ffd700;
    --rtp-secondary: #ffa500;
    --rtp-accent: #ff8c00;
    --rtp-bg: #0a0a0a;
    --rtp-card: #1a1a1a;
}

/* Base Styles */
body {
    background-color: var(--rtp-bg);
    font-family: 'Poppins', sans-serif;
    color: #fff;
    line-height: 1.6;
}

/* Neon Text Effects */
.rtp-text {
    color: var(--rtp-primary);
    text-shadow: 0 0 5px var(--rtp-primary),
                 0 0 10px var(--rtp-primary),
                 0 0 20px var(--rtp-primary);
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

/* Card Effects */
.rtp-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--rtp-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.rtp-card:hover {
    border-color: var(--rtp-secondary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

/* Button Effects */
.rtp-button {
    background: linear-gradient(45deg, var(--rtp-primary), var(--rtp-secondary));
    color: var(--rtp-bg);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.rtp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--rtp-secondary), var(--rtp-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.rtp-button:hover::before {
    opacity: 1;
}

.rtp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* RTP Pattern Effects */
.rtp-pattern {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 165, 0, 0.05) 100%
    );
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.rtp-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 215, 0, 0.1) 0%,
        transparent 70%
    );
    animation: pattern-rotate 10s linear infinite;
}

/* RTP Indicator */
.rtp-indicator {
    height: 24px; /* Sesuai dengan h-6 di Tailwind */
    background: rgba(255, 215, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.rtp-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--rtp-width, 0%);
    background: linear-gradient(90deg,
        var(--rtp-primary) 0%,
        var(--rtp-secondary) 50%,
        var(--rtp-accent) 100%
    );
    transition: width 1s ease-out;
    animation: indicator-load 1s ease-out;
}

.rtp-indicator.rtp-high::after {
    background: linear-gradient(90deg,
        #00ff00 0%,
        #00cc00 50%,
        #009900 100%
    );
}

.rtp-indicator.rtp-low::after {
    background: linear-gradient(90deg,
        #ff0000 0%,
        #cc0000 50%,
        #990000 100%
    );
}

/* RTP Bar Container */
.rtp-bar-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.375rem;
    overflow: hidden;
    position: relative;
}

/* RTP Bar */
.rtp-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    transition: width 1s ease-out;
}

.rtp-bar.rtp-high {
    background: linear-gradient(90deg,
        #00ff00 0%,
        #ffff00 50%,
        var(--rtp-primary) 100%
    );
}

.rtp-bar.rtp-low {
    background: linear-gradient(90deg,
        #ff0000 0%,
        #ff6600 50%,
        #ffcc00 100%
    );
}

/* Stats Card */
.stats-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stats-card:hover {
    border-color: var(--rtp-primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

/* Animations */
@keyframes neon-pulse {
    from {
        text-shadow: 0 0 5px var(--rtp-primary),
                     0 0 10px var(--rtp-primary),
                     0 0 20px var(--rtp-primary);
    }
    to {
        text-shadow: 0 0 10px var(--rtp-primary),
                     0 0 20px var(--rtp-primary),
                     0 0 30px var(--rtp-primary),
                     0 0 40px var(--rtp-primary);
    }
}

@keyframes pattern-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes indicator-load {
    from {
        width: 0;
    }
    to {
        width: var(--rtp-width, 100%);
    }
}

/* High RTP Animation */
.high-rtp {
    animation: high-rtp-pulse 2s infinite;
}

@keyframes high-rtp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .rtp-card {
        margin-bottom: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Marquee Animation */
.animate-marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--rtp-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--rtp-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rtp-secondary);
}

/* Loading Effects */
.loading {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 215, 0, 0.1);
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg,
        transparent,
        var(--rtp-primary),
        transparent
    );
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Provider Logo Effects */
.provider-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.provider-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Banner Effects */
.banner-item {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(255, 215, 0, 0.2);
}

/* Game Card Grid */
.game-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Hover Effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Background Patterns */
.pattern-grid {
    background-image: linear-gradient(rgba(255, 215, 0, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 215, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
} 