/* 8Arcade Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rajdhani:wght@500;700&display=swap');

:root {
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-purple: #9d00ff;
    --bg-dark: #050510;
    --bg-panel: #0a0a1a;
    --text-main: #e0e0e0;
    --grid-line: rgba(0, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Press Start 2P', cursive;
    /* Retro pixel font */
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- CRT Scanline Effect Overlay --- */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
}

/* --- Typography & Neon Glows --- */
.neon-text-pink {
    color: var(--neon-pink);
    text-shadow:
        0 0 5px var(--neon-pink),
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink);
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow:
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue);
}

.title-glow {
    text-align: center;
    margin-top: 2rem;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    max-width: 600px;
    margin: 1rem auto 3rem;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.triangle-indicator {
    color: #ffcc00;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: blink 1s infinite;
}

/* --- Header --- */
header {
    border-bottom: 2px solid var(--neon-pink);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 26, 0.9);
    box-shadow: 0 0 15px var(--neon-pink);
}

.logo span {
    color: #ffcc00;
    /* Gold star color */
    border: 2px solid #ffcc00;
    padding: 5px 10px;
    margin-right: 10px;
}

.header-status {
    font-family: 'Rajdhani', sans-serif;
    color: var(--neon-blue);
    font-weight: bold;
    font-size: 1.1rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- Main Home Grid --- */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
}

.arcade-card {
    border: 2px solid var(--neon-pink);
    background: rgba(10, 10, 26, 0.8);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2), inset 0 0 20px rgba(255, 0, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    text-decoration: none;
    /* For linker <a> tags */
}

.arcade-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px var(--neon-pink), inset 0 0 30px rgba(255, 0, 255, 0.3);
    background: rgba(20, 20, 40, 0.9);
}

.arcade-card h3 {
    margin: 1rem 0;
    color: var(--neon-blue);
    /* Can be customized per card */
    font-size: 1rem;
    text-shadow: 0 0 5px var(--neon-blue);
}

.arcade-card p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Button style inside cards */
.action-btn {
    background: var(--neon-pink);
    color: #fff;
    border: none;
    padding: 10px 0;
    width: 100%;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    text-shadow: none;
    transition: 0.2s;
    text-decoration: none;
    display: block;
}

.action-btn:hover {
    background: #ff40ff;
    box-shadow: 0 0 10px #ff40ff;
}

/* Different Colors for specific cards if needed */
.card-blue {
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.card-blue:hover {
    box-shadow: 0 0 20px var(--neon-blue);
}

.card-blue h3 {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.card-blue .action-btn {
    background: var(--neon-blue);
    color: #000;
}

.card-blue .action-btn:hover {
    background: #80ffff;
}

/* --- Footer --- */
footer {
    border-top: 2px solid var(--neon-pink);
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    background: #050510;
}

.footer-text {
    font-family: 'Rajdhani', sans-serif;
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.insert-coin {
    color: #00ff00;
    animation: blink 1s infinite;
    font-size: 0.8rem;
}

/* --- Games Page Specifics --- */
.dashboard-header {
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    margin: 2rem auto;
    padding: 2rem;
    max-width: 1200px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.search-bar-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.search-input {
    flex: 1;
    background: transparent;
    border: 1px solid #555;
    padding: 10px 15px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 5px var(--neon-blue);
}

.filter-tags {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.tag {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 5px 15px;
    border-radius: 4px;
    /* Slight roundness for dashboard feel */
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag:hover,
.tag.active {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 10px var(--neon-blue);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 4rem;
}

.game-card {
    border: 1px solid #333;
    background: #0e0e1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.game-thumb {
    height: 160px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #333;
    position: relative;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1rem;
}

.game-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.game-title {
    font-size: 1rem;
    color: var(--neon-blue);
}

.rating {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-blue);
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.genre-badge {
    border: 1px solid #555;
    padding: 2px 6px;
    font-size: 0.6rem;
    color: #aaa;
    border-radius: 10px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.play-btn {
    width: 100%;
    background: var(--neon-blue);
    border: none;
    padding: 10px;
    font-family: 'Press Start 2P', cursive;
    color: #000;
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
}

.play-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}