/* Casino Games Custom CSS */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.floating-emoji:nth-child(odd) {
    animation-delay: -2s;
}

.floating-emoji:nth-child(even) {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 3D Text Effects */
.hero-title {
    text-shadow: 
        0 2px 0 #1e40af,
        0 4px 0 #1e3a8a,
        0 6px 0 #1e3a8a,
        0 8px 0 #1e3a8a,
        0 10px 20px rgba(0,0,0,0.4);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 
            0 2px 0 #1e40af,
            0 4px 0 #1e3a8a,
            0 6px 0 #1e3a8a,
            0 8px 0 #1e3a8a,
            0 10px 20px rgba(0,0,0,0.4);
    }
    to {
        text-shadow: 
            0 2px 0 #1e40af,
            0 4px 0 #1e3a8a,
            0 6px 0 #1e3a8a,
            0 8px 0 #1e3a8a,
            0 10px 20px rgba(0,0,0,0.4),
            0 0 30px rgba(71, 216, 42, 0.5);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 
        0 2px 0 #1e40af,
        0 4px 0 #1e3a8a,
        0 6px 10px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #47d82a, #ffffff, #47d82a);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #fff;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button Styles */
.cta-button-large {
    background: linear-gradient(45deg, #47d82a, #3bc922);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 0 #2ea018,
        0 8px 20px rgba(71, 216, 42, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 0 #2ea018,
        0 12px 25px rgba(71, 216, 42, 0.4);
}

.cta-button-secondary {
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #47d82a;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 0 rgba(71, 216, 42, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-secondary:hover {
    background: linear-gradient(45deg, #47d82a, #3bc922);
    transform: translateY(-2px);
}

.cta-button-small {
    background: linear-gradient(45deg, #47d82a, #3bc922);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    box-shadow: 
        0 2px 0 #2ea018,
        0 4px 10px rgba(71, 216, 42, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button-small:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 3px 0 #2ea018,
        0 6px 15px rgba(71, 216, 42, 0.4);
}

/* Spotlight Effects */
.spotlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 216, 42, 0.2) 0%, transparent 70%);
    animation: spotlight 8s linear infinite;
}

.spotlight-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.spotlight-2 {
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes spotlight {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.3;
    }
}

/* Content Boxes */
.content-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Table Styles */
table {
    border-collapse: collapse;
}

table th {
    background: linear-gradient(135deg, rgba(71, 216, 42, 0.2), rgba(71, 216, 42, 0.1));
    font-size: 0.9rem;
}

table td {
    font-size: 0.9rem;
}

tbody tr:hover {
    background: rgba(71, 216, 42, 0.05);
    transform: scale(1.01);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.available {
    background: rgba(71, 216, 42, 0.2);
    color: #47d82a;
    border: 1px solid rgba(71, 216, 42, 0.3);
}

/* Game Cards */
.game-card, .live-game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.game-card:hover, .live-game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-overlay, .live-game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 1rem;
    text-align: center;
}

.play-btn {
    background: #47d82a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: #3bc922;
    transform: scale(1.1);
}

/* Live Game Specific Styles */
.live-game-image {
    position: relative;
    height: 12rem;
    background: linear-gradient(135deg, rgba(71, 216, 42, 0.1), rgba(42, 83, 221, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.game-placeholder {
    opacity: 0.7;
}

/* Certification Section */
.certification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #47d82a, #3bc922);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(71, 216, 42, 0.3);
}

.certification-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 1rem;
}

/* Trust Cards */
.trust-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #47d82a, #3bc922);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(71, 216, 42, 0.3);
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #47d82a, #3bc922);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(71, 216, 42, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-emoji {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .category-card,
    .trust-card {
        padding: 1.5rem;
    }
    
    .cta-button-large,
    .cta-button-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    .content-box {
        padding: 1.5rem;
    }
    
    .game-card, .live-game-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .floating-emoji {
        font-size: 1.2rem;
    }
    
    .category-card,
    .trust-card {
        padding: 1rem;
    }
    
    .content-box {
        padding: 1rem;
    }
    
    table th,
    table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .grid.lg\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation Delays for Staggered Effects */
.game-card:nth-child(1), .live-game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2), .live-game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3), .live-game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4), .live-game-card:nth-child(4) { animation-delay:   { animation-delay: 0.3s; }
.game-card:nth-child(4), .live-game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5), .live-game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6), .live-game-card:nth-child(6) { animation-delay: 0.6s; }

/* Glow Effects */
.glow-green {
    box-shadow: 0 0 20px rgba(71, 216, 42, 0.5);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(42, 83, 221, 0.5);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Game Grid Responsive Adjustments */
@media (max-width: 1024px) {
    .grid.lg\\:grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .grid.lg\\:grid-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Table Responsive Enhancements */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

/* Enhanced Hover Effects */
.game-card img, .live-game-card img {
    transition: transform 0.3s ease;
}

.game-card:hover img, .live-game-card:hover img {
    transform: scale(1.1);
}

/* Certification Badge Animations */
.certification-item {
    animation: fadeInLeft 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.certification-item:nth-child(1) { animation-delay: 0.1s; }
.certification-item:nth-child(2) { animation-delay: 0.2s; }
.certification-item:nth-child(3) { animation-delay: 0.3s; }
.certification-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}