/* Modern Dark Theme for Game Portal */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #EAEAEA;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 3.5em;
    font-weight: 700;
    color: #00A8FF;
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    color: #AAAAAA;
}

.search-container {
    margin: 30px 0;
}

#searchInput {
    width: 100%;
    padding: 15px 25px;
    background-color: #1E1E1E;
    border: 2px solid #333;
    border-radius: 50px;
    color: #EAEAEA;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#searchInput:focus {
    border-color: #00A8FF;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid #333;
    color: #AAAAAA;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #00A8FF;
    border-color: #00A8FF;
    color: #121212;
}

.filter-btn.active {
    background-color: #00A8FF;
    border-color: #00A8FF;
    color: #121212;
    font-weight: 700;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    transition: all 0.5s ease-in-out;
}

.game-card {
    background-color: #1E1E1E;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.3), 0 0 15px rgba(0, 168, 255, 0.2);
}

.game-card.hidden {
    transform: scale(0.8);
    opacity: 0;
    display: none;
}

.game-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 2px solid #00A8FF;
}

.game-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #EAEAEA;
}

.game-card-content p {
    color: #AAAAAA;
    font-size: 0.9em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.play-btn {
    display: block;
    background: #00A8FF;
    color: #121212;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
}

.play-btn:hover {
    background-color: #00c6ff; 
    transform: scale(1.05);
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #AAAAAA;
}

/* Featured Section */
.featured-container {
    margin-bottom: 50px;
    position: relative;
    width: 100%;
    height: 400px; /* Adjust as needed */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18,18,18,1) 0%, rgba(18,18,18,0.5) 50%, rgba(18,18,18,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.featured-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.featured-description {
    font-size: 1.2em;
    color: #EAEAEA;
    max-width: 60%;
}

@media (max-width: 768px) {
    header h1 { font-size: 2.5em; }
    .games-container { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .featured-container { height: 300px; }
    .featured-title { font-size: 2em; }
    .featured-description { max-width: 80%; }
}

@media (max-width: 480px) {
    body { padding: 10px; }
    .container { padding: 10px; }
    .games-container { grid-template-columns: 1fr; }
    .featured-container { height: 250px; }
    .featured-title { font-size: 1.5em; }
    .featured-description { display: none; }
}
