/**
 * WERM TECH - Wallet UI Styles
 * Shared styles for wallet connection overlay
 */

.wallet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.wallet-modal {
    background: linear-gradient(145deg, #1a1a1e, #0a0a0e);
    border: 1px solid #2a2a30;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.05);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wallet-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a30;
}

.werm-logo {
    font-family: 'Audiowide', sans-serif;
    font-size: 24px;
    letter-spacing: 4px;
    color: #ff6a3a;
    margin-bottom: 8px;
}

.wallet-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: #6a6a70;
}

.wallet-content {
    margin-bottom: 20px;
}

.wallet-info {
    text-align: center;
    margin-bottom: 24px;
}

.wallet-info p {
    color: #aaa;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 14px;
}

.payment-info {
    background: rgba(74, 240, 160, 0.1);
    border: 1px solid rgba(74, 240, 160, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    color: #4af0a0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 1px;
}

.wallet-btn {
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 12px;
    border: none;
    border-radius: 12px;
    font-family: 'Audiowide', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.wallet-btn.primary {
    background: linear-gradient(145deg, #ff6a3a, #c43a1a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 106, 58, 0.3);
}

.wallet-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 58, 0.4);
}

.wallet-btn.primary:active {
    transform: translateY(0);
}

.wallet-btn.secondary {
    background: linear-gradient(145deg, #2a2a2e, #1a1a1e);
    color: #aaa;
    border: 1px solid #2a2a30;
}

.wallet-btn.secondary:hover {
    background: linear-gradient(145deg, #3a3a3e, #2a2a2e);
    color: #ccc;
}

.phantom-icon {
    font-size: 18px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid #2a2a30;
    border-top: 3px solid #4af0a0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.wallet-address {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #6a6a70;
    word-break: break-all;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.payment-details {
    text-align: center;
    margin-bottom: 24px;
}

.payment-amount {
    font-family: 'Audiowide', sans-serif;
    font-size: 32px;
    letter-spacing: 4px;
    color: #4af0a0;
    margin-bottom: 16px;
}

.payment-instruction {
    color: #aaa;
    margin-bottom: 16px;
    font-size: 14px;
}

.payment-address {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    word-break: break-all;
    cursor: pointer;
    border: 1px solid #2a2a30;
    transition: border-color 0.2s;
    margin-bottom: 12px;
}

.payment-address:hover {
    border-color: #4af0a0;
}

.copy-btn {
    background: transparent;
    border: 1px solid #2a2a30;
    color: #aaa;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(74, 240, 160, 0.1);
    border-color: #4af0a0;
    color: #4af0a0;
}

.ready-info {
    text-align: center;
    margin-bottom: 24px;
}

.checkmark {
    font-size: 48px;
    margin-bottom: 16px;
}

.ready-info p {
    color: #aaa;
    margin-bottom: 16px;
    line-height: 1.6;
}

.wallet-footer {
    text-align: center;
    font-size: 11px;
    color: #6a6a70;
    letter-spacing: 2px;
    border-top: 1px solid #2a2a30;
    padding-top: 16px;
    font-family: 'Share Tech Mono', monospace;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .wallet-modal {
        padding: 24px 20px;
        margin: 20px;
        max-height: 90vh;
    }
    
    .werm-logo {
        font-size: 20px;
        letter-spacing: 3px;
    }
    
    .payment-amount {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .wallet-btn {
        padding: 14px 20px;
        font-size: 13px;
    }
}

/* Prize winner popup */
.winner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(12px);
}

.winner-modal {
    background: linear-gradient(145deg, #2d1b4e, #1a0d2e);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90vw;
    text-align: center;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        0 25px 50px rgba(0, 0, 0, 0.8);
    animation: winnerPulse 0.5s ease-out;
}

@keyframes winnerPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.winner-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 48px;
    letter-spacing: 6px;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.winner-amount {
    font-size: 32px;
    color: #4af0a0;
    margin-bottom: 30px;
    font-family: 'Share Tech Mono', monospace;
}

.winner-image {
    margin: 20px 0;
}

.winner-image img {
    max-width: 300px;
    border-radius: 12px;
    border: 2px solid #ffd700;
}

.winner-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.winner-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'Audiowide', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.winner-btn.twitter {
    background: #1da1f2;
    color: #fff;
}

.winner-btn.download {
    background: #4af0a0;
    color: #000;
}

.winner-btn.close {
    background: #2a2a2e;
    color: #aaa;
}

.winner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ---------- WermModal (alert/confirm/prompt replacements) ---------- */
.wm-message {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #cfcfd5;
    margin-bottom: 20px;
    white-space: pre-wrap;
    word-break: break-word;
}
.wm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}
.wm-actions .wallet-btn { flex: 0 1 auto; min-width: 110px; }
.wm-input {
    width: 100%;
    background: #0a0a0e;
    border: 1px solid #2a2a30;
    color: #4af0a0;
    padding: 10px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.wm-input:focus { outline: none; border-color: #ff6a3a; }

.wm-modal.wm-variant-error .werm-logo { color: #ff4a4a; }
.wm-modal.wm-variant-error { border-color: #6a1a1a; }
.wm-modal.wm-variant-success .werm-logo { color: #4af0a0; }
.wm-modal.wm-variant-success { border-color: #1a6a3a; }
.wm-modal.wm-variant-info .werm-logo { color: #4ac8f0; }
.wm-modal.wm-variant-confirm .werm-logo { color: #ffb84a; }
.wm-modal.wm-variant-prompt .werm-logo { color: #ff6a3a; }
