/* Ginst Retro - C64 Aesthetic */

:root {
    --c64-blue: #3e31a1;
    --c64-light-blue: #7a6bd6;
    --c64-cyan: #AAFFEE;
    --c64-bg: #000000;
}

body.ginst-retro-page {
    background-color: var(--c64-bg);
    color: var(--c64-light-blue);
    font-family: 'Courier New', Courier, monospace;
    /* Fallback for pixel font */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* CRT Effect Overlay */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.3;
}

.ginst-retro-page .hero {
    background: #000;
    padding: 10vh 0 15vh 16%;
    text-align: left;
    border-bottom: 8px solid var(--c64-light-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.ginst-retro-page .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ginst-retro-page .hero .container {
    position: relative;
    z-index: 2;
    margin-left: 0;
    margin-right: auto;
    width: 100%;
    padding-left: 5%;
}

.ginst-retro-page .hero-content {
    text-align: left;
    transform: none;
    max-width: 900px;
}

.ginst-retro-page .hero-logo {
    max-width: 400px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px var(--c64-cyan));
}

.ginst-retro-page .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
}

.ginst-retro-page h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--c64-cyan);
    text-shadow: 3px 3px 0px var(--c64-blue);
    margin-bottom: 20px;
}

.ginst-retro-page h2 {
    font-size: clamp(1rem, 2vw, 1.8rem);
    color: var(--c64-cyan);
    opacity: 0.9;
    margin-bottom: 30px;
}

.ginst-retro-page .tagline {
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    color: #99cc33;
    /* C64 Green */
    font-family: inherit;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.ginst-retro-page .section-title {
    margin-bottom: 40px;
    text-align: left;
}

.ginst-retro-page .btn-retro {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--c64-light-blue);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border: 3px solid #fff;
    outline: 2px solid var(--c64-light-blue);
    outline-offset: 3px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.ginst-retro-page .btn-retro:hover {
    transform: scale(1.05);
    background-color: var(--c64-cyan);
    color: var(--c64-blue);

    outline-color: var(--c64-cyan);
}

.about-text p {
    color: var(--c64-cyan);
    opacity: 0.9;
}

/* Hub Grid */
.hub-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
    max-width: 1000px;
}

.hub-card {
    background: #5d51a6;
    /* Classic C64 Light Blue/Purple */
    border: none;
    border-left: 10px solid #fff;
    padding: 30px 40px;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.hub-card:hover {
    background: #4a418a;
    transform: translateX(10px);
}

.hub-card h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: none;
    font-family: 'Courier New', Courier, monospace;
}

.hub-card p {
    color: #eeeeee;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

.hub-card .card-link {
    display: none;
    /* Hide the separate link since the whole card is now a link */
}

/* Specific for retro page gallery */
.ginst-retro-page .gallery-item {
    border: 2px solid var(--c64-light-blue);
}

.ginst-retro-page .gallery-item:hover {
    border-color: var(--c64-cyan);
}

@media (max-width: 768px) {
    .ginst-retro-page .hero {
        padding: 60px 20px;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Landscape Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .ginst-retro-page .hero {
        padding: 40px 20px 40px 20px;
    }

    .ginst-retro-page h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 10px;
    }

    .ginst-retro-page h2 {
        font-size: clamp(0.8rem, 1.5vw, 1.2rem);
        margin-bottom: 15px;
    }

    .ginst-retro-page .tagline {
        font-size: clamp(0.7rem, 1.2vw, 1rem);
        margin-bottom: 15px;
    }

    .ginst-retro-page .hero-actions {
        margin-top: 15px !important;
    }

    .ginst-retro-page .btn-retro {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}