/* ============================================================
 * MatLuk FotoChallenge - Shop-Cart V.6
 *
 * - Cart-Icon in Topbar (neben Bell)
 * - Cart-Modal-Cards (gleicher Stil wie Daily/Duell)
 * - Wallet-Anzeige + Aufladen-Button auf Shop-Pages
 * ============================================================ */

/* === Cart-Icon-Button in Topbar (gleiche Styles wie .nav-bell) === */
.nav-cart {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text, #fff);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.nav-cart:focus { outline: none; }
.nav-cart:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.nav-cart:hover {
    background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .nav-cart:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* === Cart-Modal: Wallet-Anzeige === */
.cart-modal-wallet {
    text-align: center;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(3, 215, 226, 0.10), rgba(3, 215, 226, 0.04));
    border: 1px solid rgba(3, 215, 226, 0.25);
    border-radius: 10px;
    font-size: 14px;
}
.cart-modal-wallet strong {
    color: var(--accent, #03d7e2);
    font-size: 18px;
}

/* === Cart-Modal-Cards (gleiches Layout wie qx-card-daily/duel) === */
.qx-card-cart-buy {
    border-color: rgba(3, 215, 226, 0.30) !important;
}
.qx-card-cart-buy:hover {
    border-color: rgba(3, 215, 226, 0.55) !important;
    box-shadow: 0 4px 14px rgba(3, 215, 226, 0.15);
}
.qx-card-img-cart-buy {
    background: linear-gradient(135deg,
        rgba(3, 215, 226, 0.10),
        rgba(3, 215, 226, 0.02));
}

.qx-card-cart-spend {
    border-color: rgba(168, 85, 247, 0.30) !important;
}
.qx-card-cart-spend:hover {
    border-color: rgba(168, 85, 247, 0.55) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15);
}
.qx-card-img-cart-spend {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.10),
        rgba(168, 85, 247, 0.02));
}

/* === Wallet auf Shop-Pages mit Aufladen-Button === */
.shop-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.shop-wallet-topup {
    background: var(--accent, #03d7e2);
    color: #1f2937;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: filter 0.15s;
}
.shop-wallet-topup:hover {
    filter: brightness(1.08);
}

/* === Cross-Link zwischen Buy/Spend === */
.shop-cross-link {
    margin: 24px 0 8px;
    text-align: center;
}
.shop-cross-link .btn-ghost {
    background: transparent;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
    color: var(--text, #fff);
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
    display: inline-block;
}
.shop-cross-link .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent, #03d7e2);
}
[data-theme="light"] .shop-cross-link .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Light-Mode-Anpassungen */
[data-theme="light"] .cart-modal-wallet {
    background: linear-gradient(135deg, rgba(3, 215, 226, 0.14), rgba(3, 215, 226, 0.04));
}
[data-theme="light"] .qx-card-img-cart-buy {
    background: linear-gradient(135deg,
        rgba(3, 215, 226, 0.14),
        rgba(3, 215, 226, 0.04));
}
[data-theme="light"] .qx-card-img-cart-spend {
    background: linear-gradient(135deg,
        rgba(168, 85, 247, 0.14),
        rgba(168, 85, 247, 0.04));
}
