/* Search Page Specific Styles */

/* Search Hero Section */
.search-hero {
    background: linear-gradient(135deg, var(--gradient-primary), var(--gradient-secondary));
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.search-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.search-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Search Box Large */
.search-box-large {
    margin-bottom: 2rem;
}

.search-input-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    font-size: 1.2rem;
    color: #666666;
    margin: 0 1rem;
}

.search-input-large {
    flex: 1;
    padding: 1rem 0.5rem;
    border: none;
    background: transparent;
    color: #333333;
    font-size: 1rem;
    outline: none;
    font-weight: 500;
    min-width: 0;
}

.search-input-large:focus {
    color: #000000;
    font-weight: 600;
}

.search-input-large::placeholder {
    color: #999999;
    font-weight: 400;
}

.search-btn-large {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Trending Tags */
.search-trending {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.trending-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.trending-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trending-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.trending-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Demo Controls */
.demo-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.demo-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.demo-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Search Results Section */
.search-results-section {
    padding: 3rem 2rem;
    background: var(--bg);
}

.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search Stats */
.search-stats {
    margin-bottom: 2rem;
}

/* No Search State */
.no-search-state {
    text-align: center;
    padding: 4rem 2rem;
}

.no-search-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-search-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.search-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.suggestion-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.suggestion-card:hover::before {
    opacity: 0.1;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.suggestion-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.suggestion-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.suggestion-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

/* Search Results Grid */
.search-results-grid {
    margin-top: 2rem;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.search-results-count {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Loading State */
.search-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* No Results State */
.no-results-state {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.no-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-results-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.search-term {
    color: var(--primary-color);
    font-weight: 600;
}

.suggestions-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.suggestions-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Popular Searches */
.popular-searches {
    margin-top: 2rem;
}

.popular-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.popular-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.popular-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.popular-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-hero {
        padding: 3rem 1rem;
    }
    
    .search-hero-title {
        font-size: 2.5rem;
    }
    
    .search-hero-subtitle {
        font-size: 1rem;
    }
    
    .search-input-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-btn-large {
        width: 100%;
    }
    
    .search-trending {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-suggestions {
        grid-template-columns: 1fr;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-hero-title {
        font-size: 2rem;
    }
    
    .no-search-title {
        font-size: 2rem;
    }
    
    .suggestion-card {
        padding: 1.5rem;
    }
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-results-info h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

/* Advanced Filters */
.advanced-filters {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.advanced-filters .filter-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.advanced-filters .filter-row {
    display: flex;
    gap: 2rem;
    align-items: end;
    flex-wrap: wrap;
}

.advanced-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.advanced-filters .filter-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.advanced-filters .filter-group select {
    padding: 0.75rem 1rem;
    background: var(--darker-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.advanced-filters .filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.advanced-filters .reset-btn {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.advanced-filters .reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Game Details in Search Results */
.game-details {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.difficulty-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.difficulty-easy {
    background: rgba(107, 207, 127, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.difficulty-medium {
    background: rgba(255, 211, 61, 0.2);
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

.difficulty-hard {
    background: rgba(255, 107, 107, 0.2);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.players-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Game Tags */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    background: var(--darker-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--darker-bg);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

/* No Search State */
.no-search-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-search-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

.no-search-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Search Suggestions */
.search-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.suggestion-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.suggestion-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.suggestion-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Search Loading State */
.search-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    flex-direction: column;
    align-items: center;
}

.search-loading .loading {
    margin: 0 auto 1rem;
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Results Grid */

.search-results-grid .section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* Game Card */
.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star {
    color: #ffd700;
    font-size: 0.9rem;
}

.game-rating span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* No Results State */
.no-results-state {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-results-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 600;
}

.no-results-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Suggestions Card */
.suggestions-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.suggestions-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.suggestions-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-box-large {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input-large {
        font-size: 0.95rem;
    }
    
    .search-btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .search-results-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-filters {
        justify-content: flex-start;
    }
    
    .no-search-title,
    .no-results-title {
        font-size: 1.5rem;
    }
    
    .no-search-subtitle,
    .no-results-subtitle {
        font-size: 1rem;
    }
    
    .search-suggestions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .suggestion-card {
        padding: 1rem;
    }
    
    .suggestions-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-box-large {
        padding: 0 0.5rem;
    }
    
    .search-input-large {
        padding: 0.875rem 1rem;
    }
    
    .search-btn-large {
        padding: 0.75rem 1rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1.1rem;
    }
    
    .game-description {
        font-size: 0.85rem;
    }
}
