/* Search Input */
#itemSearch {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

#itemSearch:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.5) !important;
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25) !important;
}

/* Filter Options */
.filter-options {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--bs-primary-rgb), 0.5);
}

/* Active Filter Tags */
.active-filter-tag {
    background: rgba(var(--bs-primary-rgb), 0.15);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.active-filter-tag .btn-close {
    width: 0.6em;
    height: 0.6em;
    opacity: 0.7;
}

.active-filter-tag .btn-close:hover {
    opacity: 1;
}

/* Item Cards */
.item-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.item-name {
    font-size: 0.85rem;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.item-icon-placeholder {
    transition: transform 0.3s ease;
}

.item-card:hover .item-icon-placeholder {
    transform: scale(1.1);
}

/* Load More Button */
#loadMoreBtn {
    transition: all 0.3s ease;
    font-weight: 500;
}

#loadMoreBtn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#loadMoreBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .item-name {
        font-size: 0.75rem;
    }
    
    .filter-options {
        max-height: 150px;
    }
    
    .reinforced-blackstone-bricks-container,
    .void-alloy-bricks-container {
        padding: 1rem !important;
    }
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    animation: fadeInUp 0.4s ease backwards;
}

/* Keyboard shortcut hint */
kbd {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.8em;
    font-family: monospace;
}

