/* =========================================================
   Retro Consoles Route – Page-specific styling
   File: /css/retroconsoles.css
   Mirrors the look/feel of steamdeck.css + gaming.css patterns
   ========================================================= */


/* =========================================================
   Hero – Retro Consoles Route
   ========================================================= */

.hero-retroconsoles {
    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;
}

/* Overlay for text contrast */
.hero-retroconsoles::before {
    content: "";
    position: absolute;
    inset: 0;
    /*
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.68),
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.20)
    );
    */
    pointer-events: none;
}

.hero-retroconsoles > .container {
    position: relative;
}

/* Tagline under H1 */
.hero-retroconsoles-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Intro text */
.hero-retroconsoles-intro {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   Breadcrumb – inside Retro Consoles 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);
}


/* =========================================================
   Retro Consoles Hero – CTA Button Contrast (Bootstrap vars)
   ========================================================= */

.hero-retroconsoles .hero-btn {
    --bs-btn-color: #c9ffe3;
    --bs-btn-bg: rgba(0, 0, 0, 0.35);
    --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: 600;
    backdrop-filter: saturate(130%);
}

@media (hover: hover) {
    .hero-retroconsoles .hero-btn:hover {
        transform: translateY(-1px);
    }
}

.hero-retroconsoles .hero-btn:focus-visible {
    outline: 2px solid #7dffb3;
    outline-offset: 2px;
}


/* =========================================================
   Retro Consoles – Panels (matching Steam Deck/Gaming behaviour)
   Scoped to this page via .hero-retroconsoles ~ main
   ========================================================= */

.hero-retroconsoles ~ main .route-panel {
    position: relative;
    overflow: hidden;

    border-left: 6px solid rgba(20, 108, 67, 0.80);
    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;
}

/* Hover */
@media (hover: hover) {
    .hero-retroconsoles ~ main .route-panel: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);
    }
}

/* Keyboard focus */
.hero-retroconsoles ~ main .route-panel: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);
}

/* CTA underline */
.hero-retroconsoles ~ main .route-panel-cta {
    font-weight: 500;
}

.hero-retroconsoles ~ main .route-panel:hover .route-panel-cta,
.hero-retroconsoles ~ main .route-panel:focus-within .route-panel-cta {
    text-decoration: underline;
}

/* Arrow micro-interaction */
.hero-retroconsoles ~ main .route-panel-cta i {
    transition: transform 0.15s ease;
}

.hero-retroconsoles ~ main .route-panel:hover .route-panel-cta i {
    transform: translateX(4px);
}

/* Cursor hint */
.hero-retroconsoles ~ main .route-panel {
    cursor: pointer;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-retroconsoles ~ main .route-panel,
    .hero-retroconsoles ~ main .route-panel-cta i {
        transition: none;
    }
}


/* =========================================================
   Retro Consoles – Panel watermark (subtle, optional)
   NOTE: Set this file path to whatever retro console image you choose.
   Default uses a generic placeholder filename.
   ========================================================= */

.hero-retroconsoles ~ main .route-panel::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.06;
    filter: contrast(1.03);
    pointer-events: none;
}

@media (min-width: 992px) {
    .hero-retroconsoles ~ main .route-panel::after {
        opacity: 0.08;
        background-size: 340px auto;
    }
}

@media (max-width: 575px) {
    .hero-retroconsoles ~ main .route-panel::after {
        display: none;
    }
}

@media (hover: hover) {
    .hero-retroconsoles ~ main .route-panel:hover::after {
        opacity: 0.11;
        filter: contrast(1.06);
    }
}

.hero-retroconsoles ~ main .route-panel:focus-within::after {
    opacity: 0.11;
    filter: contrast(1.06);
}


/* =========================================================
   Mobile tuning
   ========================================================= */

@media (max-width: 576px) {
    .hero-retroconsoles .display-5 {
        font-size: calc(1.6rem + 2vw);
    }
}
