/* Homepage Game Codes Section */
.homepage-game-codes {
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
    margin-bottom: 30px;
}

.homepage-game-codes .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Filter Form */
.filter-form {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.filter-form label {
    font-weight: 500;
    color: #444;
}

.filter-form select {
    padding: 8px 12px;
    font-size: 0.95rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.filter-form button {
    cursor: pointer;
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.filter-form button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

/* Game Codes Grid */
.game-codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Game Code Item Container */
.game-code-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.game-code-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Styling */
.game-code-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Game Code Details */
.game-code-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Game Code Title */
.game-code-title {
    margin-bottom: 5px;
}

.game-code-title a {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.game-code-title a:hover {
    color: #0073aa;
}

/* Meta Information */
.game-code-meta {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.game-code-meta .active-count {
    color: #28a745;
    font-weight: 500;
}

.game-code-meta .separator {
    color: #ccc;
}

.game-code-meta .last-checked {
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-code-meta .last-checked svg {
    width: 14px;
    height: 14px;
    fill: #666;
}

/* Pagination Styling */
.pagination-container {
    margin-top: 40px;
    margin-bottom: 20px;
}

.pagination-container ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination-container ul li {
    margin: 0;
}

.pagination-container ul li a,
.pagination-container ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    background: #f5f5f5;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination-container ul li a:hover,
.pagination-container ul li span.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .game-codes-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .homepage-game-codes {
        padding: 20px 15px;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .game-code-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-code-meta .separator {
        display: none;
    }
}