/* eigi.games – Ergänzungen zu style.css (gleiches Aussehen wie eigiandai.com/daaigi.com): Twitch, Games-Knopf, Spiele-Übersicht */

.twitch .social-icon {
    background: linear-gradient(135deg, #a970ff, #6441a5);
}

/* Navigation: Link „Games“ rechts */
.nav-content .nav-link {
    margin-left: auto;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-content .nav-link:hover,
.nav-content .nav-link[aria-current="page"] {
    color: var(--text-primary);
    border-color: var(--border-hover);
}


/* Prominenter Knopf zu den Spielen – das Herz dieser Seite */
.games-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 0 0 2.25rem;
    padding: 1.4rem 1.75rem;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(249, 115, 22, 0.22) 50%, rgba(220, 38, 38, 0.2));
    border: 1px solid rgba(251, 146, 60, 0.55);
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.2);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease 0.35s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.games-cta::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, 0.12) 80%, transparent 90%);
    animation: spin 6s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.games-cta:hover,
.games-cta:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(253, 224, 71, 0.75);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18), 0 22px 60px rgba(249, 115, 22, 0.32);
}

.games-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.games-cta-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fbbf24, #f97316 55%, #dc2626);
    position: relative;
    z-index: 1;
}

.games-cta-text {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.games-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.games-cta-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.games-cta .social-arrow {
    color: #fff;
}

.games-cta:hover .social-arrow {
    transform: translateX(5px);
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 0.9rem;
    text-align: left;
}

/* Spiele-Seite */
.container.wide {
    max-width: 1100px;
}

.games-intro {
    text-align: center;
    margin-bottom: 2.25rem;
    animation: fadeInUp 0.8s ease both;
}

.games-intro .hero-subtitle {
    margin-bottom: 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    font: inherit;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.filter-btn[aria-pressed="true"] {
    color: #fff;
    border-color: var(--accent);
    background: rgba(251, 146, 60, 0.16);
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.75;
}

.platform-section {
    margin-bottom: 3rem;
}

.platform-section[hidden] {
    display: none;
}

.platform-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.platform-title i {
    color: var(--accent);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.game-card:focus-within {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.game-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(249, 115, 22, 0.28), rgba(220, 38, 38, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.85);
}

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

.game-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.game-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
}

.game-meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.game-badge {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: var(--available);
    font-size: 0.7rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.game-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    flex: 1;
}

.game-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.4rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #c2410c);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.game-action.download {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
}

.game-action:hover,
.game-action:focus-visible {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.game-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.2rem 1.5rem;
    border: 1px dashed var(--border-hover);
    border-radius: 18px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 1.6rem;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
}

@media (max-width: 768px) {
    .games-cta {
        padding: 1.2rem 1.25rem;
        gap: 1rem;
    }

    .games-cta-icon {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .games-cta-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .nav-content .nav-link span {
        display: none;
    }


    .games-grid {
        grid-template-columns: 1fr;
    }
}
