/* ==========================================================================
   ZAPPYWIN - EXPLORE GAMES DIRECTORY STYLES
   ========================================================================== */

.explore-page-wrapper {
    padding-top: 14px;
    padding-bottom: 90px;
}

/* --------------------------------------------------------------------------
   Explore Header & Banner
   -------------------------------------------------------------------------- */
.explore-header-section {
    margin-bottom: 12px;
}

.explore-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--zw-text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: var(--zw-transition);
}

.explore-back-link:hover {
    color: var(--zw-accent);
    transform: translateX(-3px);
}

.explore-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    padding: 4px 10px;
    border-radius: 50px;
}

.live-dot-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: live-blink 1.4s infinite alternate;
}

@keyframes live-blink {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.explore-banner-card {
    background: linear-gradient(135deg, #101522 0%, #0a0d14 100%);
    border: 1px solid var(--zw-border-subtle);
    border-radius: var(--zw-radius-md);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.explore-banner-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 200, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.explore-title-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--zw-accent);
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.explore-main-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.explore-subtitle {
    font-size: 0.8rem;
    color: var(--zw-text-secondary);
    margin: 4px 0 0 0;
    max-width: 540px;
}

.explore-stats-pill {
    background: rgba(255, 200, 0, 0.08);
    border: 1px solid rgba(255, 200, 0, 0.25);
    padding: 8px 16px;
    border-radius: var(--zw-radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
}

.explore-stats-number {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--zw-accent);
    line-height: 1.1;
}

.explore-stats-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--zw-text-muted);
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   Search Bar
   -------------------------------------------------------------------------- */
.explore-search-wrapper {
    position: relative;
    width: 100%;
}

.explore-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--zw-text-muted);
    font-size: 0.88rem;
    pointer-events: none;
    transition: var(--zw-transition);
}

.explore-search-input {
    width: 100%;
    background: #080a0f;
    border: 1px solid #1c2436;
    border-radius: 50px;
    padding: 10px 42px 10px 38px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: var(--zw-transition);
}

.explore-search-input:focus {
    border-color: var(--zw-accent);
    box-shadow: 0 0 0 3px rgba(255, 200, 0, 0.15);
    background: #0c0f17;
}

.explore-search-input:focus ~ .search-icon {
    color: var(--zw-accent);
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--zw-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-clear-search:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Category Filter Tabs
   -------------------------------------------------------------------------- */
.explore-category-nav-wrapper {
    position: sticky;
    top: 54px;
    z-index: 20;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(12px);
    padding: 8px 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.explore-category-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.explore-category-scroll::-webkit-scrollbar {
    display: none;
}

.explore-cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #111624;
    border: 1px solid #1e2638;
    color: var(--zw-text-secondary);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--zw-transition);
}

.explore-cat-tab:hover {
    background: #182033;
    border-color: #2b364e;
    color: #fff;
    transform: translateY(-1px);
}

.explore-cat-tab.active {
    background: linear-gradient(135deg, #ffc800 0%, #e6a800 100%);
    border-color: #ffc800;
    color: #07090e;
    box-shadow: 0 4px 14px rgba(255, 200, 0, 0.35);
}

.explore-cat-tab.active i {
    color: #07090e !important;
}

.cat-count {
    background: rgba(0, 0, 0, 0.35);
    color: inherit;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 800;
}

.explore-cat-tab.active .cat-count {
    background: rgba(0, 0, 0, 0.2);
    color: #07090e;
}

/* --------------------------------------------------------------------------
   Filter Info Bar
   -------------------------------------------------------------------------- */
.explore-filter-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 4px 2px;
    font-size: 0.78rem;
    color: var(--zw-text-secondary);
}

.active-filter-badge {
    color: var(--zw-accent);
    font-weight: 800;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Game Grid Layout (No Overflow, minmax(0, 1fr) for Mobile & Desktop)
   -------------------------------------------------------------------------- */
.explore-games-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Mobile Small & Medium (< 576px) */
@media (max-width: 575.98px) {
    .explore-games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }
}

/* Tablet Portrait (576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .explore-games-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Tablet Landscape (768px - 1023.98px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .explore-games-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Desktop Standard (1024px - 1399.98px) */
@media (min-width: 1024px) and (max-width: 1399.98px) {
    .explore-games-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Large Desktop (>= 1400px) */
@media (min-width: 1400px) {
    .explore-games-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

/* --------------------------------------------------------------------------
   Game Card Styles (Strict box-sizing & min-width: 0)
   -------------------------------------------------------------------------- */
.explore-game-item {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    transition: var(--zw-transition);
}

.explore-game-item.d-none {
    display: none !important;
}

.explore-card-inner {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    background: #0d111a;
    border: 1px solid #1a2233;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--zw-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.explore-card-inner:hover {
    border-color: var(--zw-accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(255, 200, 0, 0.2);
}

.explore-thumb-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: #06080d;
    overflow: hidden;
}

.explore-game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.explore-card-inner:hover .explore-game-thumb {
    transform: scale(1.08);
}

/* Badges */
.explore-badge-hot {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ff334b 0%, #d50000 100%);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 51, 75, 0.4);
}

.explore-badge-provider {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--zw-accent);
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
    border: 1px solid rgba(255, 200, 0, 0.25);
}

/* Hover Overlay */
.explore-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 3;
}

.explore-card-inner:hover .explore-play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--zw-accent);
    color: #07090e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 0 14px rgba(255, 200, 0, 0.6);
    transform: scale(0.85);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.explore-card-inner:hover .play-btn-circle {
    transform: scale(1);
}

.play-btn-circle i {
    margin-left: 2px;
}

.play-text {
    font-size: 0.62rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.6px;
}

/* Card Footer */
.explore-card-footer {
    background: #0c0f17;
    padding: 7px 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.explore-game-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.explore-card-inner:hover .explore-game-title {
    color: var(--zw-accent);
}

.explore-game-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--zw-text-muted);
}

.explore-meta-cat {
    color: #8a99b5;
    font-weight: 600;
}

.explore-meta-uid {
    font-family: monospace;
    font-size: 0.58rem;
    color: var(--zw-text-muted);
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.explore-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #0d111a;
    border: 1px dashed #1e2638;
    border-radius: var(--zw-radius-md);
    margin-bottom: 40px;
}

.empty-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 200, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zw-accent);
    font-size: 1.6rem;
}

.empty-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.empty-desc {
    color: var(--zw-text-muted);
    font-size: 0.82rem;
    max-width: 400px;
    margin: 0 auto 18px;
}

.btn-reset-filters {
    background: var(--zw-accent);
    color: #07090e;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--zw-transition);
}

.btn-reset-filters:hover {
    background: var(--zw-accent-hover);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Load More Progressive Pagination
   -------------------------------------------------------------------------- */
.explore-load-more-wrapper {
    padding: 20px 10px 40px 10px;
    margin: 0 auto;
    max-width: 440px;
}

.load-more-progress-container {
    width: 100%;
}

.load-more-info {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.load-more-progress-track {
    width: 100%;
    height: 6px;
    background: #141926;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.load-more-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffc800 0%, #ff9100 100%);
    border-radius: 10px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.5);
}

.btn-load-more-games {
    background: #0f1420;
    border: 1px solid rgba(255, 200, 0, 0.35);
    color: #ffc800;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--zw-transition);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.btn-load-more-games:hover {
    background: var(--zw-accent);
    color: #07090e;
    border-color: var(--zw-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 200, 0, 0.35);
}

.btn-load-more-games:active {
    transform: translateY(0);
}

.btn-load-more-games:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.load-more-end-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: #00e676;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 50px;
    letter-spacing: 0.2px;
}

