:root {
    /* --primary: #0c1427; */
    /* --secondary: #1a2a6c; */
    --accent: #00a8ff;
    --accent-hover: #0097e6;
    --text: #ffffff;
    --text-secondary: #a0a8c3;
    --card-bg: rgba(30, 40, 70, 0.7);
    --glass: rgba(15, 25, 50, 0.6);
}

.search-section {
    max-width: 800px;
    margin: 30px auto 50px;
    position: relative;
    animation: slideUp 1s ease;
}

.search-container {
    display: flex;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.4);
}

#search-input {
    flex: 1;
    padding: 20px 30px;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    transition: all 0.3s ease;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search-button {
    background: linear-gradient(45deg, var(--accent), var(--accent-hover));
    border: none;
    padding: 0 40px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#search-button:hover {
    background: linear-gradient(45deg, var(--accent-hover), #0088cc);
    padding: 0 45px;
}

.search-hints {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hint {
    background: rgba(0, 168, 255, 0.15);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hint:hover {
    background: rgba(0, 168, 255, 0.3);
    transform: translateY(-3px);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 25, 50, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 15px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    z-index: 100;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.result-item {
    padding: 18px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.result-item img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.result-highlight {
    background: rgba(0, 168, 255, 0.3);
    padding: 2px 5px;
    border-radius: 4px;
}

.result-category {
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.result-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.result-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

.games-section {
    margin-top: 50px;
    animation: fadeIn 1s ease;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-15px) scale(1.01);
    box-shadow: 0 5px 40px rgba(0, 168, 255, 0.3);
    border-color: rgba(0, 168, 255, 0.3);
}

.game-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.game-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.game-content {
    padding: 25px;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.game-category {
    background: rgba(0, 168, 255, 0.15);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.game-rating {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

.game-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-size {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-btn {
    background: linear-gradient(45deg, var(--accent), var(--accent-hover));
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-btn:hover {
    background: linear-gradient(45deg, var(--accent-hover), #0088cc);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4);
}

.empty-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Hero Section - Modern Gaming Design */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 1.1rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: 20px;
    }
    
    #search-input {
        border-radius: 20px 20px 0 0;
    }
    
    #search-button {
        border-radius: 0 0 20px 20px;
        padding: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-hints {
        gap: 10px;
    }
    
    .hint {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-item img {
        width: 100px;
        height: 100px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
}