/* Global Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #121212; /* Dark background */
    color: #e0e0e0; /* Light text */
    transition: background 0.3s ease, color 0.3s ease;
}

h1, h2 {
    margin: 0;
}

.app-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease-in-out, background 0.3s ease;
}

.app-bar h1 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#search-bar {
    display: block;
    margin: 1rem auto;
    padding: 0.5rem;
    width: 80%;
    max-width: 400px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); /* Glass */
    color: #e0e0e0;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-bar:focus {
    outline: none;
    border-color: #ff6ec4;
    box-shadow: 0 4px 20px rgba(255, 110, 196, 0.4);
}

main {
    padding: 1rem;
    padding-top: 2rem;
}

h2 {
    background: linear-gradient(90deg, #ff6ec4, #7873f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1rem;
}

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

.card {
    background: rgba(255, 255, 255, 0.05); /* Glass */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.card img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.card-content {
    margin-top: 1rem;
}

.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    word-wrap: break-word;
    word-break: break-word;
    color: #fff;
}

.card-content a {
    display: inline-block;
    background: linear-gradient(90deg, #ff6ec4, #7873f5);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.card-content a:hover {
    transform: scale(1.05);
}

footer {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #e0e0e0;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

#load-more {
    display: block;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ff6ec4, #7873f5);
    color: #fff;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease, transform 0.2s ease;
}

#load-more:hover {
    transform: scale(1.05);
      }
