/* Browse Games Page Styles */

.browse-games-page {
    background: var(--dark-bg);
    min-height: 100vh;
    padding: 8rem 2rem 3rem;
}

.browse-container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Game Card Styles */
.game-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card-gradient {
    min-height: 350px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.game-card-gradient:hover {
    transform: translateY(-10px) scale(1.02);
}

.game-card-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
}

.game-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.game-card-description {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

.game-card-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-card-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.game-card-price .learn-more {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.game-card-price .learn-more:hover {
    color: var(--neon-purple);
    transform: translateX(5px);
}

/* Page Header */
.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.browse-title h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.browse-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 500px;
}

.game-search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.4);
    border-color: var(--primary-red);
}

.search-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.game-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.75rem 0;
    outline: none;
}

.game-search-input::placeholder {
    color: var(--text-gray);
}

.search-button {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--neon-purple) 100%);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(176, 38, 255, 0.4);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.category-tab {
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--neon-purple) 100%);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(176, 38, 255, 0.4);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(176, 38, 255, 0.3);
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-label {
    color: var(--text-gray);
    font-weight: 600;
}

.sort-dropdown {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-purple);
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-dropdown:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

.results-count {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Pagination */
.pagination-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-wrapper a,
.pagination-wrapper span {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
}

.pagination-wrapper .current {
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--neon-purple) 100%);
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .browse-games-page {
        padding: 6rem 1.25rem 2.5rem;
    }
    
    .browse-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 2.5rem;
        gap: 1.5rem;
    }
    
    .browse-title h1 {
        font-size: 2.5rem;
    }
    
    .browse-title p {
        font-size: 1.1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-input-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .game-search-input {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }
    
    .search-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .category-tabs {
        flex-wrap: nowrap;
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .category-tab {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .filter-left {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-label {
        font-size: 1.05rem;
    }
    
    .sort-dropdown {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1.05rem;
    }
    
    .results-count {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .game-card-gradient {
        min-height: 350px;
    }
    
    .game-card-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .game-card-title {
        font-size: 1.65rem;
        margin-bottom: 0.75rem;
    }
    
    .game-card-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .game-card-price .price {
        font-size: 1.5rem;
    }
    
    .game-card-price .learn-more {
        font-size: 1.05rem;
    }
    
    .no-results {
        padding: 4rem 2rem;
    }
    
    .no-results-icon {
        font-size: 5rem;
    }
    
    .no-results h3 {
        font-size: 1.75rem;
    }
    
    .no-results p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .pagination-wrapper {
        margin-top: 2.5rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .pagination-wrapper a,
    .pagination-wrapper span {
        padding: 0.875rem 1.5rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .browse-games-page {
        padding: 5rem 1rem 2rem;
    }
    
    .browse-title h1 {
        font-size: 2rem;
    }
    
    .browse-title p {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    
    .game-card-gradient {
        min-height: 320px;
    }
    
    .game-card-title {
        font-size: 1.5rem;
    }
    
    .game-card-description {
        font-size: 0.95rem;
    }
    
    .game-card-price .price {
        font-size: 1.35rem;
    }
    
    .filter-bar {
        padding: 1.25rem;
    }
    
    .category-tab {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .no-results-icon {
        font-size: 4.5rem;
    }
    
    .no-results h3 {
        font-size: 1.5rem;
    }
    
    .no-results p {
        font-size: 1rem;
    }
}

