/* Modern Games List Styling - Matching Tournament List */

.games-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.games-list-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #00d9ff;
}

.games-list-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #121d1f;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

/* Search Bar Styling */
.search-container {
    margin-bottom: 30px;
    margin-top: 20px;
    text-align: center;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    font-size: 16px;
    border: 2px solid #00d9ff;
    border-radius: 20px;
    background-color: #fff;
    color: #121d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: #0099cc;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.3);
}

.search-box input::placeholder {
    color: #999;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d9ff;
    font-size: 18px;
    pointer-events: none;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.game-card,
.add-game-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00d9ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #00d9ff;
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #121d1f;
    margin-bottom: 0;
    line-height: 1.4;
}

.game-card-year {
    color: #666;
    font-weight: 500;
}

.game-card-separator {
    width: 100%;
    height: 1px;
    background: #e0e0e0;
    margin: 10px 0;
}

.game-card-location {
    font-size: 1rem;
    color: #555;
    margin-top: 0;
}

/* Alternate card colors */
.game-card:nth-child(even) {
    background: #f5f5f5;
}

.game-card:nth-child(odd) {
    background: #ffffff;
}

.add-game-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border: 2px dashed #00d9ff;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.add-game-card:hover {
    background: linear-gradient(135deg, #e8f5f9 0%, #d0e8f2 100%);
    border-color: #0099cc;
    transform: translateY(-2px);
}

.add-game-card-icon {
    font-size: 2.5rem;
    color: #00d9ff;
    margin-bottom: 8px;
}

.add-game-card-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #121d1f;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ccc;
}

.empty-state-text {
    font-size: 1.2rem;
    color: #666;
    margin-top: 16px;
}

/* Hide cards when searching */
.game-card.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-list-container {
        padding: 20px 15px;
    }
    
    .games-list-header h2 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .game-card {
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    /* Mobile: Single line layout */
    .game-card-title {
        font-size: 1.2rem;
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
        white-space: nowrap;
    }
    
    .game-card-separator {
        display: none !important;
    }
    
    .game-card-location {
        font-size: 1.1rem;
        display: inline-block;
        margin-left: 8px;
        margin-top: 0;
        white-space: nowrap;
    }
    
    .game-card-location::before {
        content: '- ';
    }
}

@media (max-width: 480px) {
    .games-list-header h2 {
        font-size: 1.75rem;
    }
    
    .game-card {
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    .game-card-title {
        font-size: 1.2rem;
        display: inline-block;
        margin-bottom: 0;
        margin-right: 0;
        white-space: nowrap;
    }
    
    .game-card-location {
        font-size: 1.1rem;
        display: inline-block;
        margin-left: 8px;
        margin-top: 0;
        white-space: nowrap;
    }
    
    .game-card-location::before {
        content: '- ';
    }
    
    .game-card-separator {
        display: none !important;
    }
}
