/* =========================================================
   Gaming Route – Page-specific styling
   File: /css/gaming.css
   ========================================================= */


/* =========================================================
   Hero – Gaming Route
   ========================================================= */

.hero-gaming {
    position: relative;
    background-image: url('/img/backgrounds/darkgreen-circuitboard-bg-trans_125x125.png');
    background-color: #0b0f0b; /* fallback */
    border-bottom: 3px solid rgba(25, 135, 84, 0.6);
    overflow: hidden;
}

/* Overlay to ensure text contrast over pattern */
.hero-gaming::before {
    content: "";
    position: absolute;
    inset: 0;
    /*
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.50) 55%,
        rgba(0, 0, 0, 0.25)
    );
    */
    pointer-events: none;
}

.hero-gaming > .container {
    position: relative;
}

/* Tagline under H1 */
.hero-gaming-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Body intro text */
.hero-gaming-intro {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   Gaming Hero – Button Contrast
   ========================================================= */

.hero-gaming .hero-btn {
    --bs-btn-color: #9dffcf;
    --bs-btn-border-color: #4dff9a;
    --bs-btn-hover-color: #0b0f0b;
    --bs-btn-hover-bg: #4dff9a;
    --bs-btn-hover-border-color: #4dff9a;
    --bs-btn-focus-shadow-rgb: 77, 255, 154;

    border-width: 2px;
    font-weight: 500;
    backdrop-filter: saturate(120%);
}

@media (hover: hover) {
    .hero-gaming .hero-btn:hover {
        transform: translateY(-1px);
    }
}

.hero-gaming .hero-btn:focus-visible {
    outline: 2px solid #7dffb3;
    outline-offset: 2px;
}


/* =========================================================
   Breadcrumb – Gaming Route
   ========================================================= */

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
    color: #9dffcf;
    text-decoration: underline;
}

.breadcrumb .active {
    color: rgba(255, 255, 255, 0.65);
}

/* Make Bootstrap’s breadcrumb divider readable on dark bg */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   Breadcrumb – inside Gaming Hero
   ========================================================= */

.hero-breadcrumb .breadcrumb {
    font-size: 0.95rem;
}

.hero-breadcrumb .breadcrumb-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.hero-breadcrumb .breadcrumb-link:hover,
.hero-breadcrumb .breadcrumb-link:focus {
    color: #9dffcf;
    text-decoration: underline;
}

.hero-breadcrumb .breadcrumb .active {
    color: rgba(255, 255, 255, 0.60);
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   Gaming Route – Featured Panel (Steam Deck)
   ========================================================= */

.route-panel-steamdeck {
    position: relative;
    overflow: hidden;

    border-left-width: 8px;
    border-left-color: rgba(20, 108, 67, 0.9); /* dark green default */
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle featured gradient */
.route-panel-steamdeck.route-panel-featured {
    background: linear-gradient(
        90deg,
        rgba(25, 135, 84, 0.06),
        rgba(255, 255, 255, 1) 38%
    );
}

/* Steam Deck background watermark */
.route-panel-steamdeck::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/img/gaming/steamdeck-bg.png');
    background-repeat: no-repeat;
    background-position: right -20px center;
    background-size: 320px auto;

    opacity: 0.10;              /* OPTION A: more visible */
    filter: contrast(1.05);     /* OPTION A: micro-contrast */
    pointer-events: none;
}

/* Larger screens: slightly stronger presence */
@media (min-width: 992px) {
    .route-panel-steamdeck::after {
        opacity: 0.12;
        background-size: 360px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-steamdeck::after {
        display: none;
    }
}

/* Icon badge */
.route-panel-steamdeck .bi-controller {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    border-left: 8px solid rgba(20, 108, 67, 0.9);
}

/* Featured badge */
.route-panel-steamdeck .badge.bg-success {
    box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.12);
    letter-spacing: 0.02em;
}

/* CTA emphasis */
.route-panel-steamdeck .route-panel-cta {
    font-weight: 600;
}

/* Hover / focus activation */
@media (hover: hover) {
    .route-panel-steamdeck:hover {
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
    }

    /* OPTION C: image reveal on hover */
    .route-panel-steamdeck:hover::after {
        opacity: 0.16;
        filter: contrast(1.08);
    }
}

.route-panel-steamdeck:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline-color: rgba(77, 255, 154, 0.75);
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.18),
        0 1rem 2rem rgba(0, 0, 0, 0.28);
}

/* =========================================================
   Gaming Route – Panel: Retro Consoles
   Target: <article class="route-panel route-panel-retroconsoles ...">
   ========================================================= */

.route-panel-retroconsoles {
    position: relative;
    overflow: hidden;

    border-left: 8px solid rgba(20, 108, 67, 0.85); /* dark green default */
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

/* Retro Consoles watermark */
.route-panel-retroconsoles::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/img/gaming/retro-consoles-bg.png');
    background-repeat: no-repeat;
    background-position: right -10px center;
    background-size: 300px auto;

    opacity: 0.08;          /* slightly subtler than Steam Deck */
    filter: contrast(1.04);
    pointer-events: none;
}

/* Large screens: a touch stronger */
@media (min-width: 992px) {
    .route-panel-retroconsoles::after {
        opacity: 0.10;
        background-size: 340px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-retroconsoles::after {
        display: none;
    }
}

/* Hover / focus activation */
@media (hover: hover) {
    .route-panel-retroconsoles:hover {
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
    }

    /* Gentle reveal on hover */
    .route-panel-retroconsoles:hover::after {
        opacity: 0.13;
        filter: contrast(1.07);
    }
}

.route-panel-retroconsoles:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline-color: rgba(77, 255, 154, 0.70);
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.16),
        0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
}

/* =========================================================
   Gaming Route – Panel: Retro Computers
   Target: <article class="route-panel route-panel-retrocomputers ...">
   ========================================================= */

.route-panel-retrocomputers {
    position: relative;
    overflow: hidden;

    border-left: 8px solid rgba(20, 108, 67, 0.85); /* dark green default */
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

/* Retro Computers watermark */
.route-panel-retrocomputers::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/img/gaming/retro-computers-bg.png');
    background-repeat: no-repeat;
    background-position: right -10px center;
    background-size: 300px auto;

    opacity: 0.08;          /* same base as Retro Consoles */
    filter: contrast(1.04);
    pointer-events: none;
}

/* Larger screens: slightly stronger presence */
@media (min-width: 992px) {
    .route-panel-retrocomputers::after {
        opacity: 0.10;
        background-size: 340px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-retrocomputers::after {
        display: none;
    }
}

/* Hover / focus activation */
@media (hover: hover) {
    .route-panel-retrocomputers:hover {
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
    }

    /* Gentle reveal on hover */
    .route-panel-retrocomputers:hover::after {
        opacity: 0.13;
        filter: contrast(1.07);
    }
}

.route-panel-retrocomputers:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline-color: rgba(77, 255, 154, 0.70);
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.16),
        0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
}

/* =========================================================
   Gaming Route – Panel: Modern Gaming
   Target: <article class="route-panel route-panel-moderngaming ...">
   ========================================================= */

.route-panel-moderngaming {
    position: relative;
    overflow: hidden;

    border-left: 8px solid rgba(20, 108, 67, 0.85); /* dark green default */
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.18);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

/* Modern Gaming watermark */
.route-panel-moderngaming::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/img/gaming/modern-gaming-bg.png');
    background-repeat: no-repeat;
    background-position: right -10px center;
    background-size: 320px auto;

    opacity: 0.07;          /* a touch subtler than retro */
    filter: contrast(1.03);
    pointer-events: none;
}

/* Larger screens: slightly stronger presence */
@media (min-width: 992px) {
    .route-panel-moderngaming::after {
        opacity: 0.09;
        background-size: 360px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-moderngaming::after {
        display: none;
    }
}

/* Hover / focus activation */
@media (hover: hover) {
    .route-panel-moderngaming:hover {
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
    }

    .route-panel-moderngaming:hover::after {
        opacity: 0.12;
        filter: contrast(1.06);
    }
}

.route-panel-moderngaming:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline-color: rgba(77, 255, 154, 0.70);
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.16),
        0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
}

/* =========================================================
   Gaming Route – Panel: Handheld Gaming
   Target: <article class="route-panel route-panel-handheld ...">
   ========================================================= */

.route-panel-handheld {
    position: relative;
    overflow: hidden;

    border-left: 8px solid rgba(20, 108, 67, 0.80); /* slightly softer default */
    box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.16);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

/* Handheld Gaming watermark */
.route-panel-handheld::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/img/gaming/handheld-bg.png');
    background-repeat: no-repeat;
    background-position: right -5px center;
    background-size: 260px auto;

    opacity: 0.07;              /* lightest of all image panels */
    filter: contrast(1.03);
    pointer-events: none;
}

/* Larger screens: modest increase */
@media (min-width: 992px) {
    .route-panel-handheld::after {
        opacity: 0.09;
        background-size: 300px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-handheld::after {
        display: none;
    }
}

/* Hover / focus activation */
@media (hover: hover) {
    .route-panel-handheld:hover {
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 0.75rem 1.4rem rgba(0, 0, 0, 0.20);
    }

    .route-panel-handheld:hover::after {
        opacity: 0.12;
        filter: contrast(1.06);
    }
}

.route-panel-handheld:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline-color: rgba(77, 255, 154, 0.65);
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.14),
        0 0.75rem 1.4rem rgba(0, 0, 0, 0.20);
}

/* =========================================================
   Gaming Route – Panel: Arcade & Mini Systems
   Target: <article class="route-panel route-panel-arcade ...">
   ========================================================= */

.route-panel-arcade {
    position: relative;
    overflow: hidden;

    border-left: 8px solid rgba(20, 108, 67, 0.80);
    box-shadow: 0 0.3rem 0.9rem rgba(0, 0, 0, 0.16);
    transition: border-left-color 0.2s ease, box-shadow 0.2s ease;
}

/* Arcade watermark */
.route-panel-arcade::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/img/gaming/arcade-bg.png');
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 240px auto;

    opacity: 0.07;          /* similar to Handheld */
    filter: contrast(1.03);
    pointer-events: none;
}

/* Larger screens: slightly stronger presence */
@media (min-width: 992px) {
    .route-panel-arcade::after {
        opacity: 0.09;
        background-size: 280px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-arcade::after {
        display: none;
    }
}

/* Hover / focus activation */
@media (hover: hover) {
    .route-panel-arcade:hover {
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 0.75rem 1.4rem rgba(0, 0, 0, 0.20);
    }

    .route-panel-arcade:hover::after {
        opacity: 0.12;
        filter: contrast(1.06);
    }
}

.route-panel-arcade:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline-color: rgba(77, 255, 154, 0.65);
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.14),
        0 0.75rem 1.4rem rgba(0, 0, 0, 0.20);
}

/* =========================================================
   Mobile tuning
   ========================================================= */

@media (max-width: 576px) {
    .hero-gaming .display-5 {
        font-size: calc(1.6rem + 2vw);
    }
}
