﻿/* ============================================
   lsheo Game Portal - Index Page Styles
   New Layout: Spotlight + Scroll Rows + Features
   ============================================ */

/* Featured Spotlight Grid (1 big + 8 small) */
.lsheo-spotlight-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    grid-auto-rows: auto;
    gap: 14px;
    margin-bottom: 36px;
}

.lsheo-spotlight-main {
    grid-column: 1;
    grid-row: span 2;
    position: relative;
    border-radius: var(--lsheo-radius-lg);
    overflow: hidden;
    background: var(--lsheo-bg-card);
    border: 1px solid var(--lsheo-border);
    transition: var(--lsheo-transition);
    min-height: 280px;
}

.lsheo-spotlight-main:hover {
    border-color: var(--lsheo-mint);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lsheo-spotlight-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lsheo-spotlight-main:hover img {
    transform: scale(1.04);
}

.lsheo-spotlight-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(11, 15, 26, 0.95) 0%, transparent 100%);
    z-index: 1;
}

.lsheo-spotlight-main-tag {
    display: inline-block;
    background: var(--lsheo-mint);
    color: #0b0f1a;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.lsheo-spotlight-main-title {
    color: var(--lsheo-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.lsheo-spotlight-main-desc {
    color: var(--lsheo-text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lsheo-spotlight-side {
    position: relative;
    border-radius: var(--lsheo-radius);
    overflow: hidden;
    background: var(--lsheo-bg-card);
    border: 1px solid var(--lsheo-border);
    transition: var(--lsheo-transition);
}

.lsheo-spotlight-side:hover {
    border-color: var(--lsheo-border-hover);
    transform: translateY(-2px);
}

.lsheo-spotlight-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.lsheo-spotlight-side-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(11, 15, 26, 0.9) 0%, transparent 100%);
    z-index: 1;
}

.lsheo-spotlight-side-title {
    color: var(--lsheo-text);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Horizontal Scroll Row */
.lsheo-index-scroll-section {
    margin-bottom: 36px;
}

.lsheo-index-scroll-section .lsheo-scroll-row {
    padding-bottom: 10px;
}

/* Features Strip (replaces stats banner) */
.lsheo-index-features {
    margin: 36px 0;
}

/* Editors Pick - 2 large horizontal cards */
.lsheo-editors-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.lsheo-editor-card {
    display: flex;
    flex-direction: row;
    border-radius: var(--lsheo-radius);
    overflow: hidden;
    background: var(--lsheo-bg-card);
    border: 1px solid var(--lsheo-border);
    transition: var(--lsheo-transition);
}

.lsheo-editor-card:hover {
    border-color: var(--lsheo-mint);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.lsheo-editor-card-img {
    width: 180px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.lsheo-editor-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lsheo-editor-card:hover .lsheo-editor-card-img img {
    transform: scale(1.05);
}

.lsheo-editor-card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.lsheo-editor-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--lsheo-amber);
    font-size: 0.68rem;
    font-weight: 700;
}

.lsheo-editor-card-title {
    color: var(--lsheo-text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.lsheo-editor-card-desc {
    color: var(--lsheo-text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Tabs Section */
.lsheo-tab-section {
    margin-bottom: 36px;
}

.lsheo-tab-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--lsheo-border);
    padding-bottom: 0;
}

.lsheo-tab-btn {
    padding: 10px 18px;
    color: var(--lsheo-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--lsheo-transition);
    margin-bottom: -1px;
    background: none;
    cursor: pointer;
}

.lsheo-tab-btn:hover {
    color: var(--lsheo-text);
}

.lsheo-tab-btn.is-active {
    color: var(--lsheo-mint);
    border-bottom-color: var(--lsheo-mint);
}

.lsheo-tab-panel {
    display: none;
}

.lsheo-tab-panel.is-active {
    display: grid;
}

.lsheo-tab-panel.lsheo-game-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Loading state */
.lsheo-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--lsheo-text-muted);
    font-size: 0.88rem;
}

.lsheo-loading::after {
    content: "...";
    animation: lsheo-dots 1.5s steps(4, end) infinite;
}

@keyframes lsheo-dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80%, 100% { content: "..."; }
}

/* Responsive */
@media (max-width: 1024px) {
    .lsheo-spotlight-grid {
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 12px;
    }

    .lsheo-spotlight-main {
        grid-row: span 2;
        min-height: 240px;
    }

    .lsheo-spotlight-main img {
        aspect-ratio: 3 / 4;
    }

    .lsheo-editors-row {
        grid-template-columns: 1fr;
    }

    .lsheo-tab-panel.lsheo-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .lsheo-spotlight-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .lsheo-spotlight-main {
        grid-column: span 2;
        grid-row: auto;
        min-height: 180px;
    }

    .lsheo-spotlight-main img {
        aspect-ratio: 16 / 9;
    }

    .lsheo-spotlight-main-title {
        font-size: 1rem;
    }

    .lsheo-spotlight-main-desc {
        display: none;
    }

    .lsheo-spotlight-side img {
        aspect-ratio: 1 / 1;
    }

    .lsheo-editors-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lsheo-editor-card {
        flex-direction: column;
    }

    .lsheo-editor-card-img {
        width: 100%;
        height: 160px;
    }

    .lsheo-tab-bar {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .lsheo-tab-bar::-webkit-scrollbar { display: none; }

    .lsheo-tab-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .lsheo-tab-panel.lsheo-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
