:root {
    --dark-bg: #0f0e0f;
    --card-bg: #1a1a1a;
    --accent-blue: #3a86ff;
    --accent-teal: #00b4d8;
    --accent-purple: #8338ec;
    --text-light: #f8f9fa;
    --text-gray: #adb5bd;
    --success: #4caf50;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--dark-bg);
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(58,134,255,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.note {
    background-color: rgba(26, 26, 26, 0.8);
    border-left: 4px solid var(--accent-blue);
    padding: 1rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 0 8px 8px 0;
    position: relative;
}
.note::before {
    content: "Note:";
    position: absolute;
    top: 50%;
    left: -60px;
    transform: translateY(-50%);
    background-color: var(--accent-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 8px 8px 0;
    font-weight: bold;
}


.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 1.5rem auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 30px;
    padding: 5px 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 60%;
    min-width: 300px;
}

#search-input {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
}

#search-input:focus {
    outline: none;
}

.controls i {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-right: 10px;
}

.games-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-blue);
}

.game-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    color: var(--accent-teal);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    min-height: 50px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.game-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(58, 134, 255, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

.size-info {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 5px;
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    background-color: #1a1a1a;
    color: var(--text-gray);
    font-size: 0.9rem;
    border-top: 1px solid #2a2a2a;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .game-card {
        width: 100%;
        max-width: 350px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .search-container {
        width: 90%;
    }
}