/* Credits Plugin Stylesheet — Curves UI / Bootstrap 5.3 Compatible */

.credits_awards img { vertical-align: middle; }

.credits_ucolor,
.credits_ucolor * { color: var(--credits-ucolor) !important; }

/* Curves UI bg-nav background for card headers */
.bg-nav { background-color: rgb(242, 242, 242); }

/* Username Effects — preserved animations */
.credits_fx_rainbow a { animation: credits_rainbow 3s linear infinite; }
@keyframes credits_rainbow {
    0% { color: #ff0000; }
    17% { color: #ff8800; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    67% { color: #0088ff; }
    83% { color: #8800ff; }
    100% { color: #ff0000; }
}

.credits_fx_glow a { animation: credits_glow 2s ease-in-out infinite alternate; }
@keyframes credits_glow {
    from { text-shadow: 0 0 5px currentColor; }
    to { text-shadow: 0 0 15px currentColor, 0 0 30px currentColor; }
}

.credits_fx_sparkle a {
    background: linear-gradient(90deg, currentColor 40%, #fff 50%, currentColor 60%);
    background-size: 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: credits_sparkle 2s linear infinite;
}
@keyframes credits_sparkle {
    0% { background-position: 200%; }
    100% { background-position: -200%; }
}

.credits_fx_shadow a { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.credits_fx_bold a { font-weight: 900; letter-spacing: 0.5px; }
.credits_fx_gradient a {
    background: linear-gradient(135deg, #f06, #48f, #0cf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Inventory card collapse behavior */
.credits_inv_card_header::after {
    content: '\25BC';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.2s;
}
.credits_inv_card_collapsed .credits_inv_card_header::after {
    transform: rotate(-90deg);
}
.credits_inv_card_collapsed .credits_inv_card_body {
    display: none;
}

/* Inventory item preview images */
.credits_inv_item_preview img {
    max-width: 28px;
    max-height: 28px;
}

/* Inventory action buttons */
.credits_inv_btn {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #666;
}
.credits_inv_btn:hover {
    background: #f2f2f2;
    border-color: #999;
}
.credits_inv_btn:disabled { opacity: 0.4; cursor: wait; }
.credits_inv_btn_on {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}
.credits_inv_btn_on:hover { background: #c3e6cb; }
.credits_inv_btn_off {
    background: #fff;
    border-color: #dee2e6;
    color: #666;
}
.credits_inv_btn_edit { color: #007fd0; }
.credits_inv_btn_edit:hover {
    background: #e7f3ff;
    border-color: #007fd0;
}
.credits_inv_item.credits_inv_active { border-left: 3px solid #28a745; }
.credits_inv_item.credits_inv_inactive { opacity: 0.7; }
.credits_inv_item.credits_inv_expired { opacity: 0.5; }
.credits_inv_item:hover { background: #fafafa; }

/* Shop/inventory sidebar */
.credits_shop_sidebar_link.active {
    background: #007fd0 !important;
    color: #fff !important;
    font-weight: 600;
}

/* Nav tabs — scrollable on mobile, fade hint for overflow */
.nav-tabs.card-header-tabs,
.credits_tabs_wrap .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-tabs.card-header-tabs::-webkit-scrollbar,
.credits_tabs_wrap .nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link { white-space: nowrap; }

/* Leaderboard/data rows — responsive */
.credits_data_header { display: none; }
@media (min-width: 576px) {
    .credits_data_header { display: flex; }
}

/* Responsive: sidebar stacks on mobile */
@media (max-width: 991px) {
    .credits_shop_sidebar_link.active {
        background: transparent !important;
        color: #007fd0 !important;
        border-bottom: 2px solid #007fd0;
    }
}

/* Credit amount coloring */
.credits_positive { color: #28a745; }
.credits_negative { color: #dc3545; }