/**
 * Ahuette Player Engine — My Account "Meine Spiele" Tab Styles
 *
 * @package Ahuette\PlayerEngine
 */

.ahuette-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
    margin-top: 1em;
}

.ahuette-game-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.ahuette-game-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-status-badge {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-status-badge.status-new {
    background: #e3f2fd;
    color: #1565c0;
}

.game-status-badge.status-active {
    background: #fff3e0;
    color: #e65100;
}

.game-status-badge.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.game-card-content {
    padding: 1em;
}

.game-card-content h3 {
    margin: 0 0 0.5em;
    font-size: 1.1em;
}

.game-card-meta {
    display: flex;
    gap: 1em;
    margin-bottom: 0.75em;
    font-size: 0.85em;
    color: #666;
}

.game-card-meta span::before {
    margin-right: 0.3em;
}

.meta-difficulty::before {
    content: "⭐";
}

.meta-duration::before {
    content: "⏱️";
}

.game-card-score {
    margin-bottom: 0.75em;
    font-size: 0.9em;
    color: #2e7d32;
    font-weight: 500;
}

.game-card-actions {
    margin-top: 0.5em;
}

.game-card-actions .button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.6em 1em;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.game-card-actions .button:hover {
    background: #1b5e20;
    color: #fff;
}

/* History table */
.ahuette-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.ahuette-history-table th,
.ahuette-history-table td {
    padding: 0.6em 1em;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.ahuette-history-table th {
    font-weight: 600;
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 600px) {
    .ahuette-games-grid {
        grid-template-columns: 1fr;
    }

    .ahuette-history-table th,
    .ahuette-history-table td {
        padding: 0.4em 0.6em;
        font-size: 0.85em;
    }
}
