/* ============================================
   FunsGang - Index Page Styles
   Enhanced Homepage Components
   ============================================ */

.gh-featured-wrap {
    margin-bottom: 28px;
}

.gh-cat-wrap {
    margin-bottom: 28px;
}

.gh-grid.gh-loading .gh-card {
    opacity: 0.5;
    pointer-events: none;
}

.gh-grid-empty {
    text-align: center;
    padding: 36px 18px;
    color: #6b6880;
    font-size: 0.92rem;
}

/* ============================================
   1. Hero Spotlight Banner
   ============================================ */

.gh-hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px 40px;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
    background: linear-gradient(135deg, #1a1832 0%, #2d1f4e 50%, #1a1832 100%);
    border: 1px solid rgba(255, 107, 107, 0.15);
}

.gh-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255, 107, 107, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(238, 90, 36, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.gh-hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.gh-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fffffe;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.gh-hero-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fffffe;
    margin-bottom: 10px;
    line-height: 1.2;
}

.gh-hero-desc {
    font-size: 0.9rem;
    color: #a7a4b8;
    line-height: 1.6;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-hero-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fffffe;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}

.gh-hero-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
}

.gh-hero-play-icon {
    font-size: 0.8rem;
}

.gh-hero-poster {
    flex-shrink: 0;
    width: 180px;
    position: relative;
    z-index: 2;
}

.gh-hero-poster img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 107, 107, 0.2);
}

/* ============================================
   2. Stats Counter Bar
   ============================================ */

.gh-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #1a1832, #231f3a);
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.gh-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gh-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ffa36b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gh-stat-label {
    font-size: 0.75rem;
    color: #6b6880;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ============================================
   3. Category Quick Access Cards
   ============================================ */

.gh-categories-nav {
    margin-bottom: 32px;
}

.gh-cat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gh-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    background: #1e1c2e;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    text-decoration: none;
}

.gh-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.2);
}

.gh-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gh-cat-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fffffe;
}

.gh-cat-count {
    font-size: 0.72rem;
    color: #6b6880;
}

/* ============================================
   4. Editor's Pick
   ============================================ */

.gh-editors-pick {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #1e1c2e 0%, #2a1f42 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 107, 0.12);
    position: relative;
    overflow: hidden;
}

.gh-editors-pick::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.gh-ep-left {
    flex: 1;
    position: relative;
    z-index: 2;
}

.gh-ep-badge {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, #ff6b6b, #ffa36b);
    color: #fffffe;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.gh-ep-left h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fffffe;
    margin-bottom: 10px;
}

.gh-ep-desc {
    font-size: 0.88rem;
    color: #a7a4b8;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-ep-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.gh-ep-rating {
    font-size: 0.85rem;
    color: #ffa36b;
    font-weight: 600;
}

.gh-ep-type {
    font-size: 0.78rem;
    color: #a7a4b8;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.gh-ep-right {
    flex-shrink: 0;
    width: 200px;
    position: relative;
    z-index: 2;
}

.gh-ep-right img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 107, 107, 0.15);
}

/* ============================================
   6. Trending Games Horizontal Scroll
   ============================================ */

.gh-trending-section {
    margin-bottom: 32px;
}

.gh-trending-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 107, 0.3) transparent;
}

.gh-trending-scroll::-webkit-scrollbar {
    height: 4px;
}

.gh-trending-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gh-trending-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.3);
    border-radius: 4px;
}

.gh-trending-track {
    display: flex;
    gap: 14px;
    min-width: max-content;
}

.gh-trending-card {
    flex-shrink: 0;
    width: 140px;
    background: #1e1c2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.gh-trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.2);
}

.gh-trending-card a {
    display: block;
}

.gh-trending-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gh-trending-card .gh-trending-name {
    padding: 8px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #e8e6f0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.gh-trending-card .gh-trending-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fffffe;
}

.gh-trending-card {
    position: relative;
}

/* ============================================
   8. Platform Features Section
   ============================================ */

.gh-features-section {
    margin-bottom: 32px;
}

.gh-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gh-feature-card {
    text-align: center;
    padding: 28px 18px;
    background: #1e1c2e;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.gh-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 107, 0.15);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.1);
}

.gh-feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.gh-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fffffe;
    margin-bottom: 8px;
}

.gh-feature-card p {
    font-size: 0.8rem;
    color: #a7a4b8;
    line-height: 1.6;
}

/* ============================================
   9. Dual Section (Boys & Girls Side by Side)
   ============================================ */

.gh-dual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.gh-dual-col .gh-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 0;
}

/* ============================================
   11. Tag Cloud
   ============================================ */

.gh-tags-section {
    margin-bottom: 32px;
}

.gh-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #1a1832;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 107, 0.08);
}

.gh-cloud-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #a7a4b8;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.gh-cloud-tag:hover {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    transform: translateY(-1px);
}

.gh-tag-md {
    font-size: 0.85rem;
    padding: 7px 18px;
    color: #e8e6f0;
    background: rgba(255, 107, 107, 0.06);
    border-color: rgba(255, 107, 107, 0.12);
}

.gh-tag-lg {
    font-size: 0.92rem;
    padding: 8px 20px;
    font-weight: 600;
    color: #fffffe;
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.18);
}

/* ============================================
   Responsive - Tablet
   ============================================ */

@media (max-width: 1024px) {
    .gh-hero-banner {
        padding: 28px;
        gap: 24px;
    }

    .gh-hero-title {
        font-size: 1.5rem;
    }

    .gh-hero-poster {
        width: 150px;
    }

    .gh-cat-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .gh-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gh-dual-col .gh-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */

@media (max-width: 768px) {
    .gh-hero-banner {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
        min-height: auto;
    }

    .gh-hero-title {
        font-size: 1.3rem;
    }

    .gh-hero-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .gh-hero-poster {
        width: 120px;
        order: -1;
    }

    .gh-stats-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .gh-stat-item {
        width: 45%;
    }

    .gh-stat-num {
        font-size: 1.3rem;
    }

    .gh-cat-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .gh-cat-card {
        padding: 12px 8px;
    }

    .gh-cat-icon {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .gh-cat-name {
        font-size: 0.76rem;
    }

    .gh-cat-count {
        display: none;
    }

    .gh-editors-pick {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }

    .gh-ep-right {
        width: 160px;
    }

    .gh-ep-meta {
        justify-content: center;
    }

    .gh-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gh-feature-card {
        padding: 20px 14px;
    }

    .gh-dual-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gh-dual-col .gh-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gh-tag-cloud {
        gap: 8px;
        padding: 14px;
    }

    .gh-cloud-tag {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .gh-tag-md {
        font-size: 0.78rem;
    }

    .gh-tag-lg {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gh-cat-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .gh-cat-card {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .gh-cat-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .gh-features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gh-feature-card {
        padding: 16px 10px;
    }

    .gh-feature-icon {
        font-size: 1.6rem;
    }

    .gh-feature-card h3 {
        font-size: 0.82rem;
    }

    .gh-feature-card p {
        font-size: 0.72rem;
    }

    .gh-dual-col .gh-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
