/* Item Card Styles */
.item-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}
.item-card.ml-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ml-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.item-card.roblox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--roblox-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.item-card:hover::before {
    transform: scaleX(1);
}
.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35);
    border-color: rgba(102, 126, 234, 0.3);
}
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    gap: 12px;
    margin-bottom: 18px;
}
.game-tag {
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    display: inline-block;
    vertical-align: middle;
}
.game-tag.ml-tag {
    background: var(--ml-gradient);
}
.game-tag.roblox-tag {
    background: var(--roblox-gradient);
}
.rarity-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.rarity-legendary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}
.rarity-epic {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.rarity-rare {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.rarity-common {
    background: linear-gradient(45deg, #6b7280, #4b5563);
    color: white;
}
.item-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23272f;
    border-radius: 10px;
    overflow: hidden;
}
.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.item-icon {
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.item-image.ml-bg {
    background: var(--ml-gradient);
}
.item-image.roblox-bg {
    background: var(--roblox-gradient);
}
.item-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: rotate(45deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.item-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.item-description {
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.item-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}
.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
}
.stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-blue);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
}
.item-price {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--success-green), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 22px;
    text-align: center;
    line-height: 1.2;
    font-family: Arial, "Segoe UI", sans-serif;
}
.add-to-cart-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    margin-top: auto;
}
.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.add-to-cart-btn:hover::before {
    left: 100%;
}
.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* No Items Found State */
.no-items-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.no-items-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.no-items-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-items-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.clear-search-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.clear-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
