/* Wallet Connection Hub - Minimalist wallet connection interface */

.wallet-connection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wallet-connection-overlay.connection-visible {
    opacity: 1;
    visibility: visible;
}

.wallet-connection-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    width: 95%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(79, 70, 229, 0.2);
    animation: slideInUp 0.3s ease;
    overflow: hidden;
}

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

/* Header */
.wallet-connection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    background: linear-gradient(135deg, #2d2d44 0%, #1f1f3a 100%);
    border-radius: 20px 20px 0 0;
}

.connection-title h2 {
    color: #4f46e5;
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.connection-subtitle {
    color: #a0a0b8;
    font-size: 1rem;
    margin: 0;
}

.connection-close {
    background: none;
    border: none;
    color: #a0a0b8;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.connection-close:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

/* Content */
.wallet-connection-content {
    padding: 40px;
    min-height: 300px;
}

/* Wallet Selection */
.wallets-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wallet-option:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: default;
}

.wallet-option.not-installed {
    opacity: 0.7;
    cursor: default;
}

.wallet-option.not-installed:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.wallet-option .wallet-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.wallet-option .wallet-info {
    flex: 1;
}

.wallet-option .wallet-info h4 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wallet-option .wallet-info p {
    color: #a0a0b8;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.installed {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.status-badge.not-installed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.wallet-action {
    min-width: 100px;
}

.connect-btn,
.install-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.connect-btn:hover,
.install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.install-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.install-btn:hover {
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* Disabled state for connecting */
.connect-btn:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    transform: none;
    opacity: 0.8;
}

.connect-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Connection Info */
.connection-info {
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #a0a0b8;
    font-size: 0.9rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

/* Connection Status */
.connection-status {
    text-align: center;
    padding: 20px;
}

.status-content {
    margin-bottom: 30px;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.status-text h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.status-text p {
    color: #a0a0b8;
    margin: 0;
    font-size: 0.95rem;
}

/* Connection Steps */
.connection-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #a0a0b8;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #fff;
}

.step.completed .step-number::after {
    content: '✓';
}

.step-text {
    color: #a0a0b8;
    font-size: 0.85rem;
    text-align: center;
}

.step.active .step-text {
    color: #fff;
}

.step.completed .step-text {
    color: #4ade80;
}

.cancel-connection-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-connection-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Connected Wallet */
.connected-wallet {
    padding: 20px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.wallet-info .wallet-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.wallet-details {
    flex: 1;
}

.wallet-details h3 {
    color: #4f46e5;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.wallet-address {
    color: #a0a0b8;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.wallet-balance {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

/* Wallet Actions */
.wallet-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.copy-address-btn,
.disconnect-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-address-btn {
    color: #4f46e5;
}

.copy-address-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
}

.disconnect-btn {
    color: #ef4444;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Network Info */
.network-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.network-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.network-item:last-child {
    border-bottom: none;
}

.network-label {
    color: #a0a0b8;
    font-size: 0.9rem;
}

.network-value {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.network-value.connected {
    color: #4ade80;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wallet-connection-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .wallet-connection-header {
        padding: 20px;
    }
    
    .connection-title h2 {
        font-size: 1.5rem;
    }
    
    .wallet-connection-content {
        padding: 20px;
    }
    
    .wallet-option {
        padding: 15px;
        gap: 15px;
    }
    
    .wallet-option .wallet-icon {
        font-size: 2rem;
        min-width: 50px;
    }
    
    .connection-steps {
        gap: 20px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
    }
    
    .wallet-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wallet-details {
        text-align: center;
    }
    
    .wallet-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .wallet-connection-header {
        padding: 15px;
    }
    
    .wallet-connection-content {
        padding: 15px;
    }
    
    .wallet-option {
        padding: 12px;
        gap: 12px;
    }
    
    .connection-steps {
        gap: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
    
    .wallet-info {
        padding: 15px;
    }
    
    .wallet-info .wallet-icon {
        font-size: 2rem;
    }
    
    .network-info {
        padding: 12px;
    }
}