/**
 * CHRONICLES OF APOCALYPTICA - LOOT SYSTEM STYLES
 * Loot button and notification styles
 */

/* LOOT SEARCH BUTTON */
.loot-search-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #c896ff 0%, #9b6dff 100%);
    color: #fff;
    border: 3px solid #c896ff;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 5px 20px rgba(200, 150, 255, 0.4);
    transition: all 0.3s ease;
    font-family: 'Comfortaa', cursive;
}

.loot-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fff 0%, #e0d4ff 100%);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 150, 255, 0.6);
}

.loot-search-btn:disabled {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.loot-search-btn.searching {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(200, 150, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(200, 150, 255, 0.7);
    }
}

/* LOOT NOTIFICATION */
.loot-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    border: 3px solid #c896ff;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 350px;
    z-index: 10000;
    font-family: 'Comfortaa', cursive;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

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

.loot-notification.success {
    border-color: #6bff6b;
    background: linear-gradient(135deg, rgba(20, 60, 20, 0.95) 0%, rgba(20, 40, 20, 0.95) 100%);
}

.loot-notification.warning {
    border-color: #ffaa00;
    background: linear-gradient(135deg, rgba(60, 40, 0, 0.95) 0%, rgba(40, 30, 0, 0.95) 100%);
}

.loot-notification.info {
    border-color: #888;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(30, 30, 30, 0.95) 100%);
}

.loot-notification strong {
    color: #c896ff;
    text-shadow: 0 0 10px rgba(200, 150, 255, 0.5);
}

/* LEVEL UP NOTIFICATION */
.levelup-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, #1a0a2e 0%, #2a1a3a 100%);
    border: 5px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    z-index: 10001;
    font-family: 'Comfortaa', cursive;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.6), inset 0 0 30px rgba(255, 215, 0, 0.2);
    opacity: 0;
    transition: all 0.5s ease;
}

.levelup-notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.levelup-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 215, 0, 1);
    }
}

.levelup-level {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin: 1rem 0;
}

.levelup-bonus {
    font-size: 1.3rem;
    color: #6bff6b;
    margin: 1rem 0;
    font-weight: bold;
}

.levelup-footer {
    font-size: 1.1rem;
    color: #c896ff;
    margin-top: 1.5rem;
    font-style: italic;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .loot-search-btn {
        top: 10px;
        right: 10px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .loot-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.95rem;
        padding: 1rem;
    }

    .loot-notification.show {
        transform: translateY(0);
    }

    .loot-notification {
        transform: translateY(-100px);
    }

    .levelup-notification {
        max-width: 90%;
        padding: 1.5rem;
    }

    .levelup-title {
        font-size: 1.5rem;
    }

    .levelup-level {
        font-size: 2rem;
    }

    .levelup-bonus {
        font-size: 1.1rem;
    }

    .levelup-footer {
        font-size: 0.95rem;
    }
}
