/* ══════════════════════════════════════════
 G ames – Design Tokens (gleich wie Ad*min)
 ══════════════════════════════════════════ */
:root {
    --bg:        #0f0f23;
    --surface:   #1a1a2e;
    --surface2:  #16213e;
    --accent:    #7c3aed;
    --accent2:   #ec4899;
    --text:      #e2e8f0;
    --text-soft: #f1f5f9;
    --muted:     #64748b;
    --border:    rgba(124,58,237,0.25);
}

/* ── Hero ── */
.games-hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 60%, var(--surface2) 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.games-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(124,58,237,0.15) 0%, transparent 65%);
    pointer-events: none;
}

.games-hero h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #a78bfa, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.games-hero p {
    color: var(--muted);
    position: relative;
    font-size: 1rem;
}

.games-count-badge {
    display: inline-block;
    background: rgba(124,58,237,0.18);
    border: 1px solid rgba(124,58,237,0.4);
    color: #a78bfa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    position: relative;
}

/* ── Grid ── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
}

/* ── Card ── */
.game-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(124,58,237,0.28), 0 0 0 1px rgba(124,58,237,0.4);
    border-color: rgba(124,58,237,0.45);
}

.game-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.game-card-cover-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1e1b4b, #2d1b69);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
}

.game-card-body {
    padding: 1.1rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.game-card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    width: 100%;
    border: none;
}

.btn-play:hover {
    opacity: 0.88;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(124,58,237,0.45);
}

/* ── Empty State ── */
.games-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--muted);
}

.games-empty .icon { font-size: 3.5rem; opacity: 0.35; margin-bottom: 1rem; display: block; }

/* ── Sticky Footer ── */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }
.footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 1.2rem 0; text-align: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
