/* css/components/game-card.css */
.game-card {
    display: flex;
    flex-direction: column; /* changed from row to column */
    margin: 20px 0;
    padding: 20px;
    border-radius: 10px;
    background: var(--card-background);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.game-image {
    width: 100%;
    margin: 0 0 15px 0;
}

.game-image img {
    width: 100%;
    height: auto; /* let it scale proportionally */
    object-fit: cover;
    border-radius: 8px;
}


.game-info {
    flex: 1;
}

.game-info h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.game-genre {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.game-tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px;
    background: var(--tag-background);
    color: var(--tag-color);
    border-radius: 4px;
    font-size: 0.8em;
}

.tag.puzzle { background: #3498db; color: white; }
.tag.platformer { background: #e74c3c; color: white; }
.tag.simulation { background: #27ae60; color: white; }
.tag.mobile { background: #9b59b6; color: white; }
.tag.cozy { background: #f39c12; color: white; }
.tag.upcoming { background: #95a5a6; color: white; }

.game-features {
    margin: 15px 0;
}

.game-features h4 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: var(--text-color);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature {
    padding: 3px 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 0.75em;
    color: #6c757d;
}

.download-link {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.download-link.steam {
    background: #1b2838;
    color: white;
}

.download-link.itch {
    background: #fa5c5c;
    color: white;
}

.download-link.google-play {
    background: #01875f;
    color: white;
}

.download-link.app-store {
    background: #007aff;
    color: white;
}

.game-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}

.game-status.released {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.game-status.in-development {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-card {
        flex-direction: column;
    }

    .game-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
    }
}