/* Realz Casino - Custom Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

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

/* Hero Pattern Animation */
.hero-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 215, 0, 0.03) 10px, rgba(255, 215, 0, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(107, 70, 193, 0.03) 10px, rgba(107, 70, 193, 0.03) 20px);
    animation: patternSlide 20s linear infinite;
}

@keyframes patternSlide {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px 100px;
    }
}

/* Game Category Button Styles */
.game-category-btn {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.3), rgba(26, 11, 46, 0.3));
    border: 2px solid rgba(255, 215, 0, 0.2);
    color: #fff;
}

.game-category-btn:hover {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.5), rgba(26, 11, 46, 0.5));
    transform: translateY(-2px);
}

.game-category-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    color: #1A0B2E;
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

/* Game Card Hover Effects */
.game-card {
    transition: all 0.3s ease;
}

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

/* Pulse Animation for CTAs */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Floating Animation for Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Glow Effect */
.glow-effect {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFC700, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .text-xl {
        font-size: 1.125rem !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #6B46C1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFC700, #5A3BA1);
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #FFD700;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    nav {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Hidden Class for JavaScript Toggle */
.hidden {
    display: none !important;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Payment Method Icons Hover */
.payment-icon {
    transition: all 0.3s ease;
}

.payment-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Navigation Link Underline Effect */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Promo Card Hover Animation */
.promo-card {
    transition: all 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Feature Icon Animation */
.feature-icon {
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: rotate(360deg) scale(1.1);
}

/* Responsive Grid Adjustments */
@media (max-width: 640px) {
    .grid {
        gap: 1rem !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .border-realz-gold\/20 {
        border-color: #FFD700 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}