/* --- GOOGLE FONTS IMPORT (Falls nicht im HTML) --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');

/* --- VARIABLEN & SETUP --- */
:root {
    --primary: #7c3aed;       /* Neon Violett */
    --primary-glow: rgba(124, 58, 237, 0.5);
    --secondary: #06b6d4;     /* Cyber Cyan */
    --accent: #f43f5e;        /* Hot Pink */
    --background: #020617;    /* Deep Space Black */
    --surface: rgba(30, 41, 59, 0.6); 
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- KRASSER BACKGROUND --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* Mix aus Gradients und einem Cyber-Grid */
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.15) 0%, transparent 35%),
        linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z' fill='%231e293b' fill-opacity='0.2'/%3E%3C/svg%3E");
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { 
    background: var(--gradient); 
    border-radius: 10px; 
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- HEADER & LOGO --- */
.header {
    text-align: center;
    padding: 5rem 0 3rem;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 20px var(--primary-glow)); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 0 40px var(--primary)); }
}

.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--secondary);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.8;
}

/* --- SECTION TITLE --- */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title::after {
    content: '';
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* --- GAMES GRID --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* --- GAME CARD (DAS KRASSE DESIGN) --- */
.game-card {
    background: var(--surface);
    backdrop-filter: blur(15px); /* Glassmorphism */
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px var(--primary-glow);
}

/* Glanzeffekt beim Hover */
.game-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
    z-index: 5;
}

.game-card:hover::before {
    left: 150%;
}

/* Featured / Hot Badge */
.game-card.featured::after {
    content: "HOT";
    position: absolute;
    top: 15px; right: 15px;
    background: var(--accent);
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 900;
    font-size: 0.7rem;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(244, 63, 94, 0); }
    100% { transform: scale(1); }
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1e293b;
}

.game-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-info {
    padding: 2rem;
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.game-description {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 2.7rem;
}

/* --- PLAY BUTTON --- */
.play-button {
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.play-button:hover {
    letter-spacing: 4px;
    filter: brightness(1.2);
    box-shadow: 0 0 20px var(--primary);
}

.play-button:active {
    transform: scale(0.96);
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 5rem 0 2rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
}

/* --- MOBILE OPTIMIERUNG --- */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    .logo { font-size: 3rem; letter-spacing: 4px; }
    .games-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.5rem; }
}