/* Homepage Specific Styles */

.hero {
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(220, 20, 60, 0.15) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="casino-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,215,0,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23casino-pattern)"/></svg>');
    z-index: -1;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(20px) translateY(20px); }
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-cta .btn {
    margin: 0.5rem;
    min-width: 200px;
}

/* Game Spotlight Section */
.game-card {
    position: relative;
    overflow: hidden;
}

.game-card::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);
    transition: all 0.6s ease;
    z-index: 1;
    opacity: 0;
}

.game-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.game-card img {
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.game-card:hover img {
    filter: brightness(1.1) saturate(1.2);
    transform: scale(1.08);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    width: 100%;
    margin-top: 0.5rem;
}

/* Tournament Section */
.tournament-card {
    background: linear-gradient(135deg, var(--card-bg), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s ease;
}

.tournament-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 15px 50px rgba(255, 215, 0, 0.3);
    transform: translateY(-8px) scale(1.02);
}

/* How to Start Section */
.step-number {
    animation: pulse 2s infinite;
}

.step-number:nth-child(2) {
    animation-delay: 0.5s;
}

.step-number:nth-child(3) {
    animation-delay: 1s;
}

.step-number:nth-child(4) {
    animation-delay: 1.5s;
}

/* Promotions Section */
.promo-card {
    position: relative;
    overflow: hidden;
}

.promo-card::after {
    content: '🔥';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Testimonials */
.testimonial {
    position: relative;
    overflow: hidden;
}

.testimonial::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial:hover::after {
    transform: scaleX(1);
}

/* Fixed Buttons Animation */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fixed-buttons .btn:nth-child(1) {
    animation: floatUp 3s ease-in-out infinite;
}

.fixed-buttons .btn:nth-child(2) {
    animation: floatUp 3s ease-in-out infinite 0.5s;
}

.fixed-buttons .btn:nth-child(3) {
    animation: floatUp 3s ease-in-out infinite 1s;
}

/* Responsive Homepage Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        padding: 0 1rem;
    }
    
    .hero-cta .btn {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
    
    .fixed-buttons {
        bottom: 10px;
        right: 10px;
    }
    
    .fixed-buttons .btn {
        padding: 10px 15px;
        font-size: 12px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Special Effects for Homepage */
.sparkle {
    position: relative;
}

.sparkle::before,
.sparkle::after {
    content: '✨';
    position: absolute;
    font-size: 1rem;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle::before {
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.sparkle::after {
    bottom: -10px;
    right: -10px;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

/* Header enhancement for homepage */
.running-text {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Casino chip animation */
.chip-animation {
    position: relative;
}

.chip-animation::before {
    content: '🎰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    animation: chipSpin 4s ease-in-out infinite;
}

@keyframes chipSpin {
    0%, 100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) rotate(0deg) scale(0.5); 
    }
    50% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) rotate(360deg) scale(1.2); 
    }
}
