/* Live Casino Page Styles */

/* Live Casino Hero */
.live-hero {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #0f0f1e;
}

.live-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><path d="M10,40 L40,10 L70,40 L40,70 Z" stroke="%233c2d48" stroke-width="2" fill="none"/><circle cx="40" cy="40" r="5" fill="%239c27b0" opacity="0.5"/></svg>'),
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><rect x="20" y="20" width="20" height="20" stroke="%233c2d48" stroke-width="1" fill="none"/></svg>');
    opacity: 0.05;
    z-index: 0;
}

.live-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(15,15,30,0.9) 0%, rgba(43,17,71,0.8) 100%);
    z-index: 1;
}

.live-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.live-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, #bb86fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeInDown 0.8s ease;
}

.live-hero-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s 0.2s both;
}

.live-hero-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInDown 0.8s 0.3s both;
}

.live-hero-cta {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 0.8s 0.4s both;
}

.live-counter {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 0.8s 0.5s both;
}

.counter-item {
    text-align: center;
}

.counter-item .counter {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
    display: block;
}

.counter-item span:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Top Games Section */
.top-games {
    padding: 80px 0;
    background-color: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.live-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.live-game-card {
    background-color: var(--dark-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    height: 100%;
    animation: fadeInUp 0.5s ease both;
}

.live-game-card:nth-child(1) { animation-delay: 0.1s; }
.live-game-card:nth-child(2) { animation-delay: 0.2s; }
.live-game-card:nth-child(3) { animation-delay: 0.3s; }
.live-game-card:nth-child(4) { animation-delay: 0.4s; }
.live-game-card:nth-child(5) { animation-delay: 0.5s; }

.live-game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.live-game-img {
    height: 180px;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

/* Generate background patterns for game cards using SVG and gradients */
.live-game-img.blackjack {
    background: linear-gradient(135deg, #1e1e1e, #333333);
    background-image: url('images/12.png');
}

.live-game-img.roulette {
    background: linear-gradient(135deg, #6b0f0f, #8b0000);
    background-image: url('images/23.webp');
}

.live-game-img.baccarat {
    background: linear-gradient(135deg, #004d4d, #006666);
    background-image: url('images/22.webp');
}

.live-game-img.andar-bahar {
    background: linear-gradient(135deg, #4d3319, #664400);
    background-image: url('images/9.webp');
}

.live-game-img.tramp-day {
    background: linear-gradient(135deg, #2b0a3a, #4b0082);
    background-image: url('images/4.jpg');
}

.live-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00cc66;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.players-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-game-content {
    padding: 20px;
}

.live-game-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    height: 44px; /* Consistent height for two lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.game-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.game-detail i {
    color: var(--primary);
}

.dealer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.dealer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dealer-avatar i {
    font-size: 20px;
    color: var(--primary);
}

.dealer-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.btn-join-table {
    display: block;
    text-align: center;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 12px 0;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
}

.btn-join-table:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(156, 39, 176, 0.6);
}

/* Why Love Section */
.why-love {
    padding: 80px 0;
    background-color: var(--dark-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 36px;
    color: #fff;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.live-casino-closing {
    text-align: center;
}

.live-casino-closing p {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .live-hero {
        padding: 80px 0;
    }

    .live-hero-content h1 {
        font-size: 40px;
    }

    .live-counter {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .live-hero-content h1 {
        font-size: 32px;
    }

    .live-hero-content h2 {
        font-size: 24px;
    }

    .live-counter {
        flex-direction: column;
        gap: 20px;
    }

    .counter-item .counter {
        font-size: 30px;
    }

    .live-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .live-hero-cta .btn {
        width: 100%;
        max-width: 250px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 576px) {
    .live-hero-content h1 {
        font-size: 28px;
    }

    .live-hero-content p {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }
} 