/**
 * Crypto HUD Styles for NZ:P
 * Non-intrusive overlay for crypto tracking
 */

/* Crypto Wallet Button */
.crypto-wallet-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(20, 241, 149, 0.1);
    border: 2px solid #14F195;
    color: #14F195;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.3);
}

.crypto-wallet-button:hover {
    background: rgba(20, 241, 149, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(20, 241, 149, 0.5);
}

.crypto-wallet-button.connected {
    background: rgba(20, 241, 149, 0.2);
    border-color: #00ff00;
    color: #00ff00;
}

/* Crypto HUD */
.crypto-hud {
    position: fixed;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    z-index: 9999;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.crypto-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crypto-stats .stat {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.crypto-stats .stat.highlight {
    color: #14F195;
    font-weight: bold;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.crypto-stats .label {
    opacity: 0.8;
}

.crypto-stats .value {
    font-weight: bold;
}

/* Kill Notifications */
.crypto-kill-notification,
.crypto-round-notification,
.crypto-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px 40px;
    border-radius: 10px;
    z-index: 10001;
    pointer-events: none;
    animation: slideIn 0.3s ease-out;
    border: 2px solid #14F195;
    box-shadow: 0 0 30px rgba(20, 241, 149, 0.5);
}

.crypto-kill-notification {
    top: 40%;
}

.crypto-kill-notification span {
    font-size: 24px;
    font-weight: bold;
    color: #14F195;
    text-shadow: 0 0 10px rgba(20, 241, 149, 0.8);
}

.crypto-kill-notification .headshot {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    font-size: 28px;
}

.crypto-round-notification span {
    font-size: 32px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.crypto-notification {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.notification-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.notification-amount {
    font-size: 20px;
    color: #14F195;
    font-weight: bold;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Game Over Screen */
.crypto-game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(5px);
}

.game-over-content {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #14F195;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 50px rgba(20, 241, 149, 0.5);
}

.game-over-content h2 {
    color: #ff0000;
    font-size: 48px;
    margin: 0 0 30px 0;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.final-stats {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.8;
}

.final-stats div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rewards-earned {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #14F195;
}

.rewards-earned h3 {
    color: #14F195;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.reward-amount {
    font-size: 36px;
    font-weight: bold;
    color: #14F195;
    text-shadow: 0 0 20px rgba(20, 241, 149, 0.8);
    margin: 20px 0;
}

.rewards-earned button {
    background: #14F195;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.rewards-earned button:hover {
    background: #00ff00;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.rewards-earned button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .crypto-wallet-button {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px 16px;
    }

    .crypto-hud {
        top: 60px;
        right: 10px;
        padding: 10px;
        min-width: 150px;
    }

    .crypto-stats {
        font-size: 12px;
    }

    .crypto-notification {
        padding: 15px 25px;
    }

    .notification-title {
        font-size: 20px;
    }

    .notification-amount {
        font-size: 18px;
    }

    .game-over-content {
        padding: 20px;
        margin: 20px;
    }

    .game-over-content h2 {
        font-size: 36px;
    }

    .reward-amount {
        font-size: 28px;
    }
}

/* Dark mode for crypto elements */
@media (prefers-color-scheme: light) {
    .crypto-hud {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.2);
    }

    .crypto-stats .stat {
        color: #000;
    }
}