/* ============================================================
   JSI TalentHub — Marketplace Styles
   Enqueue via class-assets.php (see INTEGRATION_GUIDE.txt)
   ============================================================ */

/* ── Product cards ─────────────────────────────────────────── */
.jsi-product-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
}
.jsi-product-card:hover,
.jsi-product-card:active {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}
.jsi-product-card img {
    transition: transform 0.3s ease;
}
.jsi-product-card:hover img {
    transform: scale(1.05);
}

/* ── Category pill buttons ─────────────────────────────────── */
.jsi-mkt-cat-btn {
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.jsi-mkt-cat-btn:active {
    transform: scale(0.95);
}

/* ── Horizontal scroll sections (hide scrollbar) ───────────── */
.jsi-mkt-section > div:last-child,
.jsi-marketplace-home [style*="overflow-x:auto"] {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.jsi-mkt-section > div:last-child::-webkit-scrollbar,
.jsi-marketplace-home [style*="overflow-x:auto"]::-webkit-scrollbar {
    display: none;
}

/* ── Wizard ────────────────────────────────────────────────── */
.jsi-wizard-wrap {
    min-height: calc(100vh - 140px);
}

.jsi-type-tile {
    transition: border-color 0.18s, background 0.18s;
}
.jsi-type-tile:hover {
    border-color: rgba(124, 58, 237, 0.4) !important;
    background: rgba(124, 58, 237, 0.06) !important;
}
.jsi-type-tile.selected {
    border-color: #7c3aed !important;
    background: rgba(124, 58, 237, 0.12) !important;
}
.jsi-type-tile.selected span {
    color: #c4b5fd !important;
}

.jsi-step-dot {
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.jsi-step-dot.completed {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}
.jsi-step-dot.active {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #fff !important;
}

.jsi-step-line {
    transition: background 0.3s;
}
.jsi-step-line.done {
    background: linear-gradient(90deg, #059669, #7c3aed) !important;
}

/* ── Single product page ────────────────────────────────────── */
.jsi-product-page .jsi-main-img {
    transition: opacity 0.2s;
}

.jsi-prod-tab {
    transition: background 0.2s, color 0.2s;
}

#jsi-star-rating .jsi-star {
    transition: color 0.1s, transform 0.1s;
}
#jsi-star-rating .jsi-star:hover {
    transform: scale(1.15);
}

/* ── Checkout modal ─────────────────────────────────────────── */
#jsi-checkout-modal > div:last-child {
    animation: jsi-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes jsi-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ── Orders page ────────────────────────────────────────────── */
.jsi-orders-tab {
    transition: background 0.2s, color 0.2s;
}

/* ── Audio preview bar pulse ────────────────────────────────── */
#jsi-preview-bar {
    transition: width 0.2s linear;
}

/* ── Responsive grid on category page ──────────────────────── */
#jsi-product-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) {
    #jsi-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    #jsi-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── File input styling ─────────────────────────────────────── */
input[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(135deg, #7c3aed, #9f67ff);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 10px;
}
input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, #7c3aed, #9f67ff);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 10px;
}

/* ── Pay button pulse (processing state) ───────────────────── */
#jsi-co-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: jsi-pulse-btn 1.2s ease-in-out infinite;
}
@keyframes jsi-pulse-btn {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 0.9; }
}

/* ── Wishlist heart bounce ──────────────────────────────────── */
#jsi-wishlist-btn {
    transition: color 0.18s, transform 0.12s;
}
#jsi-wishlist-btn:active {
    transform: scale(0.92);
}

/* ── Seller product tab grid ────────────────────────────────── */
.jsi-seller-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 480px) {
    .jsi-seller-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
