/* =========================================================
   Handheld Gaming Route – Page-specific styling
   File: /css/handheld.css
   Notes: No linear-gradient heroes (per site rule)
   ========================================================= */


/* =========================================================
   Hero – Handheld Gaming Route
   ========================================================= */

.hero-handheld {
    position: relative;
    border-bottom: 3px solid rgba(25, 135, 84, 0.55);
    overflow: hidden;
}

/* Solid overlay for contrast (NO gradients) */
.hero-handheld::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-handheld > .container {
    position: relative;
}

/* Breadcrumb inside hero */
.hero-handheld .breadcrumb {
    font-size: 0.95rem;
}

.hero-handheld .breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.hero-handheld .breadcrumb a:hover,
.hero-handheld .breadcrumb a:focus {
    color: #9dffcf;
    text-decoration: underline;
}

.hero-handheld .breadcrumb .active {
    color: rgba(255, 255, 255, 0.60);
}

.hero-handheld .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* Tagline under H1 */
.hero-handheld-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Intro text */
.hero-handheld-intro {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   Panels – Handheld Gaming (parity)
   Target: <article class="route-panel route-panel-handheldhub ...">
   ========================================================= */

.route-panel-handheldhub {
    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:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-left-color 0.15s ease;
}

/* Handheld watermark (same asset you used elsewhere) */
.route-panel-handheldhub::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;
    filter: contrast(1.03);
    pointer-events: none;
}

/* Larger screens: slightly stronger presence */
@media (min-width: 992px) {
    .route-panel-handheldhub::after {
        opacity: 0.09;
        background-size: 300px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-handheldhub::after {
        display: none;
    }
}

/* Hover */
@media (hover: hover) {
    .route-panel-handheldhub:hover {
        transform: translateY(-4px);
        border-left-color: rgba(77, 255, 154, 0.95);
        box-shadow: 0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
    }

    .route-panel-handheldhub:hover::after {
        opacity: 0.12;
        filter: contrast(1.06);
    }
}

/* Keyboard focus */
.route-panel-handheldhub:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline: 3px solid rgba(77, 255, 154, 0.60);
    outline-offset: 2px;
    box-shadow:
        0 0 0 0.25rem rgba(77, 255, 154, 0.18),
        0 0.85rem 1.6rem rgba(0, 0, 0, 0.22);
}

.route-panel-handheldhub:focus-within::after {
    opacity: 0.12;
    filter: contrast(1.06);
}

/* CTA underline + arrow motion */
.route-panel-handheldhub .route-panel-cta {
    font-weight: 500;
}

.route-panel-handheldhub:hover .route-panel-cta,
.route-panel-handheldhub:focus-within .route-panel-cta {
    text-decoration: underline;
}

.route-panel-handheldhub .route-panel-cta i {
    transition: transform 0.15s ease;
}

.route-panel-handheldhub:hover .route-panel-cta i {
    transform: translateX(4px);
}

.route-panel-handheldhub {
    cursor: pointer;
}

/* Featured panel refinement (safe + consistent) */
.route-panel-handheldhub.route-panel-featured {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
}

/* Badge polish */
.route-panel-handheldhub .badge.bg-success {
    box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.12);
    letter-spacing: 0.02em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .route-panel-handheldhub,
    .route-panel-handheldhub .route-panel-cta i {
        transition: none;
    }
}


/* =========================================================
   Mobile tuning
   ========================================================= */

@media (max-width: 576px) {
    .hero-handheld .display-5 {
        font-size: calc(1.6rem + 2vw);
    }
}
