/* css/wallet.css - 钱包连接样式 */

#walletModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wallet-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: panelSlideIn 0.3s ease-out;
}

@keyframes panelSlideIn {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.wallet-panel h3 {
    margin: 0 0 25px;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 钱包项样式 */
.wallet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wallet-item {
    background: linear-gradient(145deg, #252525 0%, #1f1f1f 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.wallet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.wallet-item.available {
    cursor: pointer;
}

.wallet-item:hover {
    background: linear-gradient(145deg, #2a2a2a 0%, #262626 100%);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.wallet-item:hover::before {
    left: 100%;
}

.wallet-info {
    flex: 1;
    margin-left: 12px;
    margin-right: 12px;
}

.wallet-item .wallet-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-item .wallet-name {
    flex: 1;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.wallet-tag {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.wallet-item .wallet-status {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: #10b981;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator {
    font-size: 10px;
    font-weight: bold;
}

.status-text {
    white-space: nowrap;
}

.wallet-item.installed .wallet-status {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

/* 状态指示器图标 */
.wallet-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.wallet-status.connected .status-indicator {
    background: #1677ff;
    color: white;
}

/* 无钱包提示样式 */
.wallet-item.no-wallets {
    text-align: center;
    padding: 50px 25px;
    color: #ffffff;
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
}

.no-wallets .icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
    color: #10b981;
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.3));
}

.no-wallets .message {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e5e5;
    font-weight: 500;
}

.no-wallets-message {
     max-width: 300px;
     margin: 0 auto;
     text-align: center;
     font-size: 16px;
     font-weight: 500;
     color: #ffffff;
     margin-bottom: 12px;
 }

 .no-wallets-desc {
     font-size: 14px;
     color: #e5e5e5;
     margin-bottom: 16px;
 }

 /* 响应式设计 */
 @media (max-width: 480px) {
     .wallet-panel {
         width: 90vw;
         max-width: 360px;
         padding: 20px;
     }
     
     .wallet-panel h3 {
         font-size: 20px;
         margin-bottom: 20px;
     }
     
     .wallet-item {
         padding: 15px;
         gap: 12px;
     }
     
     .wallet-item .wallet-icon {
         width: 24px;
         height: 24px;
         font-size: 12px;
     }
     
     .wallet-item .wallet-name {
         font-size: 14px;
     }
     
     .wallet-item .wallet-status {
         font-size: 10px;
         padding: 4px 8px;
     }
     
     .connect-wallet {
         padding: 10px 18px;
         font-size: 13px;
     }
 }

 @media (max-width: 320px) {
     .wallet-panel {
         width: 95vw;
         padding: 15px;
     }
     
     .wallet-item {
         padding: 12px;
     }
     
     .wallet-item .wallet-name {
         font-size: 13px;
     }
 }

.supported-wallets {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    word-break: break-all;
}

/* 已安装的钱包项样式 */
.wallet-item:not(.disabled) {
    background: rgba(0, 208, 132, 0.05);
    border: 1px solid rgba(0, 208, 132, 0.2);
}

.wallet-item:not(.disabled):hover {
    background: rgba(0, 208, 132, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
}

/* 未安装的钱包项样式 */
.wallet-item.disabled {
    background: rgba(255, 255, 255, 0.3);
    border: 1px dashed rgba(150, 150, 150, 0.3);
}

/* 钱包状态指示器 */
.wallet-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
}

.wallet-status.installed::before {
    background: #00d084;
    box-shadow: 0 0 4px rgba(0, 208, 132, 0.6);
}

.wallet-status:not(.installed)::before {
    background: #ff4d4f;
    box-shadow: 0 0 4px rgba(255, 77, 79, 0.6);
}

/* 导航栏钱包显示区样式（默认隐藏） */
.wallet-display {
    display: none;
    align-items: center;
    gap: 10px;
    background: #f0f5ff;
    padding: 6px 14px;
    border-radius: 24px;
    cursor: pointer;
}

.wallet-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1677ff, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.wallet-address {
    font-size: 14px;
    font-weight: 500;
    color: #1677ff;
}

.disconnect-btn {
    background: #ff4d4f;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 4px;
}

.disconnect-btn:hover {
    background: #ff7875;
}