/* ===============================================
   GAME CARDS - Modular game card components
   =============================================== */

.game-card {
    background-color: #1b1b1b;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    border-radius: 10px;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(71, 215, 172, 0.2);
}

.game-card__icon {
    width: 180px;
    height: 180px;
    margin-bottom: 12px;
    border-radius: 24px;
    border: 4px solid #000;
    object-fit: cover;
}

.game-card__title {
    font-size: 1.8em;
    font-weight: bold;
    font-family: var(--font-accent, 'Amatic SC', cursive);
    color: #47D7AC;
    margin: 0 0 8px 0;
    text-align: center;
    line-height: 1.2;
}

.game-card__description {
    margin: 0 0 12px 0;
    font-family: var(--font-body, 'Raleway', sans-serif);
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
    font-size: 0.95rem;
}

.game-card__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    width: 100%;
}

.game-card__links a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.game-card__links a:hover {
    transform: scale(1.05);
}

.game-card__badge {
    height: 40px;
    width: auto;
}

/* ===============================================
   RESPONSIVE ADJUSTMENTS
   =============================================== */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .game-card {
        padding: 14px;
    }
    
    .game-card__icon {
        width: 150px;
        height: 150px;
    }
    
    .game-card__title {
        font-size: 1.6em;
        margin-bottom: 6px;
    }
    
    .game-card__description {
        margin-bottom: 10px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .game-card {
        padding: 12px;
    }
    
    .game-card__icon {
        width: 128px;
        height: 128px;
        border-radius: 20px;
        margin-bottom: 10px;
    }
    
    .game-card__title {
        font-size: 1.5em;
        margin-bottom: 6px;
    }
    
    .game-card__description {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .game-card__badge {
        height: 36px;
    }
    
    .game-card__links {
        gap: 8px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .game-card {
        padding: 10px;
    }
    
    .game-card__icon {
        width: 100px;
        height: 100px;
        border-radius: 16px;
        margin-bottom: 8px;
    }
    
    .game-card__title {
        font-size: 1.3em;
        margin-bottom: 4px;
    }
    
    .game-card__description {
        margin-bottom: 8px;
    }
    
    .game-card__badge {
        height: 32px;
    }
    
    .game-card__links {
        gap: 6px;
    }
}

/* ===============================================
   GRID LAYOUT HELPERS FOR GAME CARDS
   =============================================== */

/* When used inside blog-table containers, ensure proper spacing */
.blog-table-content .game-card {
    margin: 0;
}

/* Optional: Grid container for games outside of blog-table */
.games-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

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

.games-grid.two-column {
    grid-template-columns: repeat(2, 1fr);
}

.games-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive grid - stack on mobile */
@media (max-width: 768px) {
    .games-grid.two-column,
    .games-grid.three-column {
        grid-template-columns: 1fr;
    }
}

/* Responsive grid - 2 columns on tablets for 3-column layouts */
@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid.three-column {
        grid-template-columns: repeat(2, 1fr);
    }
}
