/* ==========================================================================
   TODAGAMES TEMPLATE V2 - DAFTAR HARGA / PRICELIST
   File: assets/css/templates/v2-pricelist.css
   Layout Parent: templates/v2/template.php
   Mengikuti Token Desain v2.css & Desain Modern V2
   ========================================================================== */

.v2-price-page {
    color: var(--text-title, #f8fafc);
    padding-top: 1.5rem;
    padding-bottom: 5rem;
    min-height: 80vh;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
}

.v2-price-container {
    width: 100%;
}

/* ==========================================================================
   1. HERO HEADER SECTION
   ========================================================================== */
.v2-price-hero-wrap {
    margin-bottom: 2rem;
}

.v2-price-hero-card {
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.5rem;
    padding: 2.75rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    -webkit-border-radius: 1.5rem;
    -moz-border-radius: 1.5rem;
    -ms-border-radius: 1.5rem;
    -o-border-radius: 1.5rem;
}

.v2-price-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: var(--warna_4, #ffb703);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.v2-price-hero-badge svg {
    width: 14px;
    height: 14px;
}

.v2-price-hero-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-title, #fff);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.v2-price-hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   2. MAIN FILTER & TABLE CARD
   ========================================================================== */
.v2-price-main-card {
    background: var(--warna_2);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 1.5rem;
    -moz-border-radius: 1.5rem;
    -ms-border-radius: 1.5rem;
    -o-border-radius: 1.5rem;
}

/* Filter Board Header */
.v2-price-filter-board {
    border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.15);
}

.v2-price-filter-row {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.06));
}

.v2-price-filter-row:last-child {
    border-bottom: none;
}

.v2-price-filter-label {
    min-width: 105px;
    flex-shrink: 0;
    padding-top: 8px;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-price-filter-label svg {
    width: 14px;
    height: 14px;
    color: var(--warna_4, #ffb703);
}

.v2-price-filter-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.v2-price-filter-options-games {
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.v2-price-filter-options-games::-webkit-scrollbar {
    width: 5px;
}

.v2-price-filter-options-games::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

/* Regular Filter Pill */
.price-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    border-radius: 999px;
    color: var(--text-muted, #94a3b8);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    outline: none !important;
}

.price-filter-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.price-filter-pill.active {
    background: var(--warna_4, #ffb703) !important;
    color: #1a102d !important;
    border-color: var(--warna_4, #ffb703) !important;
    box-shadow: 0 4px 14px rgba(255, 183, 3, 0.35);
}

/* Games Filter Pill (With Icon & Subtitle) */
.price-filter-pill.has-image {
    padding: 0 14px 0 0;
    border-radius: 10px;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.price-filter-image-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 42px;
    width: 42px;
    background: rgba(0, 0, 0, 0.25);
    margin-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.price-filter-image {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.price-filter-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.2;
    text-align: left;
}

.price-filter-title {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}

.price-filter-subtitle {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.price-filter-pill.has-image.active {
    background: rgba(255, 183, 3, 0.15) !important;
    border-color: var(--warna_4, #ffb703) !important;
    box-shadow: 0 4px 16px rgba(255, 183, 3, 0.2);
}

.price-filter-pill.has-image.active .price-filter-title {
    color: var(--warna_4, #ffb703);
}

.price-filter-pill.has-image.active .price-filter-subtitle {
    color: var(--warna_4, #ffb703);
    opacity: 0.8;
}

/* ==========================================================================
   3. SEARCH BAR SECTION
   ========================================================================== */
.v2-price-search-bar {
    display: flex;
    align-items: center;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.1);
}

.v2-price-search-inner {
    position: relative;
    width: 100%;
}

.v2-price-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.v2-price-search-icon svg {
    width: 17px;
    height: 17px;
}

.v2-price-search-input {
    width: 100%;
    min-height: 44px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12));
    border-radius: 999px;
    color: #fff;
    font-size: 13.5px;
    padding: 0 16px 0 46px;
    outline: none;
    transition: all 0.2s ease;
}

.v2-price-search-input:focus {
    border-color: var(--warna_4, #ffb703);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.15);
}

.v2-price-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   4. DATA TABLE SECTION
   ========================================================================== */
.v2-price-table-wrap {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

#tabelharga-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-main, 'Plus Jakarta Sans', sans-serif);
}

#tabelharga-table thead th {
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--text-muted, #94a3b8) !important;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--border-card, rgba(255, 255, 255, 0.08)) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    white-space: nowrap;
    text-align: left;
}

#tabelharga-table tbody td {
    color: #cbd5e1;
    font-size: 13px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle;
    text-align: left;
    white-space: nowrap;
    transition: background 0.15s ease;
}

#tabelharga-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.035);
}

/* SKU Badge */
.v2-price-sku-badge {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Pricing Highlight Columns */
.v2-price-public {
    font-weight: 700;
    color: #ffffff;
}

.v2-price-silver {
    font-weight: 600;
    color: #94a3b8;
}

.v2-price-gold {
    font-weight: 800;
    color: var(--warna_4, #ffb703);
}

/* Status Pill in Table */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.status-pill.status-on {
    background: rgba(33, 196, 93, 0.12);
    color: #21C45D;
    border: 1px solid rgba(33, 196, 93, 0.3);
}

.status-pill.status-off {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Empty State Table */
.v2-price-empty-row {
    text-align: center;
    padding: 3.5rem 1.5rem !important;
    color: var(--text-muted, #94a3b8);
}

.v2-price-empty-row svg {
    width: 32px;
    height: 32px;
    color: var(--warna_4, #ffb703);
    margin-bottom: 8px;
}

/* ==========================================================================
   5. PAGINATION SECTION
   ========================================================================== */
.custom-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
    background: rgba(0, 0, 0, 0.1);
}

.custom-pagination-info {
    color: var(--text-muted, #94a3b8);
    font-size: 13px;
    font-weight: 500;
}

.custom-pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    color: var(--text-muted, #94a3b8);
    border: 1px solid var(--border-card, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    outline: none !important;
}

.custom-pagination-btn:hover:not(.disabled):not(:disabled) {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
}

.custom-pagination-btn.active {
    color: #1a102d !important;
    background: var(--warna_4, #ffb703) !important;
    border-color: var(--warna_4, #ffb703) !important;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.3);
}

.custom-pagination-btn:disabled,
.custom-pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-pagination-btn.prev-next {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .v2-price-hero-card {
        padding: 2.25rem 1.25rem;
    }

    .v2-price-hero-title {
        font-size: 1.65rem;
    }

    .v2-price-filter-row {
        flex-direction: column;
        gap: 8px;
        padding: 0.85rem 1rem;
    }

    .v2-price-filter-label {
        padding-top: 0;
    }

    .v2-price-search-bar {
        padding: 0.85rem 1rem;
    }

    .custom-pagination-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
