/* =========================================================
   Modern Gaming Route – Page-specific styling
   File: /css/modern.css
   Notes: No linear-gradient heroes (per site rule)
   ========================================================= */


/* =========================================================
   Hero – Modern Gaming Route
   ========================================================= */

.hero-modern {
    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.55);
    overflow: hidden;
}

.hero-modern > .container {
    position: relative;
}

/* Breadcrumb inside hero */
.hero-modern .breadcrumb {
    font-size: 0.95rem;
}

.hero-modern .breadcrumb a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.hero-modern .breadcrumb a:hover,
.hero-modern .breadcrumb a:focus {
    color: #9dffcf;
    text-decoration: underline;
}

.hero-modern .breadcrumb .active {
    color: rgba(255, 255, 255, 0.60);
}

.hero-modern .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.45);
}

/* Tagline under H1 */
.hero-modern-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Intro text */
.hero-modern-intro {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   Panels – Modern Gaming (parity with retro routes)
   ========================================================= */

.route-panel-modern {
    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;
}

/* Modern Gaming watermark */
.route-panel-modern::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;
    filter: contrast(1.03);
    pointer-events: none;
}

/* Larger screens: slightly stronger presence */
@media (min-width: 992px) {
    .route-panel-modern::after {
        opacity: 0.09;
        background-size: 360px auto;
    }
}

/* Hide watermark on very small screens */
@media (max-width: 575px) {
    .route-panel-modern::after {
        display: none;
    }
}

/* Hover */
@media (hover: hover) {
    .route-panel-modern: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-modern:hover::after {
        opacity: 0.12;
        filter: contrast(1.06);
    }
}

/* Keyboard focus */
.route-panel-modern:focus-within {
    border-left-color: rgba(77, 255, 154, 0.95);
    outline: 3px solid rgba(77, 255, 154, 0.6);
    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-modern:focus-within::after {
    opacity: 0.12;
    filter: contrast(1.06);
}

/* CTA underline + arrow motion (parity) */
.route-panel-modern .route-panel-cta {
    font-weight: 500;
}

.route-panel-modern:hover .route-panel-cta,
.route-panel-modern:focus-within .route-panel-cta {
    text-decoration: underline;
}

.route-panel-modern .route-panel-cta i {
    transition: transform 0.15s ease;
}

.route-panel-modern:hover .route-panel-cta i {
    transform: translateX(4px);
}

.route-panel-modern {
    cursor: pointer;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .route-panel-modern,
    .route-panel-modern .route-panel-cta i {
        transition: none;
    }
}


/* =========================================================
   Featured panel refinements (optional, but safe)
   ========================================================= */

.route-panel-modern.route-panel-featured {
    border-left-width: 8px;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.25);
}

/* Keep featured badge crisp */
.route-panel-modern .badge.bg-success {
    box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.12);
    letter-spacing: 0.02em;
}


/* =========================================================
   Mobile tuning
   ========================================================= */

@media (max-width: 576px) {
    .hero-modern .display-5 {
        font-size: calc(1.6rem + 2vw);
    }
}
