/* Shared UI Styles - Extracted from base-game-mode-manager.js for better performance and maintainability */
/* Note: Base .ui-item-frame styles moved to item-frames.css */

.item-image-container {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 6px;
    overflow: hidden;
}

.item-image {
    height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 6px;
}

.item-count-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: #222222;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.item-name {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
    font-weight: bold;
}

.item-value {
    text-align: center;
    margin-top: 4px;
    font-size: 12px;
    color: #4CAF50;
    font-weight: bold;
}

/* Rarity Classes */
.rarity-common { border-color: #9e9e9e; }
.rarity-uncommon { border-color: #4caf50; }
.rarity-rare { border-color: #2196f3; }
.rarity-epic { border-color: #9c27b0; }
.rarity-legendary { border-color: #ff9800; }

/* No Items Message */
.no-items-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-items-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.no-items-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.no-items-description {
    font-size: 14px;
    line-height: 1.4;
}

/* Flying Animation */
.flying-item {
    z-index: 1000;
    pointer-events: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
