/* Global layout */
body {
    background: radial-gradient(circle at top, #101020 0, #050509 45%, #000000 100%);
    color: #e0ffe0;
    font-family: "Fira Code", "Consolas", "Courier New", monospace;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Subtle scanlines */
body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0,
        rgba(0, 0, 0, 0.2) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.35;
    mix-blend-mode: soft-light;
    z-index: -1;
}

/* Neon glow helpers */
.neon-green { color: #7CFF6B; text-shadow: 0 0 8px rgba(124,255,107,0.7); }
.neon-cyan  { color: #4DFFFF; text-shadow: 0 0 8px rgba(77,255,255,0.7); }
.neon-pink  { color: #FF4DFF; text-shadow: 0 0 8px rgba(255,77,255,0.7); }

a {
    color: #4DFFFF;
    text-decoration: none;
}
a:hover {
    color: #FF4DFF;
    text-shadow: 0 0 6px rgba(255,77,255,0.8);
}

/* Navbar */
.navbar {
    border-bottom: 1px solid rgba(124,255,107,0.4);
    box-shadow: 0 0 12px rgba(0,255,128,0.25);
    background: rgba(5, 5, 15, 0.95) !important;
    backdrop-filter: blur(6px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7CFF6B !important;
    text-shadow: 0 0 8px rgba(124,255,107,0.8);
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c0f0ff !important;
}
.nav-link:hover {
    color: #FF4DFF !important;
}

/* Console container */
.console-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}

.console-panel {
    border: 1px solid rgba(77,255,255,0.4);
    background: radial-gradient(circle at top left, rgba(0,255,128,0.08), rgba(0,0,0,0.9));
    box-shadow:
        0 0 18px rgba(0,255,128,0.25),
        0 0 40px rgba(0,0,0,0.9);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Panel header bar */
.console-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7CFF6B, #4DFFFF, #FF4DFF);
}

/* Typewriter */
.console-typing {
    font-size: 1.1rem;
    white-space: pre-wrap;
    min-height: 3rem;
}
.console-cursor {
    display: inline-block;
    width: 0.6em;
    background: #7CFF6B;
    margin-left: 0.1em;
    animation: blink 1s steps(1) infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Download grid */
.download-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.download-grid-item {
    position: relative;
    border-radius: 6px;
    border: 1px solid rgba(77,255,255,0.4);
    background-color: rgba(5, 10, 20, 0.9);
    overflow: hidden;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s;
    height: 50px;
}

.download-grid-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,128,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.download-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(77,255,255,0.35);
    border-color: rgba(255,77,255,0.7);
}
.download-grid-item:hover::after {
    opacity: 1;
}

.download-grid-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.4rem 0.6rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    font-size: 0.9rem;
    color: #e0ffe0;
}

/* Platform icons */
.platform-icon {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
}

/* Download details */
.download-detail {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(124,255,107,0.4);
    background: rgba(5, 10, 20, 0.95);
}

.download-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #a0ffc0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.download-screenshot img {
    margin-top: 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(77,255,255,0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #7CFF6B, #4DFFFF);
    border: none;
    color: #001010;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #FF4DFF, #4DFFFF);
    color: #000;
}

/* Footer */
footer {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: #7CFF6B;
    opacity: 0.7;
}
