/* Credits Plugin Stylesheet */

:root {
    --credits-accent: #0066cc;
    --credits-accent-bg: #f0f4f8;
    --credits-success: #28a745;
    --credits-success-bg: #d4edda;
    --credits-text: #333;
    --credits-text-muted: #777;
    --credits-border: #ccc;
    --credits-card-bg: #fff;
    --credits-hover-bg: #f5f5f5;
}

.credits_awards img { vertical-align: middle; }

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

.credits_tabs {
    margin-bottom: 10px;
    border-bottom: 2px solid var(--credits-border);
    display: flex;
    gap: 0;
}
.credits_tabs a.credits_tab,
.credits_tabs a.credits_tab_active {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--credits-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-weight: normal;
}
.credits_tabs a.credits_tab:hover {
    color: var(--credits-text);
    border-bottom-color: #999;
}
.credits_tabs a.credits_tab_active {
    color: var(--credits-text);
    border-bottom-color: var(--credits-accent);
    font-weight: bold;
}

.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;
}

.credits_inv_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 700px) {
    .credits_inv_grid { grid-template-columns: 1fr; }
}
.credits_inv_card {
    border: 1px solid var(--credits-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--credits-card-bg);
}
.credits_inv_card_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}
.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;
}
.credits_inv_card_count {
    background: rgba(255,255,255,0.25);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
}
.credits_inv_card_body {
    padding: 6px;
}
.credits_inv_item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid var(--credits-hover-bg);
    gap: 10px;
    transition: background 0.15s;
}
.credits_inv_item:last-child { border-bottom: none; }
.credits_inv_item:hover { background: var(--credits-hover-bg); }
.credits_inv_item_preview {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--credits-hover-bg);
    font-size: 18px;
    overflow: hidden;
}
.credits_inv_item_preview img {
    max-width: 28px;
    max-height: 28px;
}
.credits_inv_item_info {
    flex: 1;
    min-width: 0;
}
.credits_inv_item_name {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.credits_inv_item_meta {
    font-size: 11px;
    color: var(--credits-text-muted);
    margin-top: 1px;
}
.credits_inv_item_actions {
    flex-shrink: 0;
    display: flex;
    gap: 4px;
}
.credits_inv_btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--credits-border);
    border-radius: 6px;
    background: var(--credits-card-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}
.credits_inv_btn:hover { background: var(--credits-hover-bg); border-color: #aaa; }
.credits_inv_btn:disabled { opacity: 0.4; cursor: wait; }
.credits_inv_btn_on { background: var(--credits-success-bg); border-color: var(--credits-success); color: #155724; }
.credits_inv_btn_on:hover { background: #c3e6cb; }
.credits_inv_btn_off { background: var(--credits-card-bg); border-color: var(--credits-border); color: var(--credits-text-muted); }
.credits_inv_btn_off:hover { background: var(--credits-hover-bg); }
.credits_inv_btn_edit { color: var(--credits-accent); }
.credits_inv_btn_edit:hover { background: var(--credits-accent-bg); border-color: var(--credits-accent); }
.credits_inv_item.credits_inv_active { border-left: 3px solid var(--credits-success); }
.credits_inv_item.credits_inv_inactive { opacity: 0.7; }
.credits_inv_item.credits_inv_expired { opacity: 0.5; }
.credits_inv_empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--credits-text-muted);
}

.credits_shop_layout {
    display: flex;
    gap: 12px;
}
.credits_shop_sidebar {
    width: 200px;
    flex-shrink: 0;
}
.credits_shop_sidebar:empty {
    display: none;
}
.credits_shop_sidebar_link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--credits-text-muted);
    border-left: 3px solid transparent;
    margin-bottom: 2px;
    border-radius: 0 4px 4px 0;
}
.credits_shop_sidebar_link:hover {
    background: var(--credits-hover-bg);
    color: var(--credits-text);
}
.credits_shop_sidebar_link.active {
    border-left-color: var(--credits-accent);
    color: var(--credits-text);
    font-weight: bold;
    background: var(--credits-accent-bg);
}
.credits_shop_content {
    flex: 1;
    min-width: 0;
}
@media (max-width: 700px) {
    .credits_shop_layout { flex-direction: column; }
    .credits_shop_sidebar { width: 100%; display: flex; overflow-x: auto; gap: 0; border-bottom: 2px solid var(--credits-border); margin-bottom: 8px; }
    .credits_shop_sidebar_link { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -2px; border-radius: 0; }
    .credits_shop_sidebar_link.active { border-left-color: transparent; border-bottom-color: var(--credits-accent); }
}