/*
 * Gaya tambahan LevelUp Market.
 * Dipisah dari style.css bawaan tema supaya tidak hilang saat tema diperbarui.
 */

:root {
    --lu-accent: #a3e635;
    --lu-card-bg: #1e2430;
    --lu-card-bg-hover: #262d3b;
    --lu-text-muted: #9aa4b2;
    --lu-border: rgba(255, 255, 255, .08);
}

/* ---------------------------------------------------------------
   Baris persetujuan pada form review
   --------------------------------------------------------------- */
.agree-terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-left: 0;
    list-style: none;
}

.agree-terms-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--lu-accent);
    cursor: pointer;
}

.agree-terms-row label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--lu-text-muted);
    cursor: pointer;
}

/* ---------------------------------------------------------------
   Judul section dengan emoji
   --------------------------------------------------------------- */
.lu-section {
    padding: 56px 0 8px;
}

.lu-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.lu-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(20px, 3.2vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.lu-section-title .lu-emoji {
    font-size: 1.05em;
    line-height: 1;
    display: inline-block;
}

/* Api yang berkedip-kedip. Dimatikan kalau pengguna minta kurangi animasi. */
.lu-emoji-fire {
    transform-origin: 50% 85%;
    animation: lu-flicker 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 138, 0, .55));
}

@keyframes lu-flicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    25%      { transform: scale(1.12) rotate(2deg); }
    50%      { transform: scale(.97) rotate(-1deg); }
    75%      { transform: scale(1.08) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .lu-emoji-fire { animation: none; filter: none; }
}

/* ---------------------------------------------------------------
   Kartu katalog
   --------------------------------------------------------------- */
.lu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.lu-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--lu-card-bg);
    border: 1px solid var(--lu-border);
    text-decoration: none;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.lu-card:hover,
.lu-card:focus-visible {
    transform: translateY(-4px);
    border-color: var(--lu-accent);
    background: var(--lu-card-bg-hover);
}

.lu-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #11161f;
}

.lu-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lu-card-body {
    padding: 12px 12px 14px;
}

.lu-card-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lu-card-publisher {
    margin: 0;
    font-size: 12px;
    color: var(--lu-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lu-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    background: rgba(0, 0, 0, .68);
    color: var(--lu-accent);
    backdrop-filter: blur(4px);
}

/* ---------------------------------------------------------------
   Tab + pencarian katalog
   --------------------------------------------------------------- */
.lu-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lu-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Tanpa min-width:0 sebuah flex item menolak menyusut di bawah lebar isinya,
       dan deretan tab ini akan menjebol lebar layar di perangkat kecil. */
    min-width: 0;
    max-width: 100%;
}

.lu-tab {
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--lu-border);
    background: transparent;
    color: var(--lu-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.lu-tab:hover { color: #fff; border-color: rgba(163, 230, 53, .5); }

.lu-tab[aria-selected="true"] {
    color: #0d1117;
    background: var(--lu-accent);
    border-color: var(--lu-accent);
}

.lu-tab-count {
    opacity: .7;
    font-weight: 500;
    margin-left: 4px;
}

.lu-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 0;
    max-width: 380px;
}

.lu-search input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    border-radius: 10px;
    border: 1px solid var(--lu-border);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.lu-search input::placeholder { color: var(--lu-text-muted); }
.lu-search input:focus { border-color: var(--lu-accent); }

.lu-search .lu-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lu-text-muted);
    pointer-events: none;
}

.lu-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--lu-text-muted);
    font-size: 18px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
}

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

.lu-empty {
    padding: 44px 16px;
    text-align: center;
    color: var(--lu-text-muted);
    border: 1px dashed var(--lu-border);
    border-radius: 14px;
}

.lu-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.lu-more {
    padding: 12px 30px;
    border-radius: 10px;
    border: 1px solid var(--lu-accent);
    background: transparent;
    color: var(--lu-accent);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.lu-more:hover { background: var(--lu-accent); color: #0d1117; }

.lu-card[hidden] { display: none !important; }

/* ---------------------------------------------------------------
   Blok intro SEO
   --------------------------------------------------------------- */
.lu-intro {
    max-width: 880px;
    margin: 0 auto 40px;
    text-align: center;
}

.lu-intro h1,
.lu-intro h2 {
    font-size: clamp(22px, 3.6vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 14px;
}

.lu-intro p {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.75;
    color: var(--lu-text-muted);
    margin: 0 auto 10px;
}

.lu-intro strong { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------
   Penyesuaian layar kecil
   --------------------------------------------------------------- */
@media (max-width: 991px) {
    .lu-section { padding: 40px 0 8px; }
}

@media (max-width: 767px) {
    .lu-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
    .lu-toolbar { flex-direction: column; align-items: stretch; }
    .lu-search { flex: 0 0 auto; max-width: none; width: 100%; }

    /* Tab digeser menyamping supaya tidak menumpuk di layar sempit */
    .lu-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .lu-tab { flex: 0 0 auto; }
    .lu-tabs::-webkit-scrollbar { display: none; }
}

@media (max-width: 479px) {
    .lu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .lu-card-name { font-size: 13px; }
    .lu-card-body { padding: 10px 10px 12px; }
}

/* Hero actions retain the existing LevelUp navy/lime identity. */
.banner-slider .banner-btn-area {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.banner-slider .banner-btn-area .banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 24px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 12px;
    background: rgba(24,31,40,.72);
    color: #fff;
    font-weight: 700;
    text-transform: none;
    line-height: 1.4;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.banner-slider .banner-btn-area .banner-btn:first-child {
    background: #9cff1e;
    border-color: #9cff1e;
    color: #182020;
    box-shadow: 0 6px 22px rgba(156,255,30,.14);
}
.banner-slider .banner-btn-area .banner-btn:hover {
    transform: translateY(-2px);
    border-color: #9cff1e;
    background: #303c45;
}
.banner-slider .banner-btn-area .banner-btn:first-child:hover { background: #b3ff59; }
.banner-slider .banner-btn-area .banner-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}
.lu-brand-intro { position: relative; isolation: isolate; overflow: hidden; }
.lu-brand-intro::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    right: -65px;
    top: 0;
    opacity: .055;
    pointer-events: none;
    background: url('/images/brand/favicon-original.png') center / contain no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
    .lu-brand-intro::before {
        background-image: url('https://res.cloudinary.com/boxityapp/image/upload/v1730820799/levelupgaming/donation/ccterurxh9rxeaglqikl.gif');
    }
}
@media (prefers-reduced-motion: reduce) {
    .banner-slider .banner-btn-area .banner-btn { transition: none; }
    .banner-slider .banner-btn-area .banner-btn:hover { transform: none; }
}
@media (max-width: 480px) {
    .banner-slider .banner-btn-area .banner-btn { flex: 1 1 140px; padding: 12px 16px; }
    .lu-brand-intro::before { width: 190px; height: 190px; right: -70px; opacity: .035; }
}

/* ---------------------------------------------------------------
   Dinding ulasan bergerak
   --------------------------------------------------------------- */
.lu-wall-section {
    padding-bottom: 72px;
}

/* Ringkasan penilaian */
.lu-wall-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto 14px;
    padding: 10px 20px;
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--lu-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
}

.lu-wall-avatars {
    display: flex;
    align-items: center;
}

.lu-wall-avatars .lu-avatar {
    margin-right: -10px;
    border: 2px solid #1b2230;
}

.lu-wall-avatars .lu-avatar:last-child {
    margin-right: 4px;
}

.lu-wall-stars {
    display: inline-flex;
    gap: 2px;
    color: #4b5563;
    font-size: 15px;
}

.lu-wall-stars .is-on {
    color: #fbbf24;
}

.lu-wall-score {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.lu-wall-count {
    color: var(--lu-text-muted);
    font-size: 13px;
}

.lu-wall-note {
    text-align: center;
    color: var(--lu-text-muted);
    font-size: 13px;
    margin: 0 auto 30px;
    max-width: 620px;
}

/* Avatar inisial */
.lu-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff;
    background: hsl(var(--lu-avatar-hue, 210) 58% 42%);
}

.lu-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

/* Tiga kolom yang bergerak vertikal */
.lu-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    height: 560px;
    overflow: hidden;
    /* Kartu memudar di tepi atas dan bawah, bukan terpotong mendadak */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
}

.lu-wall-col {
    overflow: hidden;
}

.lu-wall-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: lu-wall-up 46s linear infinite;
    will-change: transform;
}

/* Kolom tengah berjalan berlawanan supaya tidak terlihat seragam */
.lu-wall-col-2 .lu-wall-track {
    animation-name: lu-wall-down;
    animation-duration: 54s;
}

.lu-wall-col-3 .lu-wall-track {
    animation-duration: 62s;
}

/* Gerakan berhenti saat kartu ingin dibaca */
.lu-wall:hover .lu-wall-track,
.lu-wall:focus-within .lu-wall-track {
    animation-play-state: paused;
}

@keyframes lu-wall-up {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

@keyframes lu-wall-down {
    from { transform: translateY(-50%); }
    to   { transform: translateY(0); }
}

/* Kartu ulasan */
.lu-wall-card {
    position: relative;
    padding: 20px 18px 18px;
    border-radius: 14px;
    border: 1px solid var(--lu-border);
    background: var(--lu-card-bg);
}

.lu-wall-quote {
    color: var(--lu-accent);
    opacity: .55;
    font-size: 19px;
    line-height: 1;
}

.lu-wall-text {
    margin: 8px 0 16px;
    color: #e5e9f0;
    font-size: 14px;
    line-height: 1.7;
}

.lu-wall-person {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

.lu-wall-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lu-wall-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.lu-wall-sub {
    color: var(--lu-text-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.lu-wall-mini-stars {
    color: #fbbf24;
    letter-spacing: 1px;
    margin-right: 4px;
}


@media (prefers-reduced-motion: reduce) {
    .lu-wall-track { animation: none; }
    .lu-wall {
        height: auto;
        max-height: 620px;
        overflow-y: auto;
    }
}

@media (max-width: 991px) {
    .lu-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: 520px;
    }
    .lu-wall-col-3 { display: none; }
}

@media (max-width: 575px) {
    .lu-wall {
        grid-template-columns: minmax(0, 1fr);
        height: 470px;
    }
    .lu-wall-col-2 { display: none; }
    .lu-wall-summary { gap: 8px; padding: 9px 15px; }
    .lu-wall-count { width: 100%; text-align: center; }
}

/* Tampilan saat belum ada ulasan sungguhan */
.lu-wall-invite {
    max-width: 480px;
    margin: 0 auto;
    padding: 44px 24px;
    text-align: center;
    border: 1px dashed var(--lu-border);
    border-radius: 16px;
}

.lu-wall-invite i {
    font-size: 34px;
    color: var(--lu-accent);
    opacity: .8;
}

.lu-wall-invite h3 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.lu-wall-invite p {
    margin: 0 0 20px;
    color: var(--lu-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.lu-wall-invite .lu-more {
    display: inline-block;
    text-decoration: none;
}

.lu-anchor {
    display: block;
    position: relative;
    top: -90px;
    height: 0;
}

/* ---------------------------------------------------------------
   Tabel statistik hero antar game
   --------------------------------------------------------------- */
.lu-gs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.lu-gs {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--lu-border);
    border-radius: 14px;
    background: var(--lu-card-bg);
}

.lu-gs-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.lu-gs-head p {
    margin: 4px 0 14px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--lu-text-muted);
}

.lu-gs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.lu-gs-table th {
    padding: 0 0 7px;
    text-align: left;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--lu-text-muted);
    border-bottom: 1px solid var(--lu-border);
}

.lu-gs-table td {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    vertical-align: middle;
}

.lu-gs-table tr:last-child td { border-bottom: 0; }

.lu-gs-table .c-no {
    width: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--lu-text-muted);
}

.lu-gs-table .c-num {
    text-align: right;
    padding-left: 6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.lu-gs-table .c-role {
    text-align: right;
    padding-left: 6px;
    color: var(--lu-text-muted);
    white-space: nowrap;
}

.lu-gs-table td.win { color: #4ade80; }
.lu-gs-table td.pick { color: #38bdf8; }
.lu-gs-table td.ban { color: #f87171; }

.lu-gs-table .c-hero {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lu-gs-table .c-hero img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    background: #11161f;
}

.lu-gs-table .c-hero span {
    color: #fff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kaki kartu: navigasi halaman dan tombol top up */
.lu-gs-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--lu-border);
}

.lu-gs-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lu-gs-nav button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--lu-border);
    background: transparent;
    color: var(--lu-text-muted);
    font: inherit;
    cursor: pointer;
    transition: all .15s ease;
}

.lu-gs-nav button:hover:not(:disabled) {
    color: #0d1117;
    background: var(--lu-accent);
    border-color: var(--lu-accent);
}

.lu-gs-nav button:disabled { opacity: .3; cursor: default; }

.lu-gs-nav span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--lu-text-muted);
    font-variant-numeric: tabular-nums;
}

.lu-gs-cta {
    margin-left: auto;
    padding: 9px 16px;
    border-radius: 9px;
    background: var(--lu-accent);
    color: #0d1117;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease;
}

.lu-gs-cta:hover { background: #bbf75b; color: #0d1117; }

.lu-gs-source {
    margin: 10px 0 0;
    font-size: 10.5px;
    color: #6b7686;
}

@media (max-width: 479px) {
    .lu-gs { padding: 14px; }
    .lu-gs-foot { flex-direction: column; align-items: stretch; }
    .lu-gs-nav { justify-content: center; }
    .lu-gs-cta { margin-left: 0; text-align: center; }
}
