/* ─── Shared game-page styles ──────────────────────────────────────────────
   Include this stylesheet on every individual game page (e.g. chainedwheels.php,
   mygame.php). It covers the header banner, content sections, screenshot slider,
   lightbox, social buttons, and mobile buttons.
   ─────────────────────────────────────────────────────────────────────────── */

/* Header Banner */
.header-banner {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.header-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.7));
}

.header-banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: #fff;
    z-index: 10;
}

.header-banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-banner-content p {
    font-size: 18px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Header image placement (bottom-left) */
.header-banner-image {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 10;
    max-width: 320px;
    width: 50%;
}

.header-banner-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Tablet */
@media (max-width: 1120px) {
    .header-banner-image {
        max-width: 220px;
        width: 40%;
        left: 20px;
        bottom: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-banner-image {
        max-width: 260px;
        width: 70%;
        left: 15px;
        bottom: 15px;
    }
}

/* Main Content Area */
.main-content {
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title Section */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.section-paragraph {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: left;
}

/* Two Column Section */
.two-column-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.text-column {
    flex: 1;
    text-align: center;
}

.text-column h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.text-column p {
    text-align: left;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.image-column {
    flex: 1;
    text-align: center;
}

.image-column img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Press Kit Section */
.presskit-section {
    margin-top: 80px;
    padding: 50px 40px;
    background-color: #f7f7f7;
    border-left: 4px solid #46aed0;
    text-align: center;
}

.presskit-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.presskit-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.presskit-button {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: #46aed0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #46aed0;
    transition: all 0.3s ease;
}

.presskit-button:hover {
    background-color: #46aed0;
    color: #fff;
}

.presskit-button i {
    margin-right: 10px;
}

/* Screenshots Slider */
.screenshots-section {
    margin: 60px auto;
    max-width: 800px;
}

.screenshots-slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.screenshots-container img {
    cursor: pointer;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #46aed0;
}

.screenshots-container {
    display: flex;
    transition: transform 0.5s ease;
}

.screenshots-container img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #46aed0;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #46aed0;
}

/* Responsive */
@media (max-width: 991px) {
    .header-banner {
        height: 300px;
    }

    .header-banner-content h1 {
        font-size: 32px;
    }

    .two-column-section {
        flex-direction: column;
    }

    .text-column, .image-column {
        width: 100%;
    }
}

/* Header banner social buttons (bottom-right) */
.header-socials {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 20;
    display: flex;
    gap: 12px;
}

.header-socials a {
    min-width: 50px;
    height: 50px;
    padding: 0 18px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(0,0,0,0.45);
    transition: all 0.25s ease;
}

.header-socials a {
    color: #ffffff !important;
}

.header-socials a i {
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1;
}

.header-socials a:hover {
    transform: translateY(-2px);
}

/* Platform-specific hover colours */
.header-socials a.youtube:hover    { background: rgba(255, 0, 0, 0.25);            border-color: #ff0000; }
.header-socials a.tiktok:hover     { background: rgba(0, 0, 0, 0.4);               border-color: #69c9d0; }
.header-socials a.instagram:hover  { background: linear-gradient(135deg, rgba(225,48,108,0.25), rgba(193,53,132,0.25), rgba(253,29,29,0.25)); border-color: #e1306c; }
.header-socials a.twitter:hover    { background: rgba(0, 0, 0, 0.4);               border-color: #ffffff; }
.header-socials a.reddit:hover     { background: rgba(255, 69, 0, 0.25);           border-color: #ff4500; }
.header-socials a.facebook:hover   { background: rgba(59, 89, 152, 0.25);          border-color: #3b5998; }

/* Steam wishlist button — top left of banner */
.header-steam {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 20;
    display: inline-block;
}

.header-steam img {
    height: 56px;
    width: auto;
    transition: transform 0.25s ease;
}

.header-steam:hover img {
    transform: scale(1.06);
}

@media (max-width: 991px) {
    .header-steam {
        top: 15px;
        left: 15px;
    }

    .header-steam img {
        height: 48px;
    }
}

/* On narrow screens hide the in-banner buttons; show the mobile section instead */
@media (max-width: 1120px) {
    .header-steam,
    .header-socials {
        display: none !important;
    }
}

/* Mobile / Tablet buttons section (rendered after the banner) */
.mobile-buttons {
    display: none;
    background: #1a1a1a;
    padding: 20px;
    text-align: center;
}

@media (max-width: 1120px) {
    .mobile-buttons {
        display: block;
    }
}

.mobile-buttons .mobile-steam {
    display: inline-block;
    margin-bottom: 15px;
}

.mobile-buttons .mobile-steam img {
    height: 50px;
    width: auto;
}

.mobile-buttons .mobile-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mobile-buttons .mobile-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    transition: all 0.25s ease;
}

.mobile-buttons .mobile-socials a i {
    color: #fff !important;
    font-size: 18px;
}

.mobile-buttons .mobile-socials a.youtube:hover    { background: rgba(255, 0, 0, 0.3);       border-color: #ff0000; }
.mobile-buttons .mobile-socials a.tiktok:hover     { background: rgba(0, 0, 0, 0.5);          border-color: #69c9d0; }
.mobile-buttons .mobile-socials a.instagram:hover  { background: rgba(225, 48, 108, 0.3);     border-color: #e1306c; }
.mobile-buttons .mobile-socials a.twitter:hover    { background: rgba(0, 0, 0, 0.5);          border-color: #fff; }
.mobile-buttons .mobile-socials a.reddit:hover     { background: rgba(255, 69, 0, 0.3);       border-color: #ff4500; }
.mobile-buttons .mobile-socials a.facebook:hover   { background: rgba(59, 89, 152, 0.3);      border-color: #3b5998; }
