/*
Theme Name: Hello Elementor Child - ThePopular.Games
Description: Child theme for Hello Elementor with gaming functionality
Author: ThePopular.Games
Template: hello-elementor
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../hello-elementor/style.css");

/* Custom gaming styles */
.game-load-overlay {
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: auto;
    cursor: pointer;
}

.game-load-overlay:hover {
    background: rgba(0,0,0,0.7) !important;
}

/* Ensure iframe is properly positioned */
.game-frame {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin: 20px 0;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Game player section styles */
.game-player-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.game-player-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.game-controls-info {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.game-controls-info h3 {
    margin-top: 0;
    color: #333;
}

.game-controls-info p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Game card styles */
.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: auto;
    display: block;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    background: #007cba;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card-content {
    padding: 20px;
}

.game-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.genre-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.age-rating {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.controls-icon {
    background: #6c757d;
    color: white;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.game-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-frame {
        margin: 10px 0;
    }
    
    .game-player-section {
        padding: 20px 0;
    }
    
    .game-controls-info {
        margin-top: 20px;
        padding: 15px;
    }
}
