/* Main content container */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Section headers */
.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* Games grid - Restored to multi-column */
.games-grid,
.games-grid-steam {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

/* Game card */
.game-card,
.game-card-steam {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.game-card:hover,
.game-card-steam:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

/* Game image container */
.game-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
}

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

/* Status badge (e.g., Inscripciones abiertas) */
.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

/* Game info section */
.game-info {
    padding: 20px;
    background: #0d0d0d;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-title {
    font-size: 16px;
    font-weight: 700;
    color: #ef4444;
    /* Match red title from image */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-subtitle {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-footer-info {
    margin-top: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 8px;
    font-weight: 400;
}


/* Featured section */
.featured-carousel {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 16px 16px;
}

.featured-overlay .featured-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.featured-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

/* Search Bar - Modern Style */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #8a2be2;
    border-radius: 12px;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    transform: translateY(-1px);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 10px 12px;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#searchBtn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#searchBtn:hover {
    transform: scale(1.1);
}

/* Sidebar adjustments */
.sidebar-block h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

/* Category filters */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #8a2be2;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: transparent;
    color: #fff;
}

/* Filter Dropdown */
.filter-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

#filterBtn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-left: 1px solid #8a2be2;
    margin-left: 4px;
}

#filterBtn:hover,
#filterBtn.active {
    color: #ffffff;
}

.filter-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #8a2be2;
    border-radius: 12px;
    width: 180px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.filter-menu.show {
    display: block;
    animation: fadeInDown 0.2s ease-out;
}

.filter-option {
    padding: 12px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 600;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .games-grid,
    .games-grid-steam {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .main-content {
        padding: 2rem 1rem;
    }

    .featured-carousel {
        height: 300px;
    }
}

@media (max-width: 480px) {

    .games-grid,
    .games-grid-steam {
        grid-template-columns: 1fr;
    }
}