/* Homepage-specific styling.
   Extracted from the inline <style> block in index.php so it is cached as a
   static asset instead of being re-sent with every page render. */

/* Download tab styling with green gradient */
#download_tab_custom.download_tab {
    background: linear-gradient(to bottom, #76b83e, #5a9a2f) !important;
    position: relative !important;
    cursor: pointer !important;
}

#download_tab_custom.download_tab:hover {
    background: linear-gradient(to bottom, #8fd34f, #76b83e) !important;
}

#download_tab_custom .pulldown {
    color: #fff !important;
}

/* Custom dropdown menu */
.custom_download_dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #76b83e, #5a9a2f);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

#download_tab_custom:hover .custom_download_dropdown {
    display: block;
}

.custom_download_dropdown a {
    display: block;
    padding: 8px 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 11px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.custom_download_dropdown a:last-child {
    border-bottom: none;
}

.custom_download_dropdown a:hover {
    background: linear-gradient(to bottom, #8fd34f, #76b83e);
}

.platform_img,
.platform_small {
    display: none !important;
}

.tab_discount,
.discount_pct,
.discount_block {
    display: none !important;
}

.genre_release {
    font-size: 0 !important;
}

.genre_release a {
    font-size: 11px;
}

/* Fix for tab content - hide old Steam store content */
.tab_content_ctn>div[id^="tab_"] {
    display: none;
}

.tab_content_ctn>div.tab-active {
    display: block !important;
}

/* Slide animations for tab transitions */
@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reserve space for headlines to prevent layout shift */
#headlines_container {
    min-height: 200px;
}

/* Ensure cases section prices are visible */
.special_block .discount_block {
    display: block !important;
}

/* Square profile pictures for leaderboard */
.leaderboard-avatar {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover !important;
    border-radius: 0 !important;
}

/* Natural size for skinDB images */
.skindb-image {
    max-width: 120px;
    max-height: 69px;
    object-fit: contain;
}
