/*
 * RecPlay - Homepage Styles
 * Domain: recp.top
 * Hero, featured, category blocks, scroll rows
 */

/* --- Hero welcome section --- */
.rp-hero-welcome {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(20, 184, 166, 0.06) 50%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    padding: 26px 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.rp-hero-welcome::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.06), transparent 70%);
    pointer-events: none;
}

.rp-hero-welcome-text h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--rp-text);
    margin-bottom: 6px;
}

.rp-hero-welcome-text h1 span {
    color: var(--rp-primary);
}

.rp-hero-welcome-text p {
    color: var(--rp-text-mid);
    font-size: 0.86rem;
}

.rp-hero-stats {
    display: flex;
    gap: 22px;
    flex-shrink: 0;
}

.rp-hero-stat {
    text-align: center;
}

.rp-hero-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--rp-primary);
    display: block;
    line-height: 1.2;
}

.rp-hero-stat-label {
    font-size: 0.68rem;
    color: var(--rp-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Category quick nav pills --- */
.rp-cat-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.rp-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-full);
    color: var(--rp-text-mid);
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--rp-ease);
}

.rp-cat-pill:hover,
.rp-cat-pill.is-active {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--rp-primary);
}

.rp-cat-pill-icon { font-size: 1rem; }

/* --- Trending horizontal scroll strip --- */
.rp-trending-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--rp-border) transparent;
    margin-bottom: 32px;
}

.rp-trending-strip::-webkit-scrollbar { height: 4px; }
.rp-trending-strip::-webkit-scrollbar-track { background: transparent; }
.rp-trending-strip::-webkit-scrollbar-thumb { background: var(--rp-border); border-radius: 4px; }

.rp-trending-card {
    flex: 0 0 270px;
    scroll-snap-align: start;
    border-radius: var(--rp-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    transition: var(--rp-ease);
}

.rp-trending-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: var(--rp-shadow-md);
}

.rp-trending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.rp-trending-card:hover img { transform: scale(1.05); }

.rp-trending-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
}

.rp-trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--rp-primary), #fb923c);
    color: #1e293b;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rp-trending-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 3px;
}

.rp-trending-cat {
    font-size: 0.7rem;
    color: var(--rp-text-mid);
}

/* --- New releases compact grid --- */
.rp-new-releases-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.rp-new-releases-grid .rp-game-card {
    border-radius: var(--rp-radius-sm);
}

.rp-new-releases-grid .rp-game-thumb {
    aspect-ratio: 3 / 4;
}

.rp-new-releases-grid .rp-game-name {
    font-size: 0.74rem;
    min-height: auto;
    -webkit-line-clamp: 1;
}

.rp-new-releases-grid .rp-game-desc {
    display: none;
}

.rp-new-releases-grid .rp-game-body {
    padding: 10px 12px 12px;
}

/* --- Featured spotlight --- */
.rp-spotlight {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    padding: 26px;
    margin-bottom: 32px;
    display: flex;
    gap: 26px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.rp-spotlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rp-primary), var(--rp-accent), var(--rp-highlight));
}

.rp-spotlight-cover {
    width: 190px;
    flex-shrink: 0;
    border-radius: var(--rp-radius);
    overflow: hidden;
    box-shadow: var(--rp-shadow-md);
    border: 1px solid var(--rp-border);
}

.rp-spotlight-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rp-spotlight-info {
    flex: 1;
    min-width: 0;
}

.rp-spotlight-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--rp-primary), #fb923c);
    color: #1e293b;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--rp-radius-full);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rp-spotlight-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rp-text);
    margin-bottom: 10px;
}

.rp-spotlight-desc {
    color: var(--rp-text-mid);
    font-size: 0.84rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.rp-spotlight-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rp-spotlight-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--rp-text-soft);
    font-size: 0.76rem;
}

.rp-spotlight-meta-item span {
    color: var(--rp-text-mid);
    font-weight: 600;
}

.rp-spotlight-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--rp-primary), var(--rp-primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: var(--rp-radius-full);
    transition: var(--rp-ease);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.rp-spotlight-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

/* --- Daily pick widget --- */
.rp-daily-pick {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(20, 184, 166, 0.15);
    border-radius: var(--rp-radius-lg);
    padding: 22px 26px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.rp-daily-pick::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -5%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06), transparent 70%);
    pointer-events: none;
}

.rp-daily-info { flex: 1; }

.rp-daily-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rp-accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.rp-daily-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 5px;
}

.rp-daily-desc {
    color: var(--rp-text-mid);
    font-size: 0.8rem;
}

.rp-daily-countdown {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.rp-countdown-block {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    padding: 10px 14px;
    text-align: center;
    min-width: 54px;
}

.rp-countdown-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rp-accent);
    display: block;
    line-height: 1.2;
}

.rp-countdown-label {
    font-size: 0.58rem;
    color: var(--rp-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Tag cloud --- */
.rp-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.rp-tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-full);
    color: var(--rp-text-mid);
    font-size: 0.76rem;
    font-weight: 500;
    transition: var(--rp-ease);
}

.rp-tag-cloud-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: var(--rp-highlight);
}

.rp-tag-cloud-count {
    background: rgba(245, 158, 11, 0.1);
    color: var(--rp-primary);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--rp-radius-full);
}

/* --- Live stats bar --- */
.rp-live-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.rp-stat-card {
    flex: 1;
    min-width: 130px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--rp-ease);
}

.rp-stat-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
}

.rp-stat-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.rp-stat-info { flex: 1; }

.rp-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rp-text);
    display: block;
    line-height: 1.2;
}

.rp-stat-label {
    font-size: 0.68rem;
    color: var(--rp-text-soft);
}

.rp-stat-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    color: var(--rp-success);
    font-weight: 600;
}

.rp-stat-live::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--rp-success);
    border-radius: 50%;
    animation: rp-pulse-dot 1.5s infinite;
}

@keyframes rp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* --- Genre spotlight blocks --- */
.rp-genre-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.rp-genre-block {
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 20px;
    transition: var(--rp-ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rp-genre-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--genre-color, var(--rp-primary));
    opacity: 0.6;
    transition: opacity 0.3s;
}

.rp-genre-block:hover::before { opacity: 1; }

.rp-genre-block:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: var(--rp-shadow-md);
}

.rp-genre-block-icon {
    font-size: 1.8rem;
}

.rp-genre-block-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rp-text);
}

.rp-genre-block-count {
    font-size: 0.72rem;
    color: var(--rp-text-soft);
}

.rp-genre-block-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--rp-text-soft);
    font-size: 1.1rem;
    transition: var(--rp-ease);
}

.rp-genre-block:hover .rp-genre-block-arrow {
    color: var(--rp-primary);
    transform: translateX(3px);
}

/* --- Category game grid (all category sections) --- */
.rp-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.rp-cat-grid .rp-game-card {
    border-radius: var(--rp-radius-sm);
}

.rp-cat-grid .rp-game-thumb {
    aspect-ratio: 3 / 4;
}

.rp-cat-grid .rp-game-name {
    font-size: 0.74rem;
    min-height: auto;
    -webkit-line-clamp: 1;
}

.rp-cat-grid .rp-game-desc {
    display: none;
}

.rp-cat-grid .rp-game-body {
    padding: 10px 12px 12px;
}

/* --- Load more button --- */
.rp-load-more-wrap {
    text-align: center;
    margin-top: 22px;
}

.rp-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--rp-bg-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-full);
    color: var(--rp-text-mid);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--rp-ease);
    cursor: pointer;
}

.rp-load-more-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--rp-primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .rp-new-releases-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .rp-cat-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .rp-genre-blocks {
        grid-template-columns: repeat(2, 1fr);
    }

    .rp-spotlight {
        flex-direction: column;
        text-align: center;
    }

    .rp-spotlight-cover { width: 150px; }
    .rp-spotlight-meta { justify-content: center; }
    .rp-spotlight-play { margin: 0 auto; }

    .rp-hero-welcome {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }

    .rp-hero-stats { justify-content: center; }

    .rp-daily-pick {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .rp-daily-countdown { justify-content: center; }

    .rp-live-stats { gap: 12px; }
    .rp-stat-card { min-width: 0; }
}

@media (max-width: 768px) {
    .rp-new-releases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .rp-cat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .rp-genre-blocks {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rp-spotlight {
        padding: 16px;
        gap: 14px;
    }
    .rp-spotlight-cover { width: 120px; }
    .rp-spotlight-title { font-size: 1rem; }
    .rp-spotlight-desc { font-size: 0.8rem; }

    .rp-daily-pick {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .rp-daily-countdown { justify-content: center; }
    .rp-countdown-block { min-width: 46px; padding: 8px 10px; }
    .rp-countdown-num { font-size: 1.05rem; }

    .rp-live-stats { gap: 10px; }
    .rp-stat-card { min-width: 0; padding: 12px 14px; gap: 10px; }
    .rp-stat-value { font-size: 0.92rem; }
    .rp-stat-icon { font-size: 1.2rem; }

    .rp-hero-welcome {
        padding: 16px;
        gap: 12px;
    }
    .rp-hero-welcome-text h1 { font-size: 1.05rem; }
    .rp-hero-welcome-text p { font-size: 0.8rem; }
    .rp-hero-stats { gap: 14px; }
    .rp-hero-stat-num { font-size: 0.95rem; }
    .rp-hero-stat-label { font-size: 0.6rem; }

    .rp-cat-nav { gap: 8px; }
    .rp-cat-pill { padding: 8px 14px; font-size: 0.74rem; }

    .rp-trending-strip { gap: 12px; }
    .rp-trending-card { flex: 0 0 230px; }

    .rp-cat-grid { gap: 10px; }

    .rp-tags-cloud { gap: 8px; }
    .rp-tag-cloud-item { padding: 6px 14px; font-size: 0.7rem; }
}

@media (max-width: 380px) {
    .rp-new-releases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .rp-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .rp-genre-blocks {
        grid-template-columns: 1fr;
    }

    .rp-hero-welcome { padding: 14px; }
    .rp-hero-welcome-text h1 { font-size: 0.95rem; }
    .rp-hero-stats { gap: 10px; }
    .rp-hero-stat-num { font-size: 0.85rem; }

    .rp-stat-card { padding: 10px 12px; }
    .rp-stat-value { font-size: 0.82rem; }
    .rp-stat-label { font-size: 0.6rem; }

    .rp-spotlight { padding: 14px; }
    .rp-spotlight-cover { width: 100px; }
    .rp-spotlight-title { font-size: 0.9rem; }

    .rp-daily-pick { padding: 14px; }
    .rp-daily-title { font-size: 0.95rem; }

    .rp-trending-card { flex: 0 0 190px; }

}
