@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&family=Share+Tech+Mono&display=swap');

/* Global Styles - Classic Tech */
:root {
    --background-dark: #000000;
    --main-text: #FFFFFF;
    --primary-accent: #FF0000; /* Bright Red */
    --secondary-accent: #00FFFF; /* Cyan */
    --glow-effect: 0 0 5px var(--primary-accent), 0 0 10px var(--primary-accent), 0 0 15px var(--primary-accent);
    --transition-speed: 0.3s ease-in-out;
    --border-glow: 1px solid var(--secondary-accent);
}
a {
    text-decoration: none;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--background-dark);
    color: var(--main-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Header & Title Section */
.header-section {
    text-align: center;
    margin-bottom: 1rem;
}

.header-section h1 {
    font-family: 'Major Mono Display', monospace;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--primary-accent);
    text-shadow: var(--glow-effect);
    letter-spacing: 5px;
    animation: text-pulse 1.5s infinite alternate;
}

@keyframes text-pulse {
    from { text-shadow: 0 0 5px var(--primary-accent); }
    to { text-shadow: var(--glow-effect); }
}

.header-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--secondary-accent);
    text-shadow: 0 0 5px var(--secondary-accent);
}

/* Command Line Input */
.command-input-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto 3rem;
}

.command-input {
    width: 76%;
    padding: 1rem 1.5rem;
    padding-left: 2rem; /* Space for the icon */
    border-radius: 0;
    border: 1px solid rgba(0, 255, 255, 0.5);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--main-text);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    box-shadow: inset 0 0 5px var(--secondary-accent);
    transition: box-shadow var(--transition-speed);
}

.command-input:focus {
    outline: none;
    box-shadow: inset 0 0 10px var(--secondary-accent), 0 0 15px var(--secondary-accent);
}

.search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-accent);
    opacity: 0.8;
    transition: opacity var(--transition-speed), color var(--transition-speed);
}

.command-input-container:hover .search-icon {
    opacity: 1;
    color: var(--primary-accent);
}

/* Category Links */
.category-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.category-link {
    text-decoration: none;
    padding: 0.75rem 2rem;
    border: 1px solid var(--primary-accent);
    background-color: transparent;
    color: var(--primary-accent);
    font-family: 'Major Mono Display', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0 0 3px var(--primary-accent);
    box-shadow: 0 0 5px var(--primary-accent);
    transition: all var(--transition-speed);
}

.category-link:hover {
    background-color: var(--primary-accent);
    color: var(--background-dark);
    text-shadow: none;
    box-shadow: 0 0 15px var(--primary-accent);
}

/* Game Grid Display */
.game-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background-color: #111111;
    border: var(--border-glow);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 8px var(--secondary-accent);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--secondary-accent);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: var(--border-glow);
    transition: transform var(--transition-speed);
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-content {
    padding: 1.5rem;
    text-align: center;
}

.game-content h3 {
    font-family: 'Major Mono Display', monospace;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
    color: var(--primary-accent);
    text-shadow: 0 0 3px var(--primary-accent);
}

.game-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--main-text);
}

/* Footer Section */
.footer-section {
    border-top: 1px solid var(--secondary-accent);
    margin-top: auto;
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--main-text);
}

.footer-section .description {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--secondary-accent);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--primary-accent);
}