/*
 * Sidebar widget styles shared by single-games.php, single-boardgames.php,
 * and single-playthroughs.php.
 *
 * Extracted from the inline <style> blocks that lived in each template
 * pre-Phase-4. Rank-box styles are NOT here — those live in game-single.css
 * (.sidebar-rank-*). This file owns the box-art wrapper variants and the
 * Support Wakasm container.
 */

/* ---- Box art (right rail) ---- */

/* Video-game variant: sits flush at the top of the sidebar grid area. */
.game-box-art-banner {
    width: 340px;
    margin: 0 auto 20px auto;
    flex-shrink: 0;
}

.game-box-art-image {
    max-width: 100%;
    height: auto;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    border: 4px solid #4da44b;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.game-box-art-image:hover {
    transform: scale(1.05);
}

/* Board-game variant: pushes down so the art crosses the banner's
   green bottom line, matching the original BG layout intent. */
.boardgame-box-art-banner {
    width: 340px;
    margin: 90px auto 20px auto;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boardgame-box-art-image {
    max-width: 100%;
    max-height: 420px;
    height: auto;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7);
    border: 4px solid #4da44b;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.boardgame-box-art-image:hover {
    transform: scale(1.05);
}

/* Playthrough callers pass opts.link=true so the box art is a link to the
   source game page — strip the anchor's default underline / inherited blue. */
.sidebar-box-art-link,
.sidebar-box-art-link:hover,
.sidebar-box-art-link:focus,
.sidebar-box-art-link:visited {
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    border: 0;
}

/* ---- Playthrough side rails (left + right margin floats) ----
   Mirrors single-games.php's .game-content-wrapper + .game-left-sidebar
   pattern. The rails are SIBLINGS of the clip-pathed <article>, so they
   escape the clip-path cleanly and float into the outer page margins.

   - Left rail (rank box) appears at >=1400px viewport.
   - Right rail (box art + Support container) appears at >=1700px viewport
     to give the article column room to breathe.

   Below those breakpoints, the article remains the full-width hero
   (the video IS the visual focus) and the rail widgets are hidden — they
   only enrich wide viewports without disrupting the mobile/tablet stack. */
.playthrough-content-wrapper {
    position: relative;
}

.playthrough-side-rail {
    display: none;
}

@media (min-width: 1400px) {
    .playthrough-side-rail-left {
        display: block;
        position: absolute;
        top: 60px;
        left: 20px;
        width: 220px;
        z-index: 50;
        margin-left: calc(-50vw + 50%);
    }
}

@media (min-width: 1600px) {
    .playthrough-side-rail-left {
        width: 240px;
        left: 40px;
    }
}

@media (min-width: 1700px) {
    .playthrough-side-rail-right {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 340px;
        z-index: 50;
        margin-right: calc(-50vw + 50%);
    }
}

@media (min-width: 1920px) {
    .playthrough-side-rail-left {
        width: 260px;
        left: 60px;
    }

    .playthrough-side-rail-right {
        right: 60px;
    }
}

/* Inside the right rail the BG box-art's 90px push-down doesn't apply —
   there's no hero banner to cross. Reset so widgets stack flush. */
.playthrough-side-rail-right .game-box-art-banner,
.playthrough-side-rail-right .boardgame-box-art-banner {
    margin: 0;
}

/* ---- Support Wakasm container ---- */

.wakasm-support-container {
    width: 340px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #4da44b;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    box-sizing: border-box;
}

.wakasm-support-container * {
    box-sizing: border-box;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(77, 164, 75, 0.3);
}

.support-icon {
    font-size: 1.2rem;
}

.support-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4da44b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-disclosure {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pink-text {
    color: #ff69b4;
    font-style: normal;
}

.support-other-games {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(77, 164, 75, 0.3);
}

.other-games-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #87CEEB;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ---- Embedded shortcode overrides inside the container ---- */

.wakasm-support-container .wakasm-buy-game-compact {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.wakasm-support-container .buy-game-header,
.wakasm-support-container .buy-game-disclosure {
    display: none;
}

.wakasm-support-container .wakasm-buy-game,
.wakasm-support-container .wakasm-buy-game-compact {
    width: 100% !important;
    max-width: 100% !important;
}

.wakasm-support-container .buy-game-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.wakasm-support-container .buy-game-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 0.8rem;
    padding: 8px 10px;
    overflow: hidden;
    color: #fff !important;
}

.wakasm-support-container .buy-game-btn:hover {
    color: #fff !important;
}

.wakasm-support-container .buy-game-btn .affiliate-condition {
    font-size: 0.65rem;
    padding: 2px 5px;
}

.wakasm-support-container .wakasm-affiliate-sidebar {
    background: none;
    border: none;
    padding: 0;
}

.wakasm-support-container .affiliate-sidebar-header,
.wakasm-support-container .affiliate-sidebar-disclosure {
    display: none;
}

.wakasm-support-container .affiliate-sidebar-title {
    color: #e0e0e0 !important;
}

.wakasm-support-container .affiliate-sidebar-title:hover {
    color: #4da44b !important;
}

.wakasm-support-container .affiliate-sidebar-review-link {
    color: #87CEEB !important;
}

.wakasm-support-container .affiliate-sidebar-review-link:hover {
    color: #4da44b !important;
}
