/* Frontend styles for the Game Filter block - matches existing theme styles */
.games__filters {
    background: #2a1f5c;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Category navigation styling */
.games__category-menu {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.games__category-item {
    margin: 0;
}

.games__category-link {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.games__category-link:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.games__category-link--current {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.1);
}

/* Provider and search section */
.games__provider-search {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Provider dropdown styling */
.games__provider {
    position: relative;
}

.games__provider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.3s ease;
}

.games__provider-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.games__provider-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.games__provider-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
}

/* Sort dropdown styling */
.games__alphabet {
    position: relative;
}

.games__alphabet-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s ease;
}

.games__alphabet-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.games__alphabet-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.games__alphabet-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
}

/* Search button styling */
.games__search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.games__search:hover {
    background: rgba(255, 255, 255, 0.15);
}

.games__search a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.games__search img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* Dropdown menu styling */
.games__provider-menu,
.games__alphabet-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.games__provider-menu li,
.games__alphabet-menu li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.games__provider-menu li:hover,
.games__alphabet-menu li:hover {
    background-color: #f5f5f5;
}

.games__provider-menu li:last-child,
.games__alphabet-menu li:last-child {
    border-bottom: none;
}

/* Category link active state */
.games__category-link--current {
    /* Inherits existing theme active styles */
}

/* No results message styling */
.no-games-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-games-found .games__item {
    border: 2px dashed #ddd;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.no-games-found .games__item-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.no-games-found .games__item-provider {
    font-size: 14px;
    color: #666;
}

/* Filtered out items */
.games__item.filtered-out {
    display: none !important;
}

/* Remove white background from welcome section when Game Filter block is present */
.welcome__inner.has-game-filter {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.games__headline--popular h3 {
    color: #ffffff !important;
}

.games__headline h3{
  color: #ffffff !important;
}

.welcome__inner.has-game-filter  .games{
padding-top:0px;
padding-bottom:0px;
}

/* Full width container */
.wp-block-spinbit-game-filter {
    width: 100%;
    max-width: 100%;
}

.wp-block-spinbit-game-filter .games__filters {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .games__filters {
        padding: 12px 15px;
    }

    .games__category-menu {
        justify-content: center;
    }

    .games__category-link {
        padding: 6px 12px;
        font-size: 11px;
    }

    .games__provider-search {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .games__provider-btn,
    .games__alphabet-btn {
        min-width: 100%;
        justify-content: center;
    }

    .games__search {
        align-self: center;
        width: 50px;
    }
}

@media (min-width: 769px) {
    .games__provider-search {
        justify-content: flex-end;
    }
}
