/* Search Page Styles */

.search-section {
    padding: 40px 0;
    min-height: 100vh;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.search-btn {
    padding: 15px 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #00a383;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Filters */
.filters-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.filter-select {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    border-color: var(--accent-color);
}

.clear-btn {
    padding: 8px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: auto;
}

.clear-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Results Info */
.results-info {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.results-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 20px;
}

.game-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    color: var(--text-light);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

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

    .search-btn {
        width: 100%;
    }

    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .clear-btn {
        margin-left: 0;
        width: 100%;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 20px 0;
    }

    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

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