/* Games Directory Styles */

.games-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

/* Sidebar Filters */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: fit-content;
    border: 1px solid #eee;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h3 {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: #2c3e50;
    font-weight: 600;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.filter-option {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.95em;
    color: #555;
}

.filter-option input {
    margin-right: 8px;
}

/* Main Content */
.games-main {
    flex-grow: 1;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}

.games-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.games-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
    font-weight: 600;
}

.total-count {
    color: #666;
    font-size: 0.9em;
    align-self: flex-end;
    margin-bottom: 5px;
}

/* Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    min-height: 400px;
}

.game-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #4CAF50;
}

.game-img-container {
    height: 140px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-placeholder {
    color: #999;
    font-size: 2em;
}

.game-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.3;
}

.game-meta {
    font-size: 0.8em;
    color: #888;
    margin-top: auto;
}

.game-manufacturer {
    color: #4CAF50;
    font-weight: 500;
}

.location-count {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Series Badge */
.series-badge {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .games-container {
        flex-direction: column;
        padding: 15px;
    }

    .filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}