/**
 * Advanced Lootbox Main CSS
 */

/* Container */
.alb-lootbox-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* CaseCoin Display */
.alb-casecoin-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
}

.alb-casecoin-display.pulse {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Header */
.alb-lootbox-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.alb-lootbox-title {
    font-size: 36px;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.alb-lootbox-description {
    font-size: 16px;
    opacity: 0.9;
}

/* Items Preview */
.alb-items-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.alb-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.alb-preview-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}

.alb-preview-item:hover {
    transform: scale(1.05);
}

.alb-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.alb-preview-name {
    color: white;
    font-size: 12px;
    margin-top: 5px;
}

/* Actions */
.alb-lootbox-actions {
    text-align: center;
    margin-top: 30px;
}

.alb-lootbox-open-btn,
.alb-buy-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 45px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.alb-lootbox-open-btn:hover,
.alb-buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.alb-lootbox-open-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result */
.alb-result {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    text-align: center;
}

.alb-result-image {
    max-width: 200px;
    max-height: 200px;
    margin-bottom: 20px;
}

.alb-result-name {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.alb-result-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.alb-result-rarity {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Duplicate Notice */
.alb-duplicate-notice {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    color: #856404;
}

/* Notifications */
.alb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.alb-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.alb-notification-success {
    background: #27ae60;
}

.alb-notification-error {
    background: #e74c3c;
}

.alb-notification-info {
    background: #3498db;
}

/* Inventory */
.alb-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.alb-inventory-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.alb-inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.alb-trade-duplicate {
    background: #f39c12;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
}

/* Rarity colors */
.rarity-common {
    background: #95a5a6;
    color: white;
}

.rarity-uncommon {
    background: #27ae60;
    color: white;
}

.rarity-rare {
    background: #3498db;
    color: white;
}

.rarity-epic {
    background: #9b59b6;
    color: white;
}

.rarity-legendary {
    background: linear-gradient(45deg, #f39c12, #e74c3c);
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .alb-lootbox-container {
        padding: 20px;
    }
    
    .alb-lootbox-title {
        font-size: 28px;
    }
    
    .alb-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .alb-casecoin-display {
        position: static;
        margin-bottom: 20px;
    }
}
