/* =========================================================
   Retro Computers Route – Page-specific styling
   File: /css/retro-computers.css
   Parity with retro-consoles.css
   ========================================================= */


/* =========================================================
   Hero – Retro Computers Route
   ========================================================= */

.hero-retrocomputers {
    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-retrocomputers > .container {
    position: relative;
}

/* Tagline under H1 */
.hero-retrocomputers-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

/* Intro text */
.hero-retrocomputers-intro {
    color: rgba(255, 255, 255, 0.85);
}


/* =========================================================
   Breadcrumb – inside Retro Computers 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 Computers Hero – CTA Buttons
   ========================================================= */

.hero-retrocomputers .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-retrocomputers .hero-btn:hover {
        transform: translateY(-1px);
    }
}

.hero-retrocomputers .hero-btn:focus-visible {
    outline: 2px solid #7dffb3;
    outline-offset: 2px;
}


/* =========================================================
   Retro Computers – Panels
   ========================================================= */

.hero-retrocomputers ~ 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-retrocomputers ~ 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-retrocomputers ~ 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 */
.hero-retrocomputers ~ main .route-panel-cta {
    font-weight: 500;
}

.hero-retrocomputers ~ main .route-panel:hover .route-panel-cta,
.hero-retrocomputers ~ main .route-panel:focus-within .route-panel-cta {
    text-decoration: underline;
}

/* Arrow motion */
.hero-retrocomputers ~ main .route-panel-cta i {
    transition: transform 0.15s ease;
}

.hero-retrocomputers ~ main .route-panel:hover .route-panel-cta i {
    transform: translateX(4px);
}

.hero-retrocomputers ~ main .route-panel {
    cursor: pointer;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-retrocomputers ~ main .route-panel,
    .hero-retrocomputers ~ main .route-panel-cta i {
        transition: none;
    }
}


/* =========================================================
   Retro Computers – Watermark
   ========================================================= */

.hero-retrocomputers ~ main .route-panel::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.06;
    filter: contrast(1.03);
    pointer-events: none;
}

@media (min-width: 992px) {
    .hero-retrocomputers ~ main .route-panel::after {
        opacity: 0.08;
        background-size: 340px auto;
    }
}

@media (max-width: 575px) {
    .hero-retrocomputers ~ main .route-panel::after {
        display: none;
    }
}

@media (hover: hover) {
    .hero-retrocomputers ~ main .route-panel:hover::after {
        opacity: 0.11;
        filter: contrast(1.06);
    }
}

.hero-retrocomputers ~ main .route-panel:focus-within::after {
    opacity: 0.11;
    filter: contrast(1.06);
}


/* =========================================================
   Mobile tuning
   ========================================================= */

@media (max-width: 576px) {
    .hero-retrocomputers .display-5 {
        font-size: calc(1.6rem + 2vw);
    }
}
