/**
 * Unified Wallet Component Styles
 */

.wallet-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wallet-connected {
    position: relative;
}

.wallet-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: space-between;
}

.wallet-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #00d4ff;
    font-size: 14px;
}

.wallet-network {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
}

.dropdown-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.wallet-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wallet-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

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

.balance-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.balance-value {
    font-weight: bold;
    font-size: 14px;
}

.ag-balance {
    color: #00d4ff;
}

.bnb-balance {
    color: #f3ba2f;
}

.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wallet-actions .btn {
    justify-content: center;
    text-align: center;
    font-size: 13px;
    padding: 8px 16px;
}

.connect-wallet-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .wallet-dropdown-toggle {
        min-width: 150px;
        padding: 6px 12px;
    }
    
    .wallet-dropdown {
        min-width: 240px;
        padding: 15px;
    }
    
    .wallet-address {
        font-size: 12px;
    }
    
    .wallet-network {
        font-size: 11px;
    }
}

/* Loading state */
.wallet-loading {
    position: relative;
    overflow: hidden;
}

.wallet-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Status indicators */
.wallet-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.wallet-status-connected {
    background: #4CAF50;
    box-shadow: 0 0 6px #4CAF50;
}

.wallet-status-disconnected {
    background: #f44336;
}

/* Animation for connection state change */
.wallet-info {
    transition: all 0.5s ease;
}

.wallet-connected {
    animation: wallet-connected 0.5s ease;
}

@keyframes wallet-connected {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}