/*
 * Collectibles Module Stylesheet
 * All styles namespaced under .collectibles-* to avoid conflicts.
 */
.collectibles-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 2rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collectibles-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.26);
}

.collectibles-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.collectibles-icon-lg {
    width: 96px;
    height: 96px;
    font-size: 2.8rem;
}

.collectibles-icon-bg-common { background-color: #9e9e9e; }
.collectibles-icon-bg-uncommon { background-color: #4caf50; }
.collectibles-icon-bg-rare { background-color: #2196f3; }
.collectibles-icon-bg-epic { background-color: #9c27b0; }
.collectibles-icon-bg-legendary { background-color: #ff9800; }

.collectibles-cat-icon { color: var(--hh-collectible-cat-color, inherit); }

.collectibles-rarity-common { box-shadow: 0 0 0 3px #9e9e9e; }
.collectibles-rarity-uncommon { box-shadow: 0 0 0 3px #4caf50; }
.collectibles-rarity-rare { box-shadow: 0 0 0 3px #2196f3; }
.collectibles-rarity-epic { box-shadow: 0 0 8px 3px #9c27b0; }
.collectibles-rarity-legendary { box-shadow: 0 0 12px 4px #ff9800; animation: collectibles-legendary-glow 2.5s ease-in-out infinite; }

@keyframes collectibles-legendary-glow {
    0%, 100% { box-shadow: 0 0 8px 3px #ff9800; }
    50% { box-shadow: 0 0 18px 7px #ffc107; }
}

.collectibles-rarity-badge {
    display: inline-block;
    padding: 0.15em 0.55em;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.collectibles-rarity-badge.rarity-common { background: #9e9e9e; }
.collectibles-rarity-badge.rarity-uncommon  { background: #4caf50; }
.collectibles-rarity-badge.rarity-rare { background: #2196f3; }
.collectibles-rarity-badge.rarity-epic { background: #9c27b0; }
.collectibles-rarity-badge.rarity-legendary { background: linear-gradient(135deg, #ff9800, #ffc107); color: #212121; }

.collectibles-card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    padding: 1rem;
    text-align: center;
    background: var(--bs-body-bg);
    transition: box-shadow 0.2s ease;
    cursor: default;
    position: relative;
}

.collectibles-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.collectibles-card .collectibles-card-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
}

.collectibles-card .collectibles-card-desc {
    font-size: 0.78rem;
    color: var(--bs-secondary-color);
}

.collectibles-card .collectibles-card-date {
    font-size: 0.72rem;
    color: var(--bs-secondary-color);
    margin-top: 0.4rem;
}

.collectibles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.collectibles-collection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.collectibles-collection-header .collectibles-count {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1;
}

.collectibles-collection-header .collectibles-count-label {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
}

.collectibles-preview-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.collectibles-preview-strip .collectibles-preview-more {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    align-self: center;
}

.collectibles-admin-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
}

.collectibles-card[data-bs-toggle="tooltip"] {
    cursor: help;
}

.collectibles-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--bs-secondary-color);
}

.collectibles-empty .collectibles-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.collectibles-filter-nav {
    margin-bottom: 1.5rem;
}

.collectibles-trigger-config {
    background: var(--bs-light-bg-subtle);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1rem;
    margin-top: 0.5rem;
}

.collectibles-award-preview {
    text-align: center;
    padding: 1rem 0;
}