/* Static Signal - Pixel Aesthetic */

@font-face {
    font-family: 'Dogica';
    src: url('fonts/dogica.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dogica';
    src: url('fonts/dogicabold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #12121a;
    --text-primary: #e8e8e8;
    --text-dim: #6a6a7a;
    --accent: #00ff88;
    --accent-dim: #00aa5c;
    --warning: #ffaa00;
    --border: #2a2a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Dogica', 'Press Start 2P', monospace;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
    overflow-x: hidden;
}

/* Static background canvas */
#static-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
}

/* Main container */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--accent-dim);
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: lowercase;
}

/* Sections */
section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

/* Games Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.game-card:hover:not(.coming-soon) {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
}

.game-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.game-image {
    width: 100%;
    aspect-ratio: 460 / 215; /* Steam header ratio */
    background: var(--bg-dark);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    object-fit: cover;
    display: block;
}

div.game-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    color: var(--text-dim);
}

/* Placeholder patterns */
.upload-placeholder {
    background:
        linear-gradient(45deg, var(--bg-dark) 25%, transparent 25%),
        linear-gradient(-45deg, var(--bg-dark) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--border) 75%),
        linear-gradient(-45deg, transparent 75%, var(--border) 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.filehoard-placeholder {
    background: repeating-linear-gradient(
        0deg,
        var(--bg-dark),
        var(--bg-dark) 4px,
        var(--border) 4px,
        var(--border) 8px
    );
}

.game-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.status {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.status.available {
    color: var(--bg-dark);
    background: var(--accent);
}

.status.soon {
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Contact/Press */
.contact {
}

.email {
    font-size: 0.8rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.email .at {
    color: var(--accent);
}

/* Socials */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--text-dim);
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.social-links svg {
    width: 32px;
    height: 32px;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.6rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 600px) {
    main {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 0.5rem;
    }

    h2 {
        font-size: 0.6rem;
    }

    .game-info h3 {
        font-size: 0.6rem;
    }

    .social-links svg {
        width: 24px;
        height: 24px;
    }
}

/* Scanlines overlay (subtle) */
main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1000;
}
