/**
 * Game Page Template Styles
 * Layout with left content (50%) and right game block (50%)
 */

.game-page {
    padding: 0;
}

.game-layout {
    padding: 60px 20px;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, var(--tcm-hero-gradient-start, #0F172A) 0%, var(--tcm-hero-gradient-end, #334155) 124.56%),
                linear-gradient(0deg, rgba(0, 0, 0, var(--tcm-hero-overlay-opacity, 0.73)), rgba(0, 0, 0, var(--tcm-hero-overlay-opacity, 0.73)));
}

.game-container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

/* Left side - Content */
.game-content {
    flex: 1;
    max-width: 50%;
}

.game-content-wrapper {
    max-width: 600px;
    width: 100%;
}

.game-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.2;
}

.game-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #fff !important;
}

.game-description p {
    margin-bottom: 1rem;
    color: #fff !important;
    padding: 0 !important;
}

/* Right side - Game block with buttons */
.game-sidebar {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid #3B82F680;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px;
}

.game-buttons-container {
    background: var(--tcm-hero-bonus-bg, #0E1421);
    border: 1px solid #3B82F680;
    box-shadow: 0px 3px 37px 0px #3B82F633;
    border-radius: 16px;
    padding: 36px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Game logo */
.game-logo-wrapper {
    text-align: center;
    margin-bottom: 8px;
}

.game-logo {
    max-width: 200px;
    height: auto;
    display: inline-block;
    border-radius: 50px;
}

/* Game buttons - more specific selectors to override global styles */
.game-buttons-container .game-btn,
.game-buttons-container button.game-btn,
.game-buttons-container a.game-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 40px !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal !important;
}

/* Real money button - orange/yellow gradient */
.game-buttons-container .game-btn-real,
.game-buttons-container a.game-btn-real {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
    border-color: transparent !important;
}

.game-buttons-container .game-btn-real:hover,
.game-buttons-container a.game-btn-real:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4) !important;
}

/* Demo button - transparent with white border */
.game-buttons-container .game-btn-demo,
.game-buttons-container button.game-btn-demo {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    font-weight: 600 !important;
}

.game-buttons-container .game-btn-demo:hover,
.game-buttons-container button.game-btn-demo:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px) !important;
}

/* Age confirmation note */
.game-age-note {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 8px 0 0 0;
    padding: 0;
}

/* Demo game modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.game-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}

.game-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 5vh auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.game-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#game-demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .game-container {
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
    }
    
    .game-content,
    .game-sidebar {
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .game-buttons-container {
        min-width: auto;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .game-layout {
        padding: 40px 15px;
    }
    
    .game-container {
        padding: 0 10px;
        gap: 30px;
    }
    
    .game-title {
        font-size: 2rem;
    }
    
    .game-description {
        font-size: 1rem;
    }
    
    .game-buttons-container {
        padding: 24px;
        gap: 12px;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
    }
    
    .game-logo {
        max-width: 150px;
    }
    
    .game-buttons-container .game-btn,
    .game-buttons-container button.game-btn,
    .game-buttons-container a.game-btn {
        padding: 16px 20px !important;
        font-size: 1rem !important;
        min-height: 54px !important;
        word-wrap: break-word !important;
    }
}

@media (max-width: 480px) {
    .game-layout {
        padding: 30px 10px;
    }
    
    .game-container {
        padding: 0 5px;
        gap: 25px;
    }
    
    .game-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .game-description {
        font-size: 0.9375rem;
    }
    
    .game-buttons-container {
        padding: 20px;
        gap: 10px;
        border-radius: 12px;
        max-width: 340px;
        margin: 0 auto;
    }
    
    .game-logo {
        max-width: 120px;
    }
    
    .game-buttons-container .game-btn,
    .game-buttons-container button.game-btn,
    .game-buttons-container a.game-btn {
        padding: 14px 16px !important;
        font-size: 0.875rem !important;
        min-height: 50px !important;
        letter-spacing: 0.3px !important;
    }
    
    .game-age-note {
        font-size: 0.75rem;
    }
}
