/* Game Preview Block Styles */

.space-game-preview-block {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.space-game-preview-block::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: inherit;
    z-index: 1;
    filter: blur(20px) brightness(0.7);
}


.space-game-preview-block-ins.space-page-wrapper {
    padding: 20px 0;
}

.space-game-preview-container {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.space-game-preview-image-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    overflow: hidden;
    z-index: 3;
}

.space-game-preview-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.space-game-preview-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.space-game-preview-image-container:hover .space-game-preview-overlay {
    opacity: 1;
}

.space-game-preview-image-container:hover .space-game-preview-image {
    transform: scale(1.05);
}

.space-game-preview-play-button {
    position: static;
    transform: none;
}

.space-game-play-btn {
    background: #6f14c9;
    border: none;
    color: white;
    padding: 17px 40px;
    font-size: 1.333em;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(111, 20, 201, 0.3);
    min-width: 160px;
}

.space-game-play-btn:hover {
    background: #8B2AE8;
    box-shadow: 0 6px 25px rgba(111, 20, 201, 0.4);
    transform: translateY(-2px);
}

.space-game-play-btn:active {
    transform: translateY(0);
}

.space-game-play-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.space-game-play-btn i {
    font-size: 16px;
}

.space-game-iframe-content {
    z-index: 3;
    position: relative;
}

.space-game-iframe-container {
    width: 100%;
    height: 100%;
}

.space-game-iframe-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .space-game-preview-image-container {
        min-height: 300px;
    }
    
    .space-game-play-btn {
        padding: 15px 30px;
        font-size: 1.1em;
        min-width: 140px;
    }
    
    .space-game-iframe-container iframe {
        height: 400px;
    }
}

@media screen and (max-width: 480px) {
    .space-game-preview-image-container {
        min-height: 250px;
    }
    
    .space-game-play-btn {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 120px;
    }
    
    .space-game-iframe-container iframe {
        height: 350px;
    }
}
@media screen and (max-width: 375px) {
    .space-game-preview-image-container {
        min-height: 190px;
    }
}
