/* Games Index - Arcade Cabinet Theme */

* { 
    box-sizing: border-box; 
}

html, body { 
    height: 100%; 
    margin: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 150, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 0, 0.1) 0%, transparent 50%);
    color: #00ffff;
    min-height: 100vh;
    position: relative;
}

/* Animated scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.wrap { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Retro Topbar */
.topbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 40px;
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #00ffff;
    border-radius: 0;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.6),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    position: relative;
}

.topbar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    animation: borderGlow 3s ease infinite;
    z-index: -1;
    filter: blur(10px);
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.topbar h1 { 
    margin: 0; 
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #00ffff;
    text-shadow: 
        0 0 15px #00ffff,
        0 0 30px #00ffff,
        0 0 45px #00ffff;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { 
        text-shadow: 
            0 0 15px #00ffff,
            0 0 30px #00ffff,
            0 0 45px #00ffff;
    }
    50% { 
        text-shadow: 
            0 0 20px #00ffff,
            0 0 40px #00ffff,
            0 0 60px #00ffff,
            0 0 80px rgba(0, 255, 255, 0.5);
    }
}

.home {
    color: #00ffff;
    text-decoration: none;
    border: 2px solid #00ffff;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.home:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Games Grid - Arcade Cabinet Style */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 32px;
    margin-bottom: 40px;
}

.card { 
    display: block;
    padding: 32px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #00ffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.4),
        inset 0 0 25px rgba(0, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff, #00ffff);
    background-size: 400% 400%;
    animation: borderGlow 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
    filter: blur(8px);
}

.card:hover { 
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.7),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    border-color: #ff00ff;
}

.card-title { 
    font-weight: 900; 
    font-size: 28px; 
    margin-bottom: 12px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 10px #00ffff,
        0 0 20px #00ffff;
}

.card:hover .card-title {
    color: #ff00ff;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #ff00ff;
}

.card-sub { 
    color: #bcdcff; 
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.footer { 
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 0;
    color: #bcdcff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .topbar h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-title {
        font-size: 24px;
    }
}
