/* ============================================
   Games Landing Page - Kachel-Übersicht
   ============================================ */

.gl-bg {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
}

.gl-subtitle {
    font-size: 0.85rem;
    color: #8b949e;
    margin-left: 4px;
}

.gl-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 32px;
}

/* --- Card Grid --- */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Game Card --- */
.gl-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gl-accent, #d4af37);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gl-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gl-card:hover::before {
    opacity: 1;
}

/* --- Card Icon --- */
.gl-card-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.gl-card:hover .gl-card-icon {
    background: var(--gl-accent, #d4af37);
    color: #fff;
    border-color: var(--gl-accent, #d4af37);
    transform: scale(1.08);
}

/* --- Card Info --- */
.gl-card-info {
    flex: 1;
    min-width: 0;
}

.gl-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 3px;
}

.gl-card-desc {
    font-size: 0.8rem;
    color: #8b949e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Category Badge --- */
.gl-card-category {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .gl-content {
        padding: 16px;
    }

    .gl-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gl-card {
        padding: 14px 16px;
    }

    .gl-card-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 24px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gl-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .gl-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1401px) {
    .gl-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Scrollbar Styling --- */
.gl-content::-webkit-scrollbar {
    width: 6px;
}

.gl-content::-webkit-scrollbar-track {
    background: transparent;
}

.gl-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.gl-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
