/* SEO-Optimized Game Layout */

/* Ensure all content is visible to search engines */
.seo-game-info-section,
.seo-related-games-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

/* Style the SEO-optimized game info section */
.seo-game-info-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.seo-game-info-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* Style the SEO-optimized related games section */
.seo-related-games-section {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 2px solid #e9ecef;
}

.seo-related-games-section h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

/* Ensure images are not lazy-loaded for SEO */
.seo-related-games-section img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove any lazy loading classes that might hide content */
.seo-related-games-section .lazyload,
.seo-related-games-section .lazyloading,
.seo-related-games-section .lazyloaded {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure game cards are properly structured for SEO */
.seo-related-games-section .space-units-archive-item {
    margin-bottom: 20px;
}

.seo-related-games-section .game-card-link {
    display: block;
    text-decoration: none;
}

.seo-related-games-section .game-developer-overlay {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    position: absolute;
    bottom: 30px;
    left: 10px;
    border-radius: 4px;
    font-size: 12px;
}

.seo-related-games-section .game-rtp-overlay {
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 5px 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Mobile responsiveness */
@media screen and (max-width: 767px) {
    .seo-game-info-section,
    .seo-related-games-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .seo-game-info-section h3,
    .seo-related-games-section h3 {
        font-size: 16px;
    }
    
    .seo-related-games-section .space-units-archive-item {
        width: 50% !important;
        box-sizing: border-box;
        padding: 0 10px;
    }
}

@media screen and (max-width: 479px) {
    .seo-related-games-section .space-units-archive-item {
        width: 100% !important;
        margin-bottom: 15px;
    }
}

/* Ensure sidebar game info is always visible on desktop */
@media screen and (min-width: 768px) {
    .space-sidebar-section .game-info {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
    }
}

/* Hide mobile/desktop specific wrappers to avoid duplicate content */
.space-mobile-view,
.space-desktop-view {
    /* Let CSS media queries handle visibility instead of hiding completely */
}

@media screen and (max-width: 767px) {
    .space-desktop-view {
        display: none !important;
    }
    .space-mobile-view {
        display: block !important;
    }
}

@media screen and (min-width: 768px) {
    .space-mobile-view {
        display: none !important;
    }
    .space-desktop-view {
        display: block !important;
    }
}

/* Structured data friendly styling */
.seo-game-info-section .game-info-tbl__item {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.seo-game-info-section .game-info-tbl__key {
    font-weight: 600;
    color: #495057;
    display: inline-block;
    min-width: 100px;
    margin-right: 10px;
}

.seo-game-info-section .game-info-tbl__val {
    color: #212529;
}

.seo-game-info-section .game-info-tbl__val a {
    color: #007bff;
    text-decoration: none;
}

.seo-game-info-section .game-info-tbl__val a:hover {
    text-decoration: underline;
}