/* 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;
}

/* ---- Pill Navigation ---- */
.credits-nav-wrap { margin-bottom: 0; }
.credits-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px;
    margin: 0 -2px;
    -ms-overflow-style: none;
}
.credits-nav::-webkit-scrollbar { display: none; }
.credits-nav::after {
    content: '';
    flex-shrink: 0;
    width: 1px;
}
.credits-nav-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #666;
    background: #fff;
    transition: all 0.15s ease;
}
.credits-nav-pill:hover {
    color: #007fd0;
    border-color: #007fd0;
    text-decoration: none;
    background: #f0f7ff;
}
.credits-nav-pill.active {
    background: #007fd0;
    color: #fff !important;
    border-color: #007fd0;
}

/* ---- Filter Chips (shop/inventory categories) ---- */
.credits-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fafafa;
}
.credits-filters::-webkit-scrollbar { display: none; }
.credits-filter-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid #dee2e6;
    color: #666;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.credits-filter-chip:hover {
    border-color: #007fd0;
    color: #007fd0;
    text-decoration: none;
}
.credits-filter-chip.active,
.credits_shop_sidebar_link.active {
    background: #007fd0 !important;
    color: #fff !important;
    border-color: #007fd0 !important;
    font-weight: 500;
}

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