/* ================================================
   LuckyMinning Casino - Custom CSS
   Gold Mining Theme with Dark Gray Background
   ================================================ */

/* ------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------ */
:root {
    --gold-primary: #ffd700;
    --gold-light: #ffea00;
    --gold-dark: #ffb300;
    --amber-glow: #ff8c00;
    --dark-bg: #1a1a1f;
    --darker-bg: #121215;
    --gray-surface: #2a2a32;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a8;
}

/* ------------------------------------------------
   Global Styles & Prose Readability
   ------------------------------------------------ */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 50%, var(--darker-bg) 100%);
    min-height: 100vh;
}

/* Prose styling for readability */
.prose-mining {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.prose-mining h2,
.prose-mining h3,
.prose-mining h4 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose-mining h2 {
    font-size: 1.75rem;
}

.prose-mining h3 {
    font-size: 1.375rem;
}

.prose-mining p {
    margin-bottom: 1.25em;
}

.prose-mining ul,
.prose-mining ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}

.prose-mining li {
    margin-bottom: 0.5em;
}

.prose-mining strong {
    color: var(--gold-primary);
    font-weight: 600;
}

.prose-mining a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.prose-mining a:hover {
    color: var(--gold-primary);
}

/* ------------------------------------------------
   Keyframe Animations
   ------------------------------------------------ */

/* Pulse glow effect for CTAs */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3),
                    0 0 40px rgba(255, 215, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5),
                    0 0 60px rgba(255, 215, 0, 0.2);
    }
}

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

/* Float animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Marquee scroll animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Spin slow */
@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale pulse */
@keyframes scalePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Gold sparkle */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Border glow */
@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.3);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.6);
    }
}

/* ------------------------------------------------
   Animation Utility Classes
   ------------------------------------------------ */
.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

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

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

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.animate-spin-slow {
    animation: spinSlow 20s linear infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.animate-border-glow {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ------------------------------------------------
   Component Styles
   ------------------------------------------------ */

/* Header styles */
.header-scrolled {
    background: rgba(18, 18, 21, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* CTA Button styles */
.cta-button {
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s ease-in-out infinite;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent
    );
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Hero section gradient pattern */
.hero-pattern {
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 179, 0, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 140, 0, 0.05) 0%, transparent 45%),
        linear-gradient(135deg, #1a1a1f 0%, #2a2a32 50%, #1a1a1f 100%);
}

/* Mining pattern SVG background */
.mining-pattern {
    background-color: #1a1a1f;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Slot card styles */
.slot-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--gray-surface);
    transition: all 0.3s ease;
}

.slot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), transparent, rgba(255, 215, 0, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(255, 215, 0, 0.1);
}

.slot-card:hover::before {
    opacity: 1;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

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

.badge-jackpot {
    background: linear-gradient(135deg, var(--gold-primary), var(--amber-glow));
    color: #1a1a1f;
}

.badge-bonus {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
}

/* Feature card */
.feature-card {
    background: linear-gradient(135deg, var(--gray-surface), rgba(42, 42, 50, 0.5));
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Provider button */
.provider-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--gray-surface);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.provider-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: scale(1.05);
}

/* Review card */
.review-card {
    background: linear-gradient(145deg, var(--gray-surface), rgba(42, 42, 50, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

/* Star rating */
.star-filled {
    color: var(--gold-primary);
}

.star-empty {
    color: rgba(255, 215, 0, 0.2);
}

/* Marquee container */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Glow effects */
.glow-gold {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2),
                0 0 40px rgba(255, 215, 0, 0.1);
}

.glow-gold-strong {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3),
                0 0 60px rgba(255, 215, 0, 0.15),
                0 0 90px rgba(255, 215, 0, 0.05);
}

/* Text gradient */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--amber-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------------------------------------
   Parallax Styles
   ------------------------------------------------ */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax {
    will-change: transform;
}

/* ------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------ */
@media (max-width: 768px) {
    .prose-mining {
        font-size: 0.9375rem;
        line-height: 1.7;
    }
    
    .prose-mining h2 {
        font-size: 1.5rem;
    }
    
    .prose-mining h3 {
        font-size: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-marquee {
        animation: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.3);
}

/* ------------------------------------------------
   Selection Styling
   ------------------------------------------------ */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: white;
}
