/**
 * WalletConnect UI Styles
 * Modal for wallet selection and connection
 */

.wallet-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-in-out;
}

.wallet-selector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.wallet-selector-content {
    position: relative;
    background: var(--card-bg, #ffffff);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.wallet-selector-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.wallet-selector-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.wallet-selector-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary, #666);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.wallet-selector-header button:hover {
    background: var(--hover-bg, #f5f5f5);
    color: var(--text-primary, #1a1a1a);
}

.wallet-selector-body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color, #e0e0e0);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-option:hover {
    border-color: var(--primary-color, #007bff);
    background: var(--hover-bg, #f8f9fa);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wallet-option.not-installed {
    opacity: 0.6;
    cursor: not-allowed;
}

.wallet-option.not-installed:hover {
    transform: none;
    border-color: var(--border-color, #e0e0e0);
    box-shadow: none;
}

.wallet-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg-secondary, #f8f9fa);
    border-radius: 12px;
}

.wallet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.wallet-description {
    font-size: 13px;
    color: var(--text-secondary, #666);
}

.wallet-status {
    font-size: 12px;
    color: var(--warning-color, #ff9800);
    font-weight: 500;
}

.wallet-arrow {
    font-size: 20px;
    color: var(--text-secondary, #666);
    transition: transform 0.2s;
}

.wallet-option:hover .wallet-arrow {
    transform: translateX(4px);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wallet-selector-content {
        --card-bg: #2a2a2a;
        --text-primary: #ffffff;
        --text-secondary: #aaa;
        --border-color: #444;
        --hover-bg: #333;
        --card-bg-secondary: #333;
    }
}

/* Mobile styles */
@media (max-width: 640px) {
    .wallet-selector-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .wallet-selector-header {
        padding: 20px;
    }
    
    .wallet-selector-body {
        padding: 12px;
    }
    
    .wallet-option {
        padding: 14px;
    }
    
    .wallet-icon {
        font-size: 28px;
        width: 44px;
        height: 44px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading state */
.wallet-option.loading {
    pointer-events: none;
    opacity: 0.6;
}

.wallet-option.loading::after {
    content: '';
    position: absolute;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color, #007bff);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success state */
.wallet-option.connected {
    border-color: var(--success-color, #28a745);
    background: var(--success-bg, #d4edda);
}

.wallet-option.connected .wallet-arrow::before {
    content: '✓';
    color: var(--success-color, #28a745);
}

