/* =========================================
   Logic Games - AAA Horror Redesign
   ========================================= */

:root {
    --bg-dark: #020202;
    --text-main: #eaeaea;
    --text-dim: #888888;
    --accent: #33ff33;
    /* Tie back to terminal */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #222;
}

/* Film Grain Noise */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)"/%3E%3C/svg%3E');
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    filter: blur(4px) grayscale(40%) brightness(0.8) contrast(1.1);
    transform: scale(1.1);
    /* Room for pan animation */
    animation: slowPan 30s infinite alternate linear;
    z-index: 1;
    transition: opacity 2s ease-in-out;
}

@keyframes slowPan {
    0% {
        transform: scale(1.1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, 2%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
    padding: 0 5%;
}

.main-logo {
    width: 500px;
    max-width: 80vw;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Cyber/Horror Button */
.launch-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    color: var(--bg-dark);
    background: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 100% 70%, 95% 100%, 0 100%, 0 30%);
}

.launch-btn:hover {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.4);
    transform: scale(1.05);
}

.btn-text {
    position: relative;
    z-index: 2;
    padding-top: 5px;
    /* Adjust for Bebas Neue baseline */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    opacity: 0.6;
}

.scroll-indicator p {
    margin-bottom: -5px;
}

.scroll-indicator i {
    font-size: 1rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* About Section */
.about {
    background: #000;
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media(min-width: 800px) {
    .about-container {
        grid-template-columns: 1.5fr 1fr;
        gap: 6rem;
    }
}

.about-col h2 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.separator {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 2rem;
}

.about-col p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-col p strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Game Gallery */
.game-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(80%) contrast(1.2) brightness(0.7);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
}

.gallery-img.span-full {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}

.gallery-img:hover {
    filter: grayscale(0%) contrast(1.1) brightness(1);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.transmissions-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-transmission-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding-bottom: 2px;
    width: fit-content;
}

.social-transmission-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.social-transmission-link i {
    width: 32px;
    text-align: center;
}

.social-transmission-link:hover i {
    text-shadow: 0 0 20px var(--accent);
}

/* Footer */
footer {
    background: #020202;
    padding: 4rem 5% 3rem;
    text-align: center;
    border-top: 1px solid #111;
}

footer p {
    font-family: var(--font-heading);
    color: #444;
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.socials a {
    color: #444;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials a:hover {
    color: var(--text-main);
    transform: translateY(-3px);
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 768px) {
    .main-logo {
        width: 320px;
        max-width: 90vw;
    }

    .hero-content {
        gap: 3rem;
    }

    .launch-btn {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
        letter-spacing: 2px;
    }

    .about {
        padding: 4rem 5%;
    }

    .about-container {
        gap: 3rem;
    }

    .about-col h2 {
        font-size: 2.2rem;
    }

    .about-col p {
        font-size: 1rem;
    }

    .separator {
        margin-bottom: 1.5rem;
    }

    .game-gallery {
        grid-template-columns: 1fr;
        /* Stack images vertically on small screens */
        gap: 0.8rem;
    }

    .gallery-img.span-full {
        aspect-ratio: 16/9;
        /* Return to standard widescreen on mobile to prevent squishing */
    }

    .social-transmission-link {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    footer {
        padding: 3rem 5% 2rem;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* =========================================
   Recent Transmissions (Index Page) - Premium Terminal Edition
   ========================================= */
.terminal-feed-container {
    background: #050505;
    border: 1px solid #222;
    border-top: 2px solid var(--accent);
    padding: 1.5rem;
    margin-top: 3rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(51, 255, 51, 0.05);
    overflow: hidden;
}

.terminal-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #333;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.recent-transmissions-heading {
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 2px;
    font-family: var(--font-heading);
    margin: 0;
}

.terminal-prompt {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.blinking-dot {
    color: #ff3333;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: slowBlink 2s infinite;
}

@keyframes slowBlink {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 10px #ff3333;
    }

    50% {
        opacity: 0.3;
        text-shadow: 0 0 2px #ff3333;
    }
}

.recent-transmissions-feed {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}

.crt-scanlines-mini {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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, 6px 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
}

.recent-post-card {
    display: block;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #1a1a1a;
    padding: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10;
}

.card-glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background: var(--accent);
    opacity: 0;
    transition: all 0.2s ease;
}

.recent-post-card:hover {
    background: #000;
    border-color: var(--accent);
    transform: translateX(8px);
    box-shadow: -4px 0 15px rgba(51, 255, 51, 0.15);
}

.recent-post-card:hover .card-glitch-layer {
    opacity: 0.05;
    transform: translate(-2px, 2px);
    mix-blend-mode: color-dodge;
}

.recent-post-meta {
    font-family: 'VT323', monospace;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.recent-post-card:hover .recent-post-meta {
    opacity: 1;
    text-shadow: 0 0 5px var(--accent);
}

.recent-post-title {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.recent-post-card:hover .recent-post-title {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.recent-post-excerpt {
    color: var(--text-dim);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
    /* Fade out text gradient mask */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.view-all-btn {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.view-all-btn:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    letter-spacing: 4px;
}

.loading-text {
    color: var(--text-dim);
    font-family: 'VT323', monospace;
    letter-spacing: 2px;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}